MongoEngine / MongoEngine/mongoengine
Document.reload always dereferences via select_related
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4h 41m
- Merged PRs (30d)
- 11
Description
Is this a correct behavior, that Document.reload always dereferences via select_related even though automatic dereferencing can be disabled ( http://docs.mongoengine.org/guide/querying.html#turning-off-dereferencing ) ?
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.
Research direction
Start at mongoengine/document.py lines 718-720 and compare Document.reload with the documented automatic-dereferencing behavior in the linked querying guide. Verify what happens when dereferencing is disabled, then establish and test the expected reload behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, python
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100