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...

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...

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,...

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...

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,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...

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...

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,...

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
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,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....

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...

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...

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...

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...

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?

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}...

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...

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...

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...

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...

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...

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',...

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....

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,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:...

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...

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...

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...

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:...

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
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",...

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...

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...

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?...

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...

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" : {...

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...

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...

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...

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 ==...

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...

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:...

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...

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...

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,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...

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...

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...

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...

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?...

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...

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...

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:...

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...

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...

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...

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?...

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
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...

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...

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...

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...

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...