Permalink
Browse files

website; .important autoIndex section

  • Loading branch information...
1 parent f212fd7 commit b8654804034b9a65b9accdea0b6f0b56501b8a6e @aheckmann aheckmann committed Dec 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/guide.jade
View
@@ -138,8 +138,8 @@ block content
:js
animalSchema.index({ name: 1, type: -1 });
- :markdown
- **When your application starts up, Mongoose automatically calls `ensureIndex` for each defined index. While nice for development, it is recommended this behavior be disabled in production by setting the `autoIndex` option of your schema to `false`. Index creation can have a significant performance impact on a busy production system. See the [MongoDB documentation](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations) for more information.**
+ .important
+ When your application starts up, Mongoose automatically calls `ensureIndex` for each defined index. While nice for development, it is recommended this behavior be disabled in production by setting the `autoIndex` option of your schema to `false`. Index creation can have a significant performance impact on a busy production system. See the [MongoDB documentation](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations) for more information.
:js
animalSchema.set('autoIndex', false);

0 comments on commit b865480

Please sign in to comment.