Sec. index: make json array elements be encoded with depth information #3329
Labels
area/datastore
Related to the datastore / storage engine system
area/query
Related to the query component
perf
Performance issue or suggestion
Depth information for array elements allow to be more specific about which items you want to deal with.
At the moment we store all array element values as if they were just normal scalar fields on a json doc.
Lets say we have this schema:
And we create this documents:
And then query:
This will result at the moment in an empty result, but correct behaviour would be to return "Andy" document as its
number
is not an array and shouldn't be checked against_none
.The indexes are stored roughly as follows:
CocroachDB uses
arr
suffix. With it the indexes might look like:The text was updated successfully, but these errors were encountered: