Forum Moderators: coopster
e.g.
From 100,000 rows I wish to SELECT 500.
From that 500, I want to do 10 SELECTs. I only ask because I assume that it will be a lot quicker to extract rows from the smaller "results" produced by the main SELECT than to run the 10 SELECTs on the main database.
Is this even possible? Or should I just do 10 SELECTs from the main database?
Thanks for any pointers.
It depends a little on how you are doing your query, but I would guess that Sean is right. If you are doing simple joins on indexed columns, this should be really fast with 100K records.
If you create an index that specifically expects the very join that you will be doing, that should make it super super fast for selects.
Look for information on indexes in the MySQL manual