Syncgateway buckets and database

I have an app I’m developing where each user has their own database and I want them to be able to sync across devices. It seems as if buckets and databases should have a one to one relationship (I tried putting two databases I created via the sync-gateway admin api in one bucket and the item count returned was the total of both databases combined). Creating a bucket per database seems a bit much because you have to define the amount of ram per bucket in advance which is less than ideal.

I’m trying to figure out how do buckets fit into the architecture? Do I need to create a bucket per database?

1 Like

Bump. Same issue here.

What I ended up doing was one database and then use channels to split access