Added 'hint' support, telling Mongo the proper index to use for the query.

Judicious use of hints can greatly improve query performance. When doing a query
on multiple fields (at least one of which is indexed) pass the indexed field as
a hint to the query. Hinting will not do anything if the corresponding index
does not exist.  The last hint applied to this cursor takes precedence over all
others.

Closes #203
This commit is contained in:
Ross Lawley
2011-06-17 12:43:28 +01:00
parent 62c8823e64
commit 5e7efcc8c2
3 changed files with 50 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ Changelog
Changes in dev
==============
- Added hint() support, so cantell Mongo the proper index to use for the query
- Fixed issue with inconsitent setting of _cls breaking inherited referencing
- Added help_text and verbose_name to fields to help with some form libs
- Updated item_frequencies to handle embedded document lookups