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

122 questions
1
vote
1 answer

How to set up replication from one docker couchDB to another?

I have the following docker containers running on my windows 10 host: PS C:\Users\jj2> docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS …
dot
  • 14,928
  • 41
  • 110
  • 218
1
vote
1 answer

How to install previous version of couchdb from a package

I've been struggling to find any documentation on how to install previous versions of CouchDB onto Ubuntu from a package. Following any documentation such as https://docs.couchdb.org/en/2.1.2/install/unix.html#installing leads to installing of the…
AVK
  • 645
  • 9
  • 22
1
vote
1 answer

How can I update documents attribute without effect of other attribute in CouchDB?

I used couchDB with PHP using guzzle to post,put,get and delete data. post, get, delete working fine but problem occur in put. When I send put request document updated with only updated attribute values and all other attributes remove in the…
1
vote
1 answer

Do views duplicate data or they only create an index?

I'm learning about CouchDB, and I don't get it: When I create a view, does the view copy the data that's inside the emit function or it only creates a new index based on it? For example, let's suppose I have a database with documents like this…
tastydb
  • 542
  • 1
  • 3
  • 13
1
vote
1 answer

Is it there a way to get a specific revision?

I'm learning CouchDB and I just read that when it comes to confict resolution, CouchDB keeps two revisions of the document, the winning one and the conflicted one. Does CouchDB keep several revisions of the same document? How can I get a specific…
tastydb
  • 542
  • 1
  • 3
  • 13
1
vote
1 answer

CouchDB v1.7.1 database replication to CouchDB v2.3.0 database fails

In Fauxton, I've setup a replication rule from a CouchDB v1.7.1 database to a new CouchDB v2.3.0 database. The source does not have any authentication configured. The target does. I've added the username and password to the Job Configuration. It…
ndequeker
  • 7,932
  • 7
  • 61
  • 93
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
  • 6,283
  • 3
  • 50
  • 65
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
  • 2
  • 10
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
  • 5
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
  • 6,161
  • 7
  • 41
  • 57
1
vote
1 answer

Is incremental backup in couchdb possible?

As I'm about to implement it myself, I'm curious to know how people handle incremental backups for their DB's. The straight-forward way, as I see it, is to shutdown couch and use a tool like rsync or duplicity to backup db files. It should do the…
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
  • 795
  • 9
  • 25
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
  • 8,178
  • 8
  • 39
  • 85
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,792
  • 1
  • 30
  • 43
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 2 3
8 9