TimescaleDB to the Rescue - Speeding Up Statistics
Some time ago, I was working on improving the performance of slow statistics. The problem was that our database contained billions of rows, making data retrieval slow, even for the last seven days....