NoRM icon indicating copy to clipboard operation
NoRM copied to clipboard

Allow Indexes to be created in background

Open ahazelwood opened this issue 14 years ago • 2 comments

It would be nice to be able to ensure that indexes get created in the background as described on: http://www.mongodb.org/display/DOCS/Indexes#Indexes-BackgroundIndexBuilding Would it be as simple as creating a new property on MongoIndex and then mapping that to the underlying request?

ahazelwood avatar Jul 21 '10 17:07 ahazelwood

I'm fairly certain that our index creation mechanism is already async, I will research and let you know.

atheken avatar Jul 21 '10 17:07 atheken

The operation is currently asynchronous, but it locks the database which I believe the background option prevents from happening. Not a big deal on a small database, but on a large (multi-million object) database, it becomes important.

ahazelwood avatar Jul 21 '10 18:07 ahazelwood