I’m reading about Mongodb’s indexes for my Mongodb project
I am well aware that inserting data into a traditional relation database would cause a large slow down if the table was very large as the indexes are rebuilt.
If I choose to add indexes to Mongodb collections: Is rebuilding an index in Mongodb roughly as expensive as rebuilding an index in a traditional relational database? or does the fact that it uses a B-Tree for indexing improve rebuild time?
Rebuilding an index is just as expensive in Mongodb.
Note: traditional databases also use B-Trees.