Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshots collection name should be configurable #1169

Closed
SanderK79 opened this issue Jan 12, 2022 · 5 comments
Closed

Snapshots collection name should be configurable #1169

SanderK79 opened this issue Jan 12, 2022 · 5 comments

Comments

@SanderK79
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There is no option to configure the collection name of the jv_snapshots. So if multiple microservices are writing in multiple collections in that database all services are using the same jv_snapshots.

Describe the solution you'd like
Make it configurable which collection name should be used

Describe alternatives you've considered
none

Additional context

@thierryve
Copy link

👍 Nice Enhancement

@Hessel66
Copy link

I want this.

@bartoszwalacik
Copy link
Member

@SanderK79 please go on, we will accept your PR

@bartoszwalacik
Copy link
Member

@SanderK79 thanks for the contribution. I have merged with some style fixes. Released in 6.6.0. Another feature would be to make it configurable in Spring Boot props.

@bartoszwalacik
Copy link
Member

usage:

MongoRepository mongoRepository = new MongoRepository(getMongoDb(),
                      mongoRepositoryConfiguration()
                              .withSnapshotCollectionName("jv_custom_snapshots")
                              .withHeadCollectionName("jv_custom_head_id")
                              .build())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants