Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Given the multi-valued index:
CREATE INDEX someIdx ON SomeDataset ( field1, field2, UNNEST arrayField SELECT field3, field4 );
The following query could take advantage of the index above:
FROM SomeDataset D WHERE D.field1 = 1 AND D.field2 = 2 SELECT *;
but is currently not. This is because we delay recognition of array index applicability until we see the array component of an array index. Work to realize this involves improving how we make the decision to use a prefix search for array indexes.