Skip to content

Commit

Permalink
Merge pull request #3390 from kmctown/patch-1
Browse files Browse the repository at this point in the history
Fix typo `flase` => `false`.
  • Loading branch information
vkarpov15 committed Sep 21, 2015
2 parents fac3c6a + a65b110 commit c230e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.jade
Expand Up @@ -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);
Expand Down

0 comments on commit c230e14

Please sign in to comment.