ok, here's something that's been bothering me for months: assume you have a huge mysql table, say 7,5 million rows with firstname, name and all that and you now have to display it on a website where the user is able to sort the list via a dropdown, browse through all pages and so forth - how would you go about it?
the simplest solution wold be to just use an oracle database. but the cost is prohibitive for the client, so I need to use mysql. sorting the table by more than one index takes ages as mysql resorts to filesort in this case. doing something like "limit 6999980,10" makes it even worse.
so my solution was to cache the results and prepare finished pages for all sort variants. now I have nearly 2 million text files on the server that hold the prepared list in all variants. the problem with that is that it takes almost two hours to generate these files so the data is always a bit outdated.
is there any smart solution for that short of omitting results?
Bookmarks