spring-projects / spring-projects/spring-data-mongodb
MultiDatabase Auto Index
Open
Nobody has claimed this yet.
status: waiting-for-triage
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
From this issue:
Now with reproduction:
https://github.com/Lucasark/mongodb-multidata
Behavior:
Expected:
Create index only on collection "NewDB1" of model_1, but it created on both collections
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 by running the linked mongodb-multidata reproduction and inspect the indexes created for model_1 in both collections. Trace Spring Data MongoDB's auto-index creation behavior for multiple databases, then verify that the index is created only on the NewDB1 collection and not on the other collection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb, spring
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100