CouchDB中不同数据库之间的联接 [英] Joins between different Databases in CouchDB

查看:65
本文介绍了CouchDB中不同数据库之间的联接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不同的CouchDB数据库之间建立联接?我知道,我可以将所有数据放入同一个数据库,但是我想使用Ubuntus DesktopCouch,它具有一些默认数据库,例如我要使用的便笺。而且我不想用我的东西垃圾那些数据库

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

推荐答案

您将无法获得来自视图结果中的不同数据库。您的程序可以简单地在每个独立的数据库中查询所需的文档。

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.

这篇关于CouchDB中不同数据库之间的联接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆