spring-data-mongodb
spring-data-mongodb copied to clipboard
MultiDatabase Auto Index
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
Thank you for following up on that issue - we'll have a look.
Thank you for following up on that issue - we'll have a look.
Any update?
@christophstrobl any update?
it's on the list - sorry it takes so long.
it's on the list - sorry it takes so long.
Just to remember haha, :D
It looks like the sample is sharing the very same MappingContext having index creation enabled for the two templates. Since the context is auto configured the entity scanning picks up all domain types from the applications base package com.example.multi_mongo_proj which contains both modelRepo1 and modelRepo2 .