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

Add configuration option to enable/disable automatic index creation. [DATAMONGO-2188] #3049

spring-projects-issues opened this issue Jan 16, 2019 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Jan 16, 2019

Mark Paluch opened DATAMONGO-2188 and commented

Over time, we found that our auto-index creation feature causes more downstream issues than it actually solves. We constantly get requests to customize indexing in the sense of requirements that oppose each other.

The underlying issue is that indexing requires a lot of customization in terms of index definition and the time at which indexes are created. We're going to deprecate this feature and recommend using the API to derive/create index definitions and to use the API to create actually indexes.

Spring Data MongoDB does not aim for being a DDL tooling but rather improve development efficiency

Issue Links:

  • DATAMONGO-2477 Disable auto-index creation by default
    ("is depended on by")

  • DATAMONGO-2657 @Indexed causes Drop and Create Index which impacts applications

  • DATAMONGO-2190 Support For Creating Index in MongoTemplate based On Repository

  • DATAMONGO-719 Collection name based lazy indexing

Referenced from: pull request #636

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

Successfully merging a pull request may close this issue.

None yet
2 participants