Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joins between different Databases in CouchDB

Tags:

couchdb

Is it possible to make a join between different CouchDB Databases? I know, that I can put all data into the same database, but I want to use Ubuntus DesktopCouch, which has some default databases like contacts an notes I want to use. And I don't want to "spam" those Databases with my stuff

like image 228
burli Avatar asked Feb 10 '11 18:02

burli


People also ask

Is CouchDB better than MongoDB?

At first, CouchDB looks like a compelling solution for the web world since it's built on top of the JSON document model and HTTP rest API interface. However, it lacks in security, performance, ease of use, query language, data types support, and cloud offerings when compared to MongoDB Atlas.

Is CouchDB faster than MongoDB?

MongoDB is faster than CouchDB. MongoDB provides faster read speeds. It follows the Map/Reduce query method. It follows Map/Reduce creating a collection and object-based query language.

What is replication in CouchDB?

Replication Procedure. During replication, CouchDB will compare the source and the destination database to determine which documents differ between the source and the destination database. It does so by following the Changes Feeds on the source and comparing the documents to the destination.


1 Answers

You won't be able to have documents from different databases in the results of a view. Your program can simply query each independent database for the docs you need.

Update - However, if you're wanting to create a working copy of that data for yourself in your own database, you can use replication to pull data into your database. Then you can mess with the data as much as you need, and push the updated data back via replication as well.

like image 146
Dominic Barnes Avatar answered Sep 27 '22 16:09

Dominic Barnes