Multipe syncgateway databases for same bucket


#1

Hi ,
I am trying to push the data from multiple devices into sync-gateway through multiple databases , but to same Bucket .
How can i design my config file with multiple databases pointing to one bucket.
(please send me some sample file )
thanks a lot


#2

This configuration is not supported, each database must have a separate backing bucket.

What is the desired use case for using different databases on SG that all map to one bucket?


#3

We use the logic in our code and call the appropriate syncgate rest API (by appending the db name at the end url)

now we have four diffrent databases like comments , sales,db, h_db.