FAQ Database Discussion Community


Does CouchDB limit the number of views per design doc?

couchdb,scale
I'd like to build an application that creates a new _view for each user of the application. I'm wondering about scale. A a million users (should we be so fortunate) does one long list of views within a design doc still function with some performance? Update: What I'm trying to...

PouchDB structure

nosql,couchdb,pouchdb
i am new with nosql concept, so when i start to learn PouchDB, i found this conversion chart. My confusion is, how PouchDB handle if lets say i have multiple table, does it mean that i need to create multiple databases? Because from my understanding in pouchdb a database can...

CouchDb: query with join between documents

javascript,couchdb,pouchdb
I would like to create a view in CouchDb which contains some fields from multiple linked documents. My documents are something like this: /*Products:*/ { "_id": "Products:ABC", "doctype": "Products", "productCode": "ABC", "description": "The best product you ever seen", "category_id": "Categories:1", "brand_id": "Brands:52" }, { "_id": "Products:DEF", "doctype": "Products", "productCode": "DEF",...

Deserializing JSON into c# class

c#,json,couchdb
I have a JSON in the following format (from couchDB view) {"rows":[ {"key":["2015-04-01","524","http://www.sampleurl.com/"],"value":1}, {"key":["2015-04-01","524","http://www.sampleurl2.com/"],"value":2}, {"key":["2015-04-01","524","http://www.sampleurl3.com"],"value":1} ]} I need to create a "service" to get this data from couchDB and insert it on SQL Server (for generating reports..) in a efficient way. My first bet was to bulk insert this json...

Best DB for datalogging [closed]

database,mongodb,redis,couchdb
I have a lot of logged data stored into a database by a data logger. Basically i have a lot of rows with a timestamp and some values. I want to store this data into a db that has performance and can scale on a multi node structure to support...

replicate pouchDB document with couchDB

javascript,couchdb,pouchdb
I have used pouchDB in one application and now I want to introduce couchDB to sync the document to remote server. Hence i followed this link http://pouchdb.com/getting-started.html i used the below code to replicate the data to couchDB var db2 = new PouchDB('todos'); var remoteCouch = 'http://localhost:5984/_utils/database.html?couchdb_sample'; db2.changes({ since: 'now',...

What is good way to store big JSON objects in couchDb?

javascript,web-applications,couchdb,offline,pouchdb
I work on a web app which store projects data. Data are saved in a couchDb database A. The app pull and push data with a local pouchDb database B, which is sync with A. So the app can also work offline. When user has connection back, changes made on...

SImple reduce function is not working, what is wrong with my reduce function code in couchDB?

couchdb,couchdb-futon
i am new to couchDB. I started with simple map/reduce. i dont know why i am not able to receive proper values for the piece of code i attached. thanks in advance !!! My mapping code as follows: function(doc){ if(doc.release.formats.format.descriptions.description == 'Album'){ doc.release.artists.artist.forEach(function(i){emit(i.name,doc.release.title)}) } } My resultant map values key:...

Delete all conflicts in pouchDB

couchdb,indexeddb,pouchdb
my problem is to sync between pouch and couchDB. I will manage to get my documents from couchDb and check in the pouch if there is already an existing document. So, if we have a conflict I want so solve the conflict on the client-side. But I don't know how...

adding field into Document with curl CouchDB

couchdb,field,add,couchdb-futon
I want to update or insert a filed in my document in CouchDB without a new rev number. Is that possible with curl ? For example like Futon. If i open a document with futon and add a new field or update a filed its done without a new revision...

Query CouchDB with multiple keys for multiple properties

rest,key,views,couchdb
I'm using couch db to store subscription documents. While performing queries, I want to be able to query on multiple properties and also use an "IN" clause. For example, I have a subscriptionStatus property which can have multiple values (Active, Failed, In_Progress etc.) and subscriptions also have a customerID. How...

Is there a PouchDB / CouchDB equivalent for MySQL's percentage sign

couchdb,pouchdb
Is there a equivalent sign for the MySQL's percentage sign Character | Description ----------+------------------------------------------------------- % | Matches any number of characters, even zero characters I want to do something similar like %john% which should get any ID similar to. john_doe doe_john john_smith smith_john etc. Startkey & Endkey is not delivering...

How can I use my sql knowledge with Cloudant/CouchDB?

sql,couchdb,cloudant,cookbook,recipe
Some developers who have a good knowledge of querying SQL databases struggle to implement the equivalent query patterns in Cloudant/CouchDB. How can these developers translate their SQL knowledge to Cloudant/CouchDB?...

Embed JSON in Javascript query in couchdb

javascript,json,couchdb
I have a CouchDB database with around a million rows. I want query for particular rows in the database using the keys present in an external json. Here is what I am doing right now to accomplish this task: for i in test_json: view = ViewDefinition('state', state_name.lower(),"""{function (doc){ if(doc._id ==...

Unable to add multiple docs to Couchdb because of identical _ids

python,couchdb
I use couchdb module to deal with CouchDb in Python. One strange thing happens when I try to insert many different docs. When I print this docs before they are inserted to the database I see a lot of identical automatically generated _id fields. My own dictionaries even do not...

Serilog's CouchDB sink doesn't seem to be using LogContext

c#,logging,couchdb,serilog
I'm not sure how to use Serilog's LogContext with the CouchDB sink. A simple example to show my current usage: using (LogContext.PushProperty("Track", "hi")) { this.Log.Information("test"); } And what I see in CouchDB Futon: My understanding is that LogContext will add a "Track" field with the value of "hi" to all...

CouchDB Compression

mysql,nosql,compression,couchdb
I have a MySQL database that I wanted to store on an external 4TB drive, but when I copied the database over to it, the server failed to restart. I found out it had something to do with a sector size issue. This gave me reason to make the jump...

CouchDB sum by date range and type

mapreduce,couchdb
Simply put I want to _sum totals over a date range grouped by type. The original docs in the db are each for a single date, containing data by type. (For example, each doc has total apples, oranges, and pears picked on a date. We want to query for total...

Using node-couchdb to query a database

javascript,node.js,couchdb
I'm new to couchdb and a bit confused. I have a database of movies, and I'd like to query all (or in groups of 50) of the movies with field year equal to 2015 for example. How could I do this?

Can you ship a PouchDB DB inside app already sync'd?

cordova,couchdb,pouchdb
I will be creating a hybrid app (i.e. phonegap/cordova or similar) that will use PouchDB to sync a read-only database from a hosted CouchDB instance. Easiest way to do this is the app ships "empty" and upon first run it needs to pull down all docs from the server before...

Limit of key emission per document in a CouchDB/PouchDB view

couchdb,pouchdb
I have a database structure like: {_id: 'record/1', name: 'Record 1', labels: ['label/1', 'label/2', 'label/3'], created: '2015-03-01T00:00:00.000Z'}, {_id: 'record/2', name: 'Record 2', labels: ['label/1', 'label/5', 'label/7', 'label/3'], created: '2015-03-06T00:00:00.000Z'}, {_id: 'record/3', name: 'Record 3', labels: ['label/2', 'label/3', 'label/4', 'label/5'], created: '2015-03-10T00:00:00.000Z'} I have a map function that emits multiple keys...

CouchDB-Why my rerduce is always coming as false ? I am not able to reduce anything properly

mapreduce,couchdb,couchdb-futon
I am new to CouchDB. I have a 9 gb dataset loaded into my couchdb. I am able to map everything correctly. But I cannot reduce any of the results using the code written in the reduce column. When i tried log, log shows that rereduce values as false. Do...

NoSQL. How much data lost on server crash?

mongodb,redis,couchdb,rethinkdb,foundationdb
If my server was powered off, assuming all writes to disk succeeded, how many "confirmed" writes would I lose? Redis: the lesser of 10k writes or 15 mins. See config MongoDB: < 100ms (~30ms in practice) with default journaling enabled RethinkDB: 0, see How does RethinkDB handle write durability? CouchDB:...

Retrieve data without _id and _ref from coucgdb

json,angularjs,couchdb,angular-ui-grid
I have a database with lots of document and i am using field type to define it as a table. I want to populate angularjs ui-grid with the JSON data coming in value. So i have created a view: function(doc) { if(doc.type === 'userTable'){ emit(doc._id, {userName:doc.userName,fName:doc.fName}); } } When i...

What are couchdb user._id and role field limits?

couchdb
In CouchDB _users, I'm making user id's and roles with emails in them. Are you aware of any special CouchDB problems this causes? I can't find any docs on valid values for these fields. They appear to be docs, so it seems ok. { "_id": "org.couchdb.user:[email protected]", "_rev": "1-0bb5ba9dd3e989a28bc8282efaf32aa2", "password_scheme": "pbkdf2",...

changes: filter only changes from OTHER DB-instances

couchdb,pouchdb
My app has a local pouchdb that syncs with a central couchdb. The app updates model and ui when it receives changes from the changes feed. This should happen only for changes that didn't happen locally: When changes happen locally (by the user, in the ui), the app updates the...

Efficient way to read+write data from CouchDB

couchdb
I am implementing an application that includes a user who logs in to access a document stored in a hosted CouchDB store. The user provides their credentials to the app, and once the app authenticates them, the app then has two jobs: Get the Document ID associated with that user's...

incessantly getting null values for reduce function

curl,couchdb
My data is as follows: { "_id": "33d4d945613344f13a3ee929337b1ca8", "_rev": "1-427c691a5c5f504c6b1d885b6b9ff4bc", "release": { "genres": { "genre": "Electronic" }, "identifiers": { "identifier": [ { "description": "Text", "value": "5 021603 054028", "type": "Barcode" }, { "description": "String", "value": 5021603054028, "type": "Barcode" }, { "value": "MAYKING WAP54CD", "type": "Matrix / Runout" } ] },...

Compile a directory tree of separate apps (one entry point each), using CommonJS modules and ES6 modules

build,couchdb,ecmascript-6,commonjs
I am writing a Couch app. The output of the build process must be a directory tree of self contained JS files, like so: dist ├── _attachments │ ├── logo.jpg │ └── splash.jpg ├── lists │ └── sitemap.js ├── shows │   ├── article.js │ ├── home.js │ └── dashboard.js ├──...

How to get Couchdb/Cloundant design document ready for search all fields?

couchdb,pouchdb,cloudant
I have a very simple database contains some data modals stored in Cloudant. { "_id": "units_modal_the_oaks_preliminary", "_rev": "1-b541013bc008680b706ea01969dedb7a", "type": "units_modal", "label": "Preliminary Modal", "notes": "Notes here...", "project": "the_oaks", "data": [...] } I connect Cloudant with PouchDB. My goal is simply make this database ready for query by all the fields...

Get only a part of the stored document from pouchdb (not fetching the full document, just like how we read only the required columns of a table)

couchdb,pouchdb
My scenario: I am storing around 4000 documents into my pouchdb database. Each document has two parts: a) the summary part and b) the data part (which is quite large in size around 200kb per document) In my application I have a summary page where i just display the summary...

Couchdb filter using reduce functions/linked documents

couchdb,xamarin.forms,couchdb-futon
Considering: doc profile { _id:"1", name:"john", likes: ["2222","1111"] } doc likes { _id:"2222", value:"true" } { _id:"1111", value:"false" } I have a filter on my xamarin app to get the profile, and it works well but I need to include the "children" (linked) docs... I can do this with a...

PouchDB: database replication when the application is launched offline

couchdb,database-replication,pouchdb
I use PouchDB to store data offline and synchronize with a remote CouchDB database when the application goes online. It works well if the app is launched online: PouchDB triggers the pause event when the connexion is interrupted and continues when the connexion comes back. Here is a sample code:...

Tables in CouchDB, How to organize tables in couchDB?

couchdb,couchapp,couchdb-futon
I have three tables(x,y,z) in one database "123" like RDBMS. I want to convert them into couchDB. I have created the.json for each and every tables. When i created the database,i could not create seperate tables. I had to create seperate db for each table or combine under one db....

Couchdb disk size 10x aggregrate document size

compression,couchdb
I have a couchdb with ~16,000 similar documents of about 500 bytes each. The stats for the db report (commas added): "disk_size":73,134,193,"data_size":7,369,551 Why is the disk size 10x the data_size? I would expect, if anything, for the disk size to be smaller as I am using the default (snappy) compression...

How do I sync Couchbase-Lite Android with CouchDB?

android,couchdb,couchbase-lite
The problem: During a push I get a "Bad Request" error and some sort of authentication error even though it gets a positive response. I have almost no experience with CouchDB or Couchbase, but from what I understand you'd usually sync Couchbase-Lite with Couchbase Sync Gateway, but since the latter...

CORS error in PouchDB with CORS enabled in CouchDB

couchdb,pouchdb
I have CORS enabled in CouchDB: I run the app on Windows 8.1, serving it with hapi.js. When viewing it in Chrome after a while this error message appears in the console: Uncaught (in promise) CustomPouchError {status: 500, name: "unknown_error", message: "Database encountered an unknown error", error: true, toString: function}...

Uploading multiple documents to couchdb giving error

curl,couchdb
I have to upload bulk document into couchdb but this is not working and giving error. This is what i try to do with curl curl -d '{"docs":[{"key":"baz","name":"bazzel"},{"key":"bar","name":"barry"}]}' -X POST http://127.0.0.1:5984/testdb/_bulk_docs This is the error which comes for this {"error":"bad_content_type","reason":"Content-Type must be application/json"} This curl command is simple copy+paste from...

Sync views between pouchdb and couchdb

node.js,couchdb,pouchdb,cloudant
I've been able to sync data from my cloudant instance to my nodejs based pouchdb, however I need to setup a secondary search index and therefore I created a view on the couchdb instance however I am unable to see it in my synced pouchdb instance. I see it in...

Architecture of an app when using CouchDB/PouchDB

cordova,couchdb,ionic-framework,sails.js,pouchdb
I am wondering how the architecture should look like when using PouchDB as a local storage in a mobile app instead of localStorage. At this moment I am used to cache my app's data into localStorage and when needed I perform an API call to the backend to request or...

Build stats function on date

couchdb,cloudant
I have Cloudant db, which is actually couchdb. I have a date field in my documents and I need to get statistic similar to what _stats provide on numeric fields (e.g. min, max, avg, count). Is there a way to do this in cloudant? I've in map function convert to...

How to retrieve all the documents in couchdb by given key?

couchdb
Our couch DB url is http://10.1.5.88:5984/_utils/database.html?testdata/ I want to retrieve all the documents for a given key. I'm not sure whether we can search by passing the key, as a query parameter, in the above url. Please tell me know how to display the query results via the browser. For...

Server side caching of dynamic content with Nginx and Etags

caching,nginx,couchdb,server-side
I have a CouchDB DB, with an Nginx reverse proxy in front of it. Some responses from CouchDB take a long time to generate (yes, it was a bad choice, but need to stick with it for now), and I would like to cache them with Nginx. (Currently Nginx only...

How to query PouchDB with SQL-like operators

couchdb,pouchdb
Being relatively new to PouchDB/CouchDB, I'm still trying to wrap my head around how to use the map/reduce correctly in different cases. Supposed that I have document structure like this: { _id: 'record/1', labels: { // many-to-many relationship 'label/1': true, // let's assume that this is 'Label A' 'label/3': true,...

How to query two types of records in CouchDB

asynchronous,nosql,couchdb,pouchdb
I’m having issues getting two dependant types of data from a PouchDB database. I have a list of cars that I get like so: localDB.query(function(doc) { if (doc.type === ‘list’) { emit(doc); } }, {include_docs : true}).then(function(response) { console.log(“cars”, response); // Save Cars List to app for(var i = 0;...

How can I securely connect to Cloudant using PouchDB?

android,ios,couchdb,pouchdb,cloudant
I am creating a mobile app for Android and iOS using Cordova/PhoneGap and am using IBM's Cloudant database for storage. I am using the PouchDB javascript library to access the Cloudant database. Currently I have this code to access it... db = new PouchDB('https://[myaccount].cloudant.com/[mydb]', { auth: { username: 'myusername', password:...

CouchDB reverse proxy

php,proxy,couchdb,acra,acralyzer
i installed couchdb on my root server. Now i'm trying to allow only PUT requests to my database via a proxy. But i can't get it working. What i tried: (.htaccess) SetEnvIf Request_URI acraproxy acraproxy RequestHeader set Authorization "Basic base64credentials" env=acraproxy RewriteEngine On RewriteRule ^acraproxy/(.*)$ http://localhost:5984/mydatabase/_design/acra-storage/_update/report/$1 [P] I always get...

CouchDB - Separate database for each user?

javascript,database,couchdb,couchdb-futon
I have a bit of conceptual question regarding the structure of users and their documents. Is it a good practice to give each user within couchDB their own database which hold their document? I have read that couchDB can handle thousands of Databases and that It is not that uncommon...

PouchDB get documents by ID with certain string in them

couchdb,pouchdb
I would like to get all documents that contain a certain string in them, I can't seem to find a solution for it.. for example I have the following doc ids vw_10 vw_11 bmw_12 vw_13 bmw_14 volvo_15 vw_16 how can I get allDocs with the string vw_ "in" it?...

Request for feedback: Couchdb setup with client replication (pouchdb) for multiple users/accounts

node.js,security,authentication,couchdb,pouchdb
Before jumping into development, I'd like to get feedback on a change I'm thinking of making, moving from mongo to couch. Basically I've got a webapp which is used to help organize users activities (todolist, calendar, notes, journal). It currently uses mongodb, but i'm thinking to move it to couch,...

Map keys to emit function

javascript,object,mapreduce,nosql,couchdb
i've got an object in couchDB and in this looks like are several arrays, im new to couchDB and i don't know how to access the keys of it. The document looks like this: { "_id": "113232", "_rev": "1-c967a81c0eccba6a7c92e3c4b352d4eb", "name": "Ezequiel Campion", "vorlesungen": [ { "Ethik": 1.7 }, { "Glaube...

How to limit results in map function

python,couchdb
In Python I'm using this function to filter data from CouchDB: people = "function(doc){if(doc.name==='Jacobian')emit(doc,null)}" But what if I want to get only one document corresponding to doc.name==='Jacobian'? How should function look like? PS. I've heard something about views and that it can be realized through them, but at this moment...

Couchdb: is it possible to query a view from within another view?

javascript,mapreduce,couchdb
I have a CouchDB database with the following type of documents, representing events that happen within a building: { person: 1 timestamp: 1 event: { type: enter room: b } } and { person: 2 timestamp: 5 event: { type: leave room: b } } The problem that I want...

CouchDB: In a checklist app, new file for every list item?

couchdb
I'm working on a checklist web app Now, every user can have lots of check lists, each with many items on them. Would it be a good idea to keep the items in a JS object in the individual checklist? This would have been my first approach, since there wouldn't...

CouchDB simple document design: need feedback

couchdb,pouchdb
I am in the process of designing document storage for CouchDB and would really appreciate some feedback. These documents are to represent "assets". These databases will also be synced locally to the browser via pouchdb. Requirements: Each user can have many assets Users can share assets with others by providing...

cloudant python https connection pooling?

python,couchdb,gunicorn,cloudant
I've been doing some testing of https connection pooling from cloudant python requests as part of gunicorn request handling: # -*- coding: utf-8 - from requests.adapters import HTTPAdapter import cloudant import logging import json # log when new connections are started by urllib3 logging.basicConfig() requests_log = logging.getLogger("requests.packages.urllib3") requests_log.setLevel(logging.DEBUG) requests_log.propagate =...

How to install CouchDB on Mac OS X? (Docs not helping)

osx,curl,couchdb
I tried installing CouchDB 1.6 via Homebrew per the instructions on the official CouchDB docs at docs.couchdb.org, but I am having no success. First, I tried the native application and that worked but apparently that version does not support CORS. It has been a frustrating experience, so any help will...

how to list data types from a document in couchdb

list,curl,types,couchdb,show
Is there any opprtunity to list all data types of a document in couchdb like string, object,integer ? I'm using only curl with a Windows machine....

Are CouchDB Views fast?

couchdb
If I want to get data out quickly from CouchDB is it significantly faster to grab a single doc from it's id, than to grab a view and then just use the appropriate doc in that view?

CouchDB: bulk_docs returning incorrect status code

couchdb,pouchdb,couchdb-futon
I'm working on syncing a PouchDB database (with Angular) with a CouchDB database. When the replication is in progress, the code is issuing a POST request to do a bulk update to http://127.0.0.1:5984/testdb/_bulk_docs. I have a validation rule on database to reject unauthorized writes, and it generates a forbidden error....

Angularjs with pouchdb and CRUD

angularjs,couchdb,pouchdb
I am new to couchdb and pouchdb and looking for good resources to use angularjs with pouchdb. I want to learn the CRUD operations to connect angularjs with pouchdb. I have not found any good resources to show how to do these operations. Can we make this a good resource...

couchDB - how to display more than key/value?

jquery,json,nosql,couchdb,cloudant
I'm utterly stuck in my RDBMS ways of thinking and having one heck of a time going through limited tutorials and guides to get my head around noSQL I created a database bookmarks in cloudant and created two documents like this: { "_id": "3d609bd2689639afc2520f17d8f4c883", "_rev": "2-7227c3e1350f2d4f67f62f830b3f331e", "title": "bing homepage", "url...

CouchDB cookie authentication does not work with jQuery

jquery,cookies,couchdb
I have a CouchDB server on the localhost (127.0.0.1) with CORS enabled and I am using the couch jQuery library to access it from a page served by an Apache server. I try to authenticate as follows: $.couch.urlPrefix = "http://127.0.0.1:5984"; $.couch.login({ name: "user1", password: "user1password", success: function(data) { $.couch.session({ success:...

PouchDB - start local, replicate later

couchdb,replication,pouchdb,cloudant
Does it create any major problems if we always create and populate a PouchDB database locally first, and then later sync/authenticate with a centralised CouchDB service like Cloudant? Consider this simplified scenario: You're building an accommodation booking service such as hotel search or airbnb You want people to be able...

indexing names in json using elasticsearch in couchdb

json,elasticsearch,couchdb,elasticsearch-river
I am trying to implement full-text query for my json documents. I want to search by title. My json is as follows: { "release":{ "genres":{ "genre":"Electronic" }, "identifiers":{ "identifier":[ { "description":"A-Side", "value":"MPO SK 032 A1 G PHRUPMASTERGENERAL T27 LONDON", "type":"Matrix / Runout" }, { "description":"B-Side", "value":"MPO SK 032 B1", "type":"Matrix...

Are there any known negatives to using Requests in Flask to interface to Cloudant on Buemix?

python,flask,couchdb,bluemix,cloudant
I am writing an app in Python Flask that makes use of the Python HTTP library Request to interface with Cloudant on Bluemix. It is an easy interface that allows me to directly access the Bluemix VCAP information for Cloudant and of course the Cloudant API. However it does not...

Installing CouchDB on IaaS?

cloud,couchdb,centos6,iaas,dbaas
After many many google searches I am still unclear on how to install a CouchDB instance on an Infrastructure as a Service cloud service. I have looked into DBaaS options such as Cloudant, but for initial testing I would like to host the database on an IaaS. Specifically, I am...

Do 'reduce' with results from Cloudant search?

lucene,couchdb,cloudant
In Cloudant is it possible to do something like a reduce on a set of results from a search index (as opposed to a view)? In my case, I'd like to find all documents that have a title value that includes 'foo', then for each of these sum the total...

How do I get rid of unused views on CouchDB using futon?

couchdb,couchdb-futon
Basically what the question says. I have a database where I've created a bunch of different views while trying to learn how the whole thing works. Now I have a few views I really need and a lot of views I don't need. However I have not been able to...

How to store raw JSON in Couchdb with java

java,json,couchdb
I am currently parsing a web service that give me Json Documents as response. I want to store those in CouchDb using java, but I cannot find a way. With the couchdb library for java (Ektorp, couchdb4j etc...) I can only store java documents in the database, which would mean...

How do i get JSON data from a couchDB database and parse it in Xcode?

json,xcode,couchdb
For Example, I have a document in my CouchDB database that holds two fields "password" and "username". This is the URL for my document:http://127.0.0.1:5984/_utils/document.html?sgram/fdcfc14940fbaa0d86674046ce005107 I want to retrieve the value of these fields from that specific document in CouchDB and parse it in Xcode. I tried using http-get but it...

How to get a “fieldcount” (like wordcount) on CouchDB/Cloudant?

javascript,mapreduce,couchdb,word-count,cloudant
Trying to get a count of fields, just like the classic word count example. I thought this would be trivial... but I got this useless result... {"rows":[ {"key":null,"value":212785214} ]} How can I get what I wanted... an inventory of all fields used in my documents, with a count of how...

PouchDB authentication: Create new CouchDB users

authentication,couchdb,pouchdb
I use the PouchDB-authentication plugin and I love it. However, I'm a little confused about the signup process and maybe I don't use it the right way. I use it to create new users in my CouchDB database but I don't understand why it is associated with a specific database?...

Storing User Activities In CouchDB

logging,couchdb
I am new to CouchDB and to these type of databases so I have a question: How should I store every user's activity? I thought about storing it as an attachment, storing it in a different db using user id from user db. These would work somehow but don't seem...

PouchDB: Multiple remote databases, single local database (fancy replication)

couchdb,pouchdb
I have a pouchdb app that manages users. Users have a local pouchDB instance that replicates with a single couchDB database. Pretty simple. This is where things get a bit complicated. I am introducing the concept of "groups" to my design. Groups will be different couchDB databases but locally, they...

Couchdb join two documents using key

javascript,mapreduce,couchdb
I have two documents one with tree structure and the other one relation to the first doc. Im trying to join these two doc`s by fk and pk. I couldnt get the actual results and it displays all null values. First doc { "name": "one", "root": { "level1" : {...