Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supportin: mappingMapping and conversion infrastructuretype: taskA general task

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions