LearnBoost/mongoose — pull request #828 by aheckmann (2012-04-12 00:50:35+00:00)
Title: [ready] create indexes in background by default

every time we connect to the db with mongoose, all indexes defined in schemas are created using `ensureIndex` but without the `background: true` option set.

index creation blocks the entire collection while running if the `background` option is not set.

this pull request changes our default behavior to create all indexes in the background.