You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a table which ID type is not int, but UUID. I'll use ORDER BY time DESC to retrieve latest N records. It says my sorting is Backward index scan when I try to optimize my query using EXPLAIN statement. After doing a little research I realized that the index which created by ent is an ascending index, but what I really needed is descending index. It'll be slower than descending index approximately 15%.
The text was updated successfully, but these errors were encountered:
Hey @ColetteContreras and thanks for proposing this.
We should add support for descending indexes. I just added an annotation option for indexes (in #1632), and this should make it simple to support this option.
Summary 💡
Motivation 🔦
I have a table which ID type is not int, but UUID. I'll use
ORDER BY time DESC
to retrieve latest N records. It says my sorting isBackward index scan
when I try to optimize my query usingEXPLAIN
statement. After doing a little research I realized that the index which created byent
is an ascending index, but what I really needed is descending index. It'll be slower than descending index approximately 15%.The text was updated successfully, but these errors were encountered: