Hey all! We have a metric column that we’re unsure...
# troubleshooting
e
Hey all! We have a metric column that we’re unsure is indexed correctly. Running
SELECT metric_column FROM table ORDER BY metric_column DESC LIMIT 10
results in a full table scan. So far we’ve followed the instructions for setting up a raw value forward index, but it doesn’t seem to help.
m
Indexing helps with filtering, your query is essentially sorting all rows of the column so it will have a full table scan
b
@Mayank as per my understanding for other databases, indexing improves ORDER BY queries also..is this a limitation with pinot ?
m
I might be missing something here, could you point me to some example databases where this happens, then I can relate back on how that is achieved on Pinot
e
b
I think indexes are bst /b-tree , means they contains ordered data, https://docs.mongodb.com/manual/tutorial/sort-results-with-indexes/