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:
parent
62c8823e64
commit
5e7efcc8c2
3 changed files with 50 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue