Added more docs about compare_indexes (#364)

This commit is contained in:
Ross Lawley 2013-06-07 08:43:05 +00:00
parent 025c16c95d
commit e2b32b4bb3

View File

@ -497,7 +497,6 @@ in this case use 'dot' notation to identify the value to index eg: `rank.title`
Geospatial indexes
------------------
The best geo index for mongodb is the new "2dsphere", which has an improved
spherical model and provides better performance and more options when querying.
The following fields will explicitly add a "2dsphere" index:
@ -559,6 +558,14 @@ documentation for more information. A common usecase might be session data::
]
}
Comparing Indexes
-----------------
Use :func:`mongoengine.Document.compare_indexes` to compare actual indexes in
the database to those that your document definitions define. This is useful
for maintenance purposes and ensuring you have the correct indexes for your
schema.
Ordering
========
A default ordering can be specified for your