Answer the question
In order to leave comments, you need to log in
Do you need an index or not?
There is a table
ns binary(16) , obj binary(16), created_at unsigned int
в ней PK = (ns, obj)
select ... from tbl where ns=0x00.... ORDER BY created_at DESC
Answer the question
In order to leave comments, you need to log in
still visible in EXPLAIN SELECT))
Yes. but still could be a filesort in the plan
yes
Add index (NS, CREATED_AT DESC)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question