https://www.w3.org/Bugs/Public/show_bug.cgi?id=21836
Bug ID: 21836
Summary: Remove NotSupportedError on creating index for
multiEntry index with array keyPath
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Indexed Database API
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
In creating index, the specification state that:
"If keyPath is and Array and the multiEntry
property in the optionalParameters is true, then a DOMException of type
NotSupportedError must be thrown."
However it is unnecessary. multiEntry is no different than
non-multiEntry index value, except the reference value is repeated. This
specification limit generalizes usage of composite index for key joining
algorithm.
Composite index with multiEntry is very useful, like modelling graph data
and many-to-many relationship. Currently query on such model are limited to
single index. It is also very unlikely that web developer will use excessive
indexing.
Discussion on:
http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0379.html
--
You are receiving this mail because:
You are on the CC list for the bug.