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…
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){
…
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"…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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)…