Questions tagged [couchdb-2.0]

Use couchdb-2.0 for questions specific to the 2.0 major release of CouchDB and its minor releases.

References

117 questions
1
vote
1 answer

CouchDB replication ignoring sporadic documents

I've got a CouchDB setup (CouchDB 2.1.1) for my app, which relies heavily on replication integrity. We are using the "one db per user" approach, with an additional layer of "role" db:s that groups users like the image below. Recently, while…
davidanton1d
  • 199
  • 1
  • 10
1
vote
1 answer

Document update conflict with CouchDB design update

I am trying create an equivalent of create/update trigger used in traditional RDBMs. create_ts is being created fine, however update_ts part is not working for me. "updates": { "add_ts": "function(doc, req) { if(!doc){ …
bioffe
  • 5,716
  • 2
  • 45
  • 63
1
vote
1 answer

Automatic compaction in CouchDB 2.2

I have read the following article, because couchdb was busy almost all the space of my hard drive at an impressive speed. Thanks to this article I have managed to reduce the size of my database from 19 GB to 19 MB. But I would like the "compaction"…
Carlos
  • 201
  • 1
  • 8
1
vote
1 answer

Bulk Undelete CouchDB Docs with CouchDB-Python

I accidentally deleted all the docs in a CouchDB database and I want to undelete them. CouchDB version = 2.2.0 Python = 2.7 and I'm using the python-couchDB library. My CouchDB is not doing any compaction and 1260 documents are listed in the…
CMant
  • 31
  • 4
1
vote
2 answers

Search a list of keywords in CouchDB

I have documents containing lists of keywords. How can I query such that a search for e.g., the keywords bela and fleck returns only documents that have both of those keywords: { "_id": "track/bela-fleck/big-country", "title": "Big…
spiffytech
  • 5,185
  • 5
  • 36
  • 51
1
vote
0 answers

Are there multiple copies of each document in my single couchdb node?

I have a single instance of couch running (version 2.1.1). In the configuration settings for clustering it is set to have 3 replicas of each document (n=3). Are there actually 3 copies of each document on my single instance? If so how is that…
Sacrilege
  • 808
  • 8
  • 23
1
vote
1 answer

How to create Erlang Views in CouchDB

I'm trying to translate my couchdb views to Erlang due to the multiple couchjs process running on my server. I navigated through some tutorials and some stackoverflow questions but I didn't see anyone talk about the place where I should type the…
1
vote
1 answer

Creating a validation with CouchDB (Fauxton)

I store products in the following way in a CouchDB database: { "_id": "1ce330a867a803fd10082c4513000fe5", "_rev": "4-a5eae6f790ea8b9cedea53db50a13fef", "type": "Product", "name": "Apple", "price": 1 } I'd like to create a validation to…
wintermeyer
  • 7,536
  • 8
  • 34
  • 69
1
vote
2 answers

Is it possible to get a list of all conflicts?

I am working on some conflict resolution, and I am running through a test database that has a worrisome number of conflicts. I am looking for a way to watch a burn down of the conflicts to verify that my script is working. Is there a way to…
Trevor
  • 2,273
  • 1
  • 23
  • 35
1
vote
1 answer

Migrating CouchDB 1.x to 2.x using "couchup" utility

I currently am trying to convert my couchdb 1.6.1 files to couchdb 2.1.1 I am trying to use the "couchup" utility recommended by Apache in there documentation ( http://docs.couchdb.org/en/latest/install/upgrading.html ) I copied my files from the…
Scott Kim
  • 21
  • 5
1
vote
1 answer

Retrieve deleted document with Cloudant

I have deleted documents by mistake in Cloudant but can't find a way to retrieve them. I have followed this tuto: http://garmoncheg.blogspot.com/2013/11/couchdb-restoring-deletedupdated.html And this answer: Retrieve just deleted document Without…
ncohen
  • 6,184
  • 19
  • 61
  • 112
1
vote
1 answer

Creating filtered indexes on couchdb

I've been trying to create a filtered index as per CouchDB 2.1 documentation, but failed miserably (at the bottom of the section there's an example for "index creation using all available query parameters"). Basically, I have a bunch of documents…
AVK
  • 645
  • 8
  • 20
1
vote
0 answers

Is CouchDB/PouchDB a viable solution for my project? Any advice is welcome

I have been reading up a lot about CouchDB (and PouchDB) and am still unsure what the best option would be for a project of mine. I do have a possible way to solve the project in my head based on what I have read so far, but I am unsure about things…
Wesley - Synio
  • 474
  • 3
  • 10
1
vote
1 answer

Why are there two ways to update documents?

As a CouchDB beginner I'm having a hard time understanding how to update documents. When I read the docs I find this which is quite confusing for me: 1) Updating an Existing Document To update an existing document you must specify the current…
Magiranu
  • 289
  • 3
  • 21
1
vote
1 answer

CouchDB views are getting timeout while fetching Data

I have 120k JSON records in CouchDB, where i have created 6 views under one design document. While accessing the view it gives me timeout error. (org.lightcouch.CouchDbException: << Status: 500 (Internal Server Error)…