Hey all, I\'ve got a query in need of optimizing. It works but its a dog, performance wise.
It reads like this:
SELECT * FROM ( SELECT *
I would suggest a composite (multi-column) index on user_id, page. That assumes the inner query is the slow part.