Reputation: 11257
I'm using multiple CouchDB databases(separate database per a registered user) in my current ongoing web and mobile application project.
Now I need to get all the records from all the created databases.
How can I achieve this?
Upvotes: 0
Views: 425
Reputation: 2121
CouchDB does not provide a multi-database query mechanism. You should query each database one-by-one to collect that information.
This is a drawback of the db-per-user approach as it does not provide an aggregated view of the information that the application is collecting.
You can explore to implement a consolidation process that aggregates the documents of each user db into a single db using the built-in replication functionality.
Upvotes: 1