MongoEngine / MongoEngine/mongoengine

CachedReferenceField is buggy and has terrible performance

Open
#2,288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.3k
Forks
1.2k
Avg merge
4h 41m
Merged PRs (30d)
11

Description

CachedReferenceField has number of bugs and causes bad performance problem as there are a lot of hidden dereferencing that happens to keep the cached field aligned.

See discussion here #1047

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the discussion in issue #1047 to identify the reported CachedReferenceField bugs and the hidden dereferencing behavior. The issue does not name files, tests, or a defined completion condition, so the affected code and expected fixes must be established before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, python
Domain
database
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.