MorphiaOrg / MorphiaOrg/morphia

Use BsonDocuments in the iterator

Open
#1,948 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement experimental
Dominant language
Java
Stars
1.7k
Forks
449
Avg merge
7m
Merged PRs (30d)
10

Description

If we get info back out of the driver as a MongoCursor<BsonDocument> we can hand each document off to the codecs with out our own DecoderContext instances with caching information to allow for proper caching/fetching of duplicate/cyclical references. This will still require changes to the driver so it's all very speculative.

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 tracing the iterator's handling of MongoCursor and the codec handoff. Determine the required driver changes and verify that documents can be passed to codecs without locally created DecoderContext instances while preserving caching and duplicate or cyclical reference fetching.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
backend, databases
Issue type
Refactor
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.