This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Multi column indexes are only used if all columns share operation #261
Open
Description
Because our methods for Index
accept ...interface{}
, where the len of that slice is the length of columns in the index, all those methods require all the values, one for each column.
This creates a problem: all columns must use the exact same operation.
For example, consider we have an index on A
and B
:
A = 1 AND B = 1
will use the index.A > 1 AND B > 5
will use the index.A = 1 AND B < 5
will not, because=
and<
are not the same operation.