- April 30, 2020
MongoDB supoort different types of indexes such as Single Field Indexes, Compound Indexes, Multikey Indexes, Text Indexes,? Wildcard Indexes, 2dsphere Indexes, 2d Indexes, geoHaystack Indexes, Hashed Indexes, and default _id index.
Indexes support the efficient execution of queries in MongoDB queries. Without indexes, MongoDB must perform a collection scan, i.e. scan every document in a collection....