Skip to content

Revise index operations to remove redundant code#5174

Open
mp911de wants to merge 4 commits intomainfrom
issue/4422
Open

Revise index operations to remove redundant code#5174
mp911de wants to merge 4 commits intomainfrom
issue/4422

Conversation

@mp911de
Copy link
Member

@mp911de mp911de commented Mar 10, 2026

Refactored code duplications between DefaultIndexOperations and DefaultReactiveIndexOperations into IndexOperationsSupport. Added indexOps() overload to ReactiveMongoOperations accepting the entity class and collection name for consistency with MongoOperations.

IndexOperationsSupport provides template methods for various mapping stages of index information.

We deliberately do not expose Mongo's CreateIndexOptions but it's customizable through overriding toCreateIndexCommand.

Closes #4422

mp911de added 3 commits March 10, 2026 08:43
Simplify converters.
Refactored code duplications between DefaultIndexOperations and DefaultReactiveIndexOperations into IndexOperationsSupport. Added indexOps() overload to ReactiveMongoOperations accepting the entity class and collection name for consistency with MongoOperations.

IndexOperationsSupport provides template methods for various mapping stages of index information.
@mp911de mp911de added the type: enhancement A general enhancement label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose ability to set CreateIndexCommitQuorum in DefaultIndexOperations

3 participants