You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If multiEntry were false, this throws since alias does not resolve and the compound key can't have a hole. But here it would be logical (?) for there to be only a single entry.
Of course, this risks a combinatorial explosion. But it seems to me that the combination of multiEntry and compound indices ought to be the cartesian product. Thoughts?
Imported from https://www.w3.org/Bugs/Public/show_bug.cgi?id=21836
Currently, the spec for IDBObjectStore.createIndex has:
This disallows some interesting use cases, although the expected behavior in more complex cases is unclear. Per @sicking:
Consider a multiEntry index with keyPath ["a", "b"]
It's pretty intuitive that storing a value like:
would add the following entries to the index:
"apple" -> 1
"orange" -> 1
But what would storing the following value result in?
Would this result in the following entries
A)
["apple", "x"] -> 1
["orange", "y"] -> 1
or
B)
"apple" -> 1
"x" -> 1
"orange" -> 1
"y" -> 1
or
C)
["apple", "orange"] -> 1
["x", "y"] -> 1
The text was updated successfully, but these errors were encountered: