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
2
votes
2 answers

Deleting all documents in CouchDB

I have a database and I want to truncate all records, I know it is possible to just add a _deleted key to every document or call db.delete() on CouchDB-python library. I am using the delete of couchdb-python but it does not seem to work when I fetch…
ellaRT
  • 1,346
  • 2
  • 16
  • 39
2
votes
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)…
2
votes
1 answer

CouchDB: difference between max_replication_retry_count and retries_per_request

I'm currently exploring CouchDB replication and trying to figure out the difference between max_replication_retry_count and retries_per_request configuration options in [replicator] section of configuration file. Basically I want to configure…
Vovan Kuznetsov
  • 461
  • 1
  • 4
  • 10
2
votes
2 answers

Cloudant/Mango selector for deeply nested JSONs

Let's say some of my documents have the following structure: { "something":{ "a":"b" }, "some_other_thing":{ "c":"d" }, "what_i_want":{ "is_down_here":[ { "some":{ …
zlr
  • 789
  • 11
  • 22
2
votes
0 answers

Unbalanced Disk Usage Among Nodes in CouchDB

I've built up a CouchDB cluster of 4 nodes to store the tweets I retrieved The cluster was configured to have 8 shards and keep 3 copies of each document [cluster] q=8 r=2 w=2 n=3 I haven't added any views or additional indexes and the size of the…
Frederick Zhang
  • 3,593
  • 4
  • 32
  • 54
2
votes
0 answers

How are CouchDB 2.0 nodes split across servers?

Looking at one of the CouchDB 2.0 lead-up blog posts (here), there is mention of shards (q), copies (n) and nodes. Reading up on Couch 2.0 suggests (to me at least) that a node is basically an instance of Couch, which can either be a shard or a…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
2
votes
0 answers

How to shard data in couchdb

I just finished setting up a CouchDB cluster with 3 nodes. Now I am trying to shard my data to scale the database, this is what I did to create a database with 2 shards and 2 replicas: Create a database with the command $ curl -X PUT…
nick
  • 460
  • 4
  • 24
2
votes
0 answers

How to verify a CouchDB 2.0 cluster setup

I just set my three CouchDB instances as a cluster, this is how I did when I set it up: Add "-kernel inet-dist-listen-minimum/maxinum" from 9100 to 9200 to the vm.args file. and shut down the firewall Set three couchdb instanes' using the same…
nick
  • 460
  • 4
  • 24
2
votes
1 answer

couch_peruser in CouchDB 2.0 not working

I am working on a use case where every user has to have his/her private couchdb database. I came across the couch_peruser configuration flag in CouchDB 2.0 CouchDB Official Link. Setting this flag to true create a private database for every user in…
shikhar bansal
  • 1,629
  • 2
  • 21
  • 43
2
votes
1 answer

Can you implement document joins using CouchDB 2.0 'Mango'?

From previous work on CouchDB 1.6.1, I know that it's possible to implement document joins in a couple ways: For example, with a simple schema of 'studentsand 'courses: // Students table | Student ID | Student Name | XYZ1 | Zach // Courses…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
2
votes
0 answers

Couchdb installation issue

After installing couchdb using a script I am having some issue, my couchdb instance in not running Os is ubuntu 16.04 couchdb version 2.0.0 following is the error. Feb 03 16:55:30 hisab-couchdb couchdb[2003]: [error] 2017-02-03T16:55:30.432974Z…
Pratik Shah
  • 1,782
  • 1
  • 15
  • 33
2
votes
0 answers

how does a couchdb cluster respond when a document is not available on a node?

I have a cluster of three couchdb 2.0 nodes A (in America) B (in Europe) and C (in Asia). All of these are behind a domain (say domain.com) and I am using nginx to load balance using the GeoIP module. So for e.g. a request from Asia would be routed…
1
vote
1 answer

Editing a `local document` in CouchDb using fauxton

Am I right in thinking that it is not possible to edit/view a local document in a CouchDb database using Fauxton? I can't see how to do it from the UI, and Googling returns no references to being able to do it. Local documents aren't a major part of…
ianmayo
  • 2,256
  • 3
  • 26
  • 44
1
vote
0 answers

How to host CouchDb in Heroku

I have a node.js application that is using Apache CouchDB for it's NoSQL database. I am new to Heroku and just deployed my API to Heroku instance. I tried pusing docker image of Couchdb to heroku but its throwing error [WARN tini (3)] Tini is not…
1
vote
1 answer

timeout with couchdb mapReduce when database is huge

Details: Apache CouchDB v. 3.1.1 about 5 GB of twitter data have been dumped in partitions Map reduce function that I have written: { "_id": "_design/Info", "_rev": "13-c943aaf3b77b970f4e787be600dd240e", "views": { "trial-view": { …
Ankita
  • 159
  • 1
  • 3
  • 10
1 2
3
8 9