MongoEngine / MongoEngine/mongoengine
Default to non caching querysets
Open
@bagerard is already working on this.
Since Oct 5, 2019.
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4h 41m
- Merged PRs (30d)
- 11
Description
We've always had a __len__ helper in the queryset, but it had side effects - it caused a query.
To fix that I implemented a cached queryset (ala django) but thats less than ideal also see: #365 as memory usage could be huge.
So the plan is to flip the default in 0.9 and don't provide a __len__ by default.
- Need to support
no_cachein the ne default (just return self) and educate users in the docs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.