Skip to content

Creation/deletion of index done to secondary replica sets  #59

@flower-of-the-bridges

Description

@flower-of-the-bridges

Feature Description

Actually, the crud-service deletes and creates indexes at runtime on the configured database.
By default, if not specified on the MONGODB connection string, all operations are done on the primary replica set.

When the primary set is required to use a high amount of memory/cpu, a crud-service that starts up and connects to it may increase the operation load on the primary replica set and slow down the whole infrastructure.

Desired solution

At runtime is possible to switch the type of replica set the MongoDB client is used with the method setReadPreference('<replica set type>') from the MongoDbClient.

So I expect that the crud-service can switch the creation/deletion of indexes on the secondary replica set and after the creation/deletion of indexes is completed can return to the main one to perform the operation submitted by the users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions