3 ms·
A tree would require the ability to have control flow based on data, or using data as an index. You can't do that while keeping the data secret. Just to selec
by Dylan16807 6y ago
A tree would require the ability to have control flow based on data, or using data as an index. You can't do that while keeping the data secret.
Just to select a single row you have to do something like sum(row_meets_criteria() * row). With row_meets_criteria returning 0 or 1.
- trhway 6y agofor equality predicate you can just use hash based index, for range search the situation is of course worse, yet you can have a somewhat like a partially/probabilistically preserving order hash so that you can produce a number of candidates orders of magnitude less than the whole table scan.