The Pros and Cons of Wildcard Indexes on MongoDB
Percona
DECEMBER 22, 2023
We have some fixed fields like name, date_of_birth, and gender, but also we have a subdocument userMetadata for any other attribute we don’t know in advance. This way, we can store everything we need. This way, we can store everything we need. Now, we can benefit from the index to execute any kind of query.
Let's personalize your content