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
I have a database where collections can be removed and added by a user. So every time the service restarts it needs to synchronize all the changed collections.
For the config value "change-stream-namespaces" I can set the database name, and this works fine
But when the service starts I also need to sync all existing data in all collections in database that is not already synced. The config value "direct-read-namespaces" can be used for this, but it's not possible to give it the value of the database name to sync all collections in the database. And since the collections are dynamic I can't hard code the collection names
Can I use something like below for syncing all collections in database databasename?
direct-read-namespaces = [ "" ]
direct-read-dynamic-include-regex = 'databasename.'
The text was updated successfully, but these errors were encountered:
I have a database where collections can be removed and added by a user. So every time the service restarts it needs to synchronize all the changed collections.
For the config value "change-stream-namespaces" I can set the database name, and this works fine
But when the service starts I also need to sync all existing data in all collections in database that is not already synced. The config value "direct-read-namespaces" can be used for this, but it's not possible to give it the value of the database name to sync all collections in the database. And since the collections are dynamic I can't hard code the collection names
Can I use something like below for syncing all collections in database databasename?
direct-read-namespaces = [ "" ]
direct-read-dynamic-include-regex = 'databasename.'
The text was updated successfully, but these errors were encountered: