Convert to a non-caching queryset
(self)
| 149 | return self._len |
| 150 | |
| 151 | def no_cache(self): |
| 152 | """Convert to a non-caching queryset""" |
| 153 | if self._result_cache is not None: |
| 154 | raise OperationError("QuerySet already cached") |
| 155 | |
| 156 | return self._clone_into(QuerySetNoCache(self._document, self._collection)) |
| 157 | |
| 158 | |
| 159 | class QuerySetNoCache(BaseQuerySet): |