I've got a dataset with over 100k rows, so it's not tiny, but not huge either. When paging through the results, it gets progressively slower as you go to higher pages. In other words, this query:
SELECT * FROM items WHERE public = 1 ORDER BY name LIMIT 0,10
executes much faster than
SELECT * FROM items WHERE public = 1 ORDER BY name LIMIT 10000,10
I have an index on name, and I used to have an index on public, but I removed it since it seemed to degrade performance even more.
Any ideas here? Is there an easy way to speed this up? I'm considering removing the ability to view the higher pages since nobody really browses past page 2 or 3, except robots, and there are easier ways for them to find that content.