Categories
What index to create for quick sorting and selection?
You need to optimize queries like this:
SELECT * FROM table WHERE id > &id ORDER BY rank LIMIT 10
Answer the question
In order to leave comments, you need to log in
If id is an enumerator and rank is a integer, then one index on two columns [id, rank]
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question