About 4,530,000 results
Open links in new tab
  1. How to Create a nested index in MongoDB? - Stack Overflow

    Mar 16, 2012 · Mongodb has wildcard indexes that allow you to create an index for a field that contains varying keys. From the documentation: If the field is a nested document or array, the …

  2. Why does direction of index matter in MongoDB? - Stack Overflow

    Apr 26, 2012 · To quote the docs: When creating an index, the number associated with a key specifies the direction of the index, so it should always be 1 (ascending) or -1 (descending). …

  3. mongodb - Mongoose Unique index not working! - Stack Overflow

    MongoDB cannot create a unique index on the specified index field (s) if the collection already contains data that would violate the unique constraint for the index.

  4. Checking if an Index exists in mongodb - Stack Overflow

    Jan 27, 2016 · Is there a command that i can use via javascript in mongo shell that can be used to check if the particular index exists in my mongodb. I am building a script file that would create …

  5. indexing - How does the order of compound indexes matter in …

    Nov 5, 2015 · According to MongoDB docs on Compound Indexes. MongoDB supports compound indexes, where a single index structure holds references to multiple fields within a collection’s …

  6. How does sorting with an index work in MongoDB?

    I'm wondering how sorting with an index actually works in MongoDB. There are a couple articles in the MongoDB documentation, but they don't actually describe how the sort proceeds or the …

  7. How can we create an Index on MongoDB? - Stack Overflow

    May 11, 2018 · I want to create an Index on Mongo database for performance perspective, so could you please help me how I can do it? Your help will be appreciated here.

  8. indexing - Can MongoDB use an index when checking for …

    Dec 3, 2013 · As of June 2022 the index CANNOT be used for ${exists: true} case and CAN BE ONLY PARTIALLY used for the half of other cases. There is a major (IMO) design bug with …

  9. indexing - How does MongoDB index arrays? - Stack Overflow

    Oct 30, 2010 · How does MongoDB index arrays? Asked 14 years, 10 months ago Modified 7 years, 5 months ago Viewed 70k times

  10. mongodb status of index creation job - Stack Overflow

    I'm using MongoDB and have a collection with roughly 75 million records. I have added a compound index on two "fields" by using the following command: …