diff --git a/docs/guide.jade b/docs/guide.jade index 859a5199255..95e66a12b95 100644 --- a/docs/guide.jade +++ b/docs/guide.jade @@ -145,7 +145,7 @@ block content :markdown When your application starts up, Mongoose automatically calls `ensureIndex` for each defined index in your schema. Mongoose will call `ensureIndex` for each index sequentially, and emit an 'index' event on the model when all the `ensureIndex` calls succeeded or when there was an error. - While nice for development, it is recommended this behavior be disabled in production since index creation can cause a [significant performance impact](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations). Disable the behavior by setting the `autoIndex` option of your schema to `false`, or globally on the connection by setting the option `config.autoIndex` to `flase`. + While nice for development, it is recommended this behavior be disabled in production since index creation can cause a [significant performance impact](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations). Disable the behavior by setting the `autoIndex` option of your schema to `false`, or globally on the connection by setting the option `config.autoIndex` to `false`. :js animalSchema.set('autoIndex', false);