Cool trick. I've been struggling with a very slow index for a while, and now i know why:
Code:
Query: SELECT count(*) AS posts FROM post WHERE dateline > '1060567366'
Time before: 1.0531469583511
Time after: 18.15744304657
And 18 seconds is fast, it's sunday night now. During the week it's even slower. Is this the query that gets the total posts? The one that does the threads and users is fast though. Is there anything I can do to speed this up?