You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
, collectionworkflow_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.
The text was updated successfully, but these errors were encountered: