rwynn/monstache

Configure monstache to sync all collections in database

Opened this issue · 0 comments

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