SQLite: Dropping an index for a 300x speedup

from blog nickb.dev, | ↗ original
For a small, personal project I use sqlite as a time series database and make queries like the following: SELECT referer, COUNT(*) AS views FROM logs WHERE host = 'comments.nbsoftsolutions.com' AND epoch >= 1551630947 AND epoch 1551632947 GROUP BY referer ORDER BY views DESC Over time, I’ve noticed that this query has...