Do I need to reindex the MongoDB collection after some period of time, such as RDBMS

I like to get some knowledge of MongoDB reindexing. Please forgive me as I ask some subjective questions.

Questin: Should MongoDB periodically be re-indexed, as we do for RDBMS, or Mongo automatically manages it.

Thanks for your fedback

+4
source share
2 answers

Mongodb . , / . reIndex . , .

Call reIndex using the following form:

db.collection.reIndex();

: https://docs.mongodb.com/manual/reference/method/db.collection.reIndex/

+5

, , *. . .


* , :)

+4

Source: https://habr.com/ru/post/1529135/


All Articles