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

[ENH] Make the creation of MongoDB collections and indexes more configurable #6321

Open
rosca-sabina opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rosca-sabina
Copy link
Contributor

Enhancement Overview

Currently MongoDB collections and their indexes are created through background services that run at application start-up and declare the indexes. These background services are internal, so the cannot be accessed by user code.

This makes it difficult to customize the collections. For example, to add a TTL index for cleanup. Or, if you choose to not use one of the collections (for instance, you don't need workflow execution logs and you use the
NoopWorkflowExecutionLogStore, collection workflow_execution_logs is still created by the background service).

Proposed Enhancement

Adding migrations to the MongoDb module, in the form of having a Javascript script that users have to run themselves separately from the application, to create the collecions and indexes. This way, users would be able to customize the script to add new indexes, or remove unused collections.

@rosca-sabina rosca-sabina added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant