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

Configure monstache to sync all collections in database #699

Open
eirik-andersen opened this issue Oct 26, 2023 · 0 comments
Open

Configure monstache to sync all collections in database #699

eirik-andersen opened this issue Oct 26, 2023 · 0 comments

Comments

@eirik-andersen
Copy link

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.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant