From e2b32b4bb378bedf6fa962b02ebe893e7b8e1e4b Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Fri, 7 Jun 2013 08:43:05 +0000 Subject: [PATCH] Added more docs about compare_indexes (#364) --- docs/guide/defining-documents.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/guide/defining-documents.rst b/docs/guide/defining-documents.rst index ed9c142c..b3b1e592 100644 --- a/docs/guide/defining-documents.rst +++ b/docs/guide/defining-documents.rst @@ -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