Added more docs about compare_indexes (#364)
This commit is contained in:
parent
025c16c95d
commit
e2b32b4bb3
@ -497,7 +497,6 @@ in this case use 'dot' notation to identify the value to index eg: `rank.title`
|
|||||||
Geospatial indexes
|
Geospatial indexes
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
||||||
The best geo index for mongodb is the new "2dsphere", which has an improved
|
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.
|
spherical model and provides better performance and more options when querying.
|
||||||
The following fields will explicitly add a "2dsphere" index:
|
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
|
Ordering
|
||||||
========
|
========
|
||||||
A default ordering can be specified for your
|
A default ordering can be specified for your
|
||||||
|
Loading…
x
Reference in New Issue
Block a user