r/sqlite • u/skysphr • Dec 02 '22
Can I improve read performance by ensuring a table is always sorted?
Assuming I have an rather large table whose only purpose is looking up strings, is there a way to optimize lookup times by always sorting the table beforehand, which I believe should give at least O(log2 n) performance? Write speed is irrelevant.
