The "background" option was used prior to Mongo DB v4.2 to avoid
locking all the database while creating the indexes. Starting with
v4.2, only the collection where the index is being created is locked.
The "background" option is no longer used in practice, and the
resulting indexes provide better performance.
The "background" option was used prior to Mongo DB v4.2 to avoid locking all the database while creating the indexes. Starting with v4.2, only the collection where the index is being created is locked. The "background" option is no longer used in practice, and the resulting indexes provide better performance.
Signed-off-by: Guillaume Tucker guillaume.tucker@collabora.com