couchdb

Replicating from a read-only couchdb

孤街醉人 提交于 2020-01-01 05:39:30
问题 I have a server, with a couchdb database that contains information my application needs. It contains a couple megabytes of stuff, a few documents which change on a day-to-day basis (adding latest news, deleting old documents, updating a few). The application syncs with the servers database when it can (to have this information available offline). However, this information is global to every user of my application -- so by necessity needs to be restricted to strictly read-only access. However,

CouchDB: Restricting users to only replicating their own documents

淺唱寂寞╮ 提交于 2020-01-01 05:03:11
问题 I'm having trouble finding documentation on the request object argument used in replication filters ('req' in the sample below): function(doc, req) { // what is inside req??? return false; } This old CouchBase blog post has a little code snippet that shows the userCtx variable being a part of the request object: What is this userCtx? When you make an authenticated request against CouchDB, either using HTTP basic auth, secure cookie auth or OAuth, CouchDB will verify the user’s credentials. If

Membase can someone explain the idea behind their technology

我只是一个虾纸丫 提交于 2020-01-01 05:03:07
问题 It is fourth day already since I've started diving into CouchDB specifically Membase (Couchbase), Membase seems really interesting technology for me due to simplicity of administration, their interface is as magical as informal and simple. The way you add/remove buckets is just fun. Unfortunately I didn't managed to launch their .NET client on Mac OS X (on Windows it worked fine) and also couldn't find out the way to perform Map/Reduce queries so it seemed that Membase Server technology is

Error creating user in CouchDB 1.0

痴心易碎 提交于 2020-01-01 03:23:52
问题 My system is ubuntu 10.04 and I have CouchDB 1.0 installed. I can create admin, or more admins, log in as admin and everything works fine. Since 0.11 in CouchDB there is notion of users which are not admins, and can have fine grained rights to databases. I want to create such user. I open Futon, I am not logged in, and I click "Signup" link (lower right corner). Then there is question about username and password. When I fill in the form and submit it, there is very long error message under

Best Practice for CouchDB Document Versioning [closed]

纵然是瞬间 提交于 2020-01-01 03:15:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Following my question here I am exmploring ideas for a generic approach to document versioning in CouchDB. While I imagine there may be no canonical approach, I had the following idea and am looking for feedback. I would like to maintain readable document ids as much as

CouchDB modeling for multi-user

守給你的承諾、 提交于 2020-01-01 03:06:45
问题 I am already excited about document databases and especially about CouchDB's simplicity. But I have a hard time understanding if such databases are a viable option for multi user systems. Since those systems require some kind of relations between records which document databases do not provide. Is it completely the wrong tool for such cases? Or some tagging and temporary views are the way to accomplish this? Or else... UPDATE: I understand the answers so far. But let me rephrase the question

cloudant python https connection pooling?

為{幸葍}努か 提交于 2019-12-31 03:45:10
问题 I've been doing some testing of https connection pooling from cloudant python requests as part of gunicorn request handling: # -*- coding: utf-8 - from requests.adapters import HTTPAdapter import cloudant import logging import json # log when new connections are started by urllib3 logging.basicConfig() requests_log = logging.getLogger("requests.packages.urllib3") requests_log.setLevel(logging.DEBUG) requests_log.propagate = True def app(environ, start_response): httpAdapter = HTTPAdapter(pool

Can I create multiple collections per database?

老子叫甜甜 提交于 2019-12-30 02:09:10
问题 Switching from mongo to pouchdb (with Cloudant), i like the "one database per user" concept, but is there a way to create multiple collections/tables per database ? Example - Peter - History - Settings - Friends - John - History - Settings - Friends etc... 回答1: Couchdb does not have the concept of collections. However, you can achieve similar results using type identifiers on your documents in conjunction with Couchdb views. Type Identifiers When you save a document in Couchdb add a field

Apache CouchDB 1.2.0新特性

谁说胖子不能爱 提交于 2019-12-29 21:58:31
Apache CouchDB 1.2.0 正式发布,该版本涉及诸多方面的改进,如性能、安全、系统构建、存储等。CouchDB是用 Erlang 开发的非关系型数据库,它支持物理上线性扩展,并提供REST API给用户使用。该版本主要的改进如下: 性能 新增原生JSON解析器——解析器的核心逻辑完全由C语言实现,这大大提升了系统的响应时间 数据库和视图索引文件的压缩功能——压缩功能由 Google Snappy 实现,并提升了系统的可伸缩性 改进了数据库写以及视图索引功能——利用了 Erlang 运行时系统的优势 提升了内置feed过滤器的性能 安全(值得注意的一点是,该版本安全性的改进牺牲了一些向前兼容性) _users数据库文档对象的访问权限不再开放给所有用户 _replication数据库中敏感信息的访问权限不再开放给所有用户 密码的哈希串由数据库生成,不再依赖客户端 以Cookie的方式实现持久化用户登录状态 OAuth secrets可以存储在用户系统数据库中 Erlang 库升级到最新版本 系统构建 构建CouchDB不再需要cURL——这将使得在特定平台上构建CouchDB变得简单 CouchDB在HTTP API、数据存储、数据库复制等方面也做了改进,详细内容可以参照 发布说明 。 从服务厂商的反应来看, Iris Couch (Couch DB的免费云服务提供商)

Cloudant auth: lacks _users database

对着背影说爱祢 提交于 2019-12-29 18:42:05
问题 I'm getting set up with CouchDB on Cloudant, and I'm confused because Cloudant seems to do auth differently than regular CouchDB. Specifically, Cloudant seems to lack a _users database. I read the Cloudant auth FAQ here, and it provided the following instructions: Can I use CouchDB security features (_users database, security objects, validation functions) on Cloudant? Yes you can. If you want to use the _users database you must first turn off Cloudant's own security for the roles you want to