Added QuerySetNoCache and QuerySet.no_cache() for lower memory consumption (#365)

This commit is contained in:
Ross Lawley
2013-07-10 16:16:50 +00:00
parent 8131f0a752
commit 634b874c46
6 changed files with 1586 additions and 1478 deletions

View File

@@ -49,6 +49,11 @@ Querying
.. automethod:: mongoengine.queryset.QuerySet.__call__
.. autoclass:: mongoengine.queryset.QuerySetNoCache
:members:
.. automethod:: mongoengine.queryset.QuerySetNoCache.__call__
.. autofunction:: mongoengine.queryset.queryset_manager
Fields

View File

@@ -4,6 +4,7 @@ Changelog
Changes in 0.8.3
================
- Added QuerySetNoCache and QuerySet.no_cache() for lower memory consumption (#365)
- Fixed sum and average mapreduce dot notation support (#375, #376)
- Fixed as_pymongo to return the id (#386)
- Document.select_related() now respects `db_alias` (#377)

View File

@@ -16,7 +16,9 @@ fetch documents from the database::
.. note::
As of MongoEngine 0.8 the querysets utilise a local cache. So iterating
it multiple times will only cause a single query.
it multiple times will only cause a single query. If this is not the
desired behavour you can call :class:`~mongoengine.QuerySet.no_cache` to
return a non-caching queryset.
Filtering queries
=================