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…
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…
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).…
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…
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…
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…
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…
I'm looking for index a nested array field, I have the following document:
{
"id": "invoice1",
"sellers": [{
"names": "Clark",
"items": [{
"iditem": "item1",
"properties": [{
"width":…
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:…
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…
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…
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.
{
…
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…
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…
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…