Have a huge mysql table with 300,000 entries and want to host the entries in PHP (not here) with the query as follows:
SELECT * FROM `table` LIMIT 250000, 100
In the last part of the records, this can be significantly slower, especially at the end of the table (LIMIT start is very large). I assume MySQL should count everything up to 250,000 before striking out the results to me?
So, how to get around this or any other swap approach, which can be much faster? Thanks!
performance database mysql
datasn.io
source share