We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the following example documents:
{ "product": "iPhone", "attributes": { "storage": 16, "camera": 1200 } }, { "product": "Jacket", "attributes": { "size": "XL", "color": "Black" } }
It would be convenient to create an wildcard index like:
CREATE INDEX on idx_prod_attrs on product (attribuites.$)
Query can then filter by any of the possible attribute keys and speed up by index:
SELECT * FROM product where attributes.storage >= 16; SELECT * FROM product where attributes.size = 'XL';
MongoDB support this type of index https://www.mongodb.com/blog/post/coming-in-mongodb-42--1-wildcard-indexes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Proposal
For the following example documents:
It would be convenient to create an wildcard index like:
Query can then filter by any of the possible attribute keys and speed up by index:
Motivation
MongoDB support this type of index
https://www.mongodb.com/blog/post/coming-in-mongodb-42--1-wildcard-indexes
The text was updated successfully, but these errors were encountered: