Answer the question
In order to leave comments, you need to log in
How do you speed up Limit in MySQL?
The bottom line is, there is a database of 1.5 million rows.
There is a SQL request, with pair JOIN. Now I'm doing pagination, like LIMIT offset,50, and so such a selection is performed for 3 seconds. No limit, casting is fast. So how to overcome this limit and speed up the selection with pagination? MySQL database
Answer the question
In order to leave comments, you need to log in
Get rid of the joins using denormalization, then the limit will work better, and in general it will be possible to build the corresponding index, in which your data will be pre-sorted. And in general, in order to better answer your question, I would like to see the structure and a more complete description of the task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question