kernelci / kernelci-backend

Upstream Linux Kernel Validation Project API
http://api.kernelci.org
GNU Lesser General Public License v2.1
40 stars 27 forks source link

Drop background option when creating indexes #263

Closed gctucker closed 4 years ago

gctucker commented 4 years ago

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