Re:SQLite's Automatic Indexes
by SCLeo on Wednesday December 28, 2022 @03:26PM
(#34165484)
Maybe I am missing something but I think O(N * N) is the correct complexity for a nested loop implementation. If you believe that is wrong, can you explain a bit more?
[ Parent
| on HN ]
Pretty sure nested loops are O(^2).
Re:SQLite's Automatic Indexes
by senderista on Wednesday December 28, 2022 @08:25PM
(#34168370)
Well that assumes the same cardinality for both sides of the join, which may be far from the case, especially if selections can be pushed down to scans.