Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depending on 1) The storage engine you're using, and, 2) What other queries you run against this table

You could cluster the table on the 'time' column. That would store the data in the table in the same order as it appears in the index, and make time-based range queries a lot faster.



Shouldn't matter, this query shouldn't hit the data file. Clustering would just make fragmentation worse. I'd like to see the OP verify that it's only hitting the index file though (see my other post).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: