Merge pull request #1691 from rcscott/document-auto-create-index
Add documentation for auto_create_index to the Indexing section of the Docs
This commit is contained in:
		| @@ -528,8 +528,9 @@ There are a few top level defaults for all indexes that can be set:: | ||||
|         meta = { | ||||
|             'index_options': {}, | ||||
|             'index_background': True, | ||||
|             'index_cls': False, | ||||
|             'auto_create_index': True, | ||||
|             'index_drop_dups': True, | ||||
|             'index_cls': False | ||||
|         } | ||||
|  | ||||
|  | ||||
| @@ -542,6 +543,12 @@ There are a few top level defaults for all indexes that can be set:: | ||||
| :attr:`index_cls` (Optional) | ||||
|     A way to turn off a specific index for _cls. | ||||
|  | ||||
| :attr:`auto_create_index` (Optional) | ||||
|     When this is True (default), MongoEngine will ensure that the correct | ||||
|     indexes exist in MongoDB each time a command is run. This can be disabled | ||||
|     in systems where indexes are managed separately. Disabling this will improve | ||||
|     performance. | ||||
|  | ||||
| :attr:`index_drop_dups` (Optional) | ||||
|     Set the default value for if an index should drop duplicates | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user