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
3
votes
0 answers

PouchDB to PouchDB replication via CouchDB too slow for real time applications

I have 2 devices (one running an electron app, the other a react-native mobile app) using PouchDB & a CouchDB 2.0 cluster to sync data between them. My use case is for a real-time application running on the 2 devices. I have noticed that if a…
Amal Antony
  • 6,477
  • 14
  • 53
  • 76
3
votes
2 answers

Does CouchDB 2 sync user sessions across nodes?

I’m currently working on a docker-compose setup that can be used to deploy a cluster of CouchDB 2 nodes. I’ve finally got the nodes working and the data syncing across nodes, but unless I am mistaken, it appears that CouchDB does not sync user…
redgeoff
  • 3,163
  • 1
  • 25
  • 39
3
votes
0 answers

CouchDB's erl.exe never idle

As a developer making an app that uses CouchDB for data storage, and working mostly on a laptop I noticed that erl.exe for CouchDB 1.6.1 had the CPU usage at 5% when it was idle (with no connections to it at all, no replication, no pending tasks).…
Peter pete
  • 704
  • 1
  • 7
  • 17
3
votes
2 answers

Is startkey pagination required for Mango queries in CouchDB 2.0

I've been searching all over on this one. I'm running CouchDB 2.0 and understand I have a choice to make between using traditional views or the newer Mango query when retrieving a set of data. So I'm currently using the Mango query syntax and…
3
votes
2 answers

How to create a "validate document update" on CouchDB 2?

I've read about validations (validate_doc_update) we can create on CouchDB, however I didn't figure out how I can create them. Can I do it through Fauxton? Databases -> "mydb" -> Design Documents -> New Doc Is this the way? Must I declare the…
user1519240
  • 2,186
  • 1
  • 22
  • 20
2
votes
0 answers

CouchDB and PouchDB are producing duplicate records when recreating same CouchDB from scratch with a script

We have a couch DB we are developing on. We have a script that, for development purposes, just recreates the couch database from some json files from scratch every time we run that script. All the data we are inserting into couch from this script…
2
votes
1 answer

couchdb GET _replicator database returns 500

I have a cluster where the _replicator database returns: {"error":"nodedown","reason":"progress not possible"} All other DBs are good, I don't have any replication beyond the cluster itself. I'd like just recreate the _replicator DB in the cluster…
greggmi
  • 445
  • 4
  • 14
2
votes
0 answers

How can I index nested array fields without views in CouchDb?

I'm looking for index a nested array field, I have the following document: { "id": "invoice1", "sellers": [{ "names": "Clark", "items": [{ "iditem": "item1", "properties": [{ "width":…
Julian Solarte
  • 555
  • 6
  • 29
2
votes
1 answer

CouchDB per field read privilege based on roles

I'm new with CouchDB. I don't know if I can restrict the fields that a role can read from a document. If I can, is this the right approach to work with CouchDB? For example, if I have a document like this: { firstname: 'firstname', lastname:…
Valerio Emanuele
  • 909
  • 13
  • 27
2
votes
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
  • 319
  • 3
  • 10
2
votes
1 answer

CouchDB index with $or and $and not working but just $and does

For some reason, I have the following .find() commands and I am getting conflicting indexing errors. Below are examples of one working when I only try to get one type of document. But then if I try to get 2 types of documents it doesn't work for…
bryan
  • 8,879
  • 18
  • 83
  • 166
2
votes
1 answer

CouchDB Field Query in Array

Suppose I want to query all the place_name which are in United State. What should be my query or fields? Here i have pasted my query down which gives me only first index but I want to get all the data. What should be my query then. { …
2
votes
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…
Rafael P. Miranda
  • 737
  • 10
  • 25
2
votes
1 answer

CouchDB 2.1 /_db_updates respond with "Database does not exist."

It is a really strange behaviour, but there is no such endpoint as /_db_updates, however the documentation proves its existence. CouchDB was installed by this guide. Every major feature works (like the fauxton dashboard, db queries) but not the…
csakbalint
  • 698
  • 7
  • 16
2
votes
1 answer

What is the maximum length of a CouchDB database name?

The reference I've found only says about allowed characters in a database name: Name must begin with a lowercase letter (a-z) Lowercase characters (a-z) Digits (0-9) Any of the characters _, $, (, ), +, -, and /. but it doesn't say anything…
Tsagana Nokhaeva
  • 630
  • 1
  • 6
  • 25
1
2
3
8 9