MorphiaOrg / MorphiaOrg/morphia

Apply @AlsoLoad during query construction

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

Nobody has claimed this yet.

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

Description

@AlsoLoad is there to help load data from old location as part of a gradual migration to new schema definitions. But this gradualness breaks queries against those migrating fields. What if queries would automatically $or together filters against those fields so they'd resolve properly against those old locations? Such a feature would likely need to be opt in for performance reasons.

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 @AlsoLoad through query construction and how filters resolve migrating fields; the issue names no files or tests. Define the opt-in behavior and verify that queries combine current and old locations with $or without changing default performance.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.