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

@@ -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
=================