couchdb

Select documents that don't have some keys in CouchDB

Hi Having an article document with an embedded array of tags, how to select articles that don't contain some specific tags? Thanks ...

Does CouchDB really split views across servers?

I'm currently delving into CouchDB, and I am puzzled by the distribution of Map-Reduce computations in views. I see a lot of resources mentioning that Map-Reduce is inherently distributed, because you can process one half of your data on server A, the other half on server B, and then reduce both results. One example would be slide 16 of ...

Using Views in couchDB

Can you "pass" a "parameter" to a view's map function from the query part of a URL? If so, could you show me an example? By, parameter I mean anyway you can access parts of the query string within the map or reduce function. Thanks in advance. ...

CouchDB replicate without deleting documents

Hi: I want to use a mobile CouchDB and a remote CouchDB. To transfer from mobile to remote DB I want to replicate the data. But for storage reasons I want to regularly delete old data from the mobile CouchDB and keep it on the remote CouchDB. As what I have seen local deletion will also be replicated. Is there any knowledge about how to ...

How should i configure my couchone instance?

Hi all, I am having a wee bit of trouble configuring my couchone instance. I have setup a admin user. But I am still unable to modify any configuration options http://[your-app-name-here].couchone.com/_utils/config.html Throws this error: An error occurred retrieving/updating the server configuration: This config variable...

Storing millions of log files - Approx 25 TB a year

Hi Folks, As part of my work we get approx 25TB worth log files annually, currently it been saved over an NFS based filesystem. Some are archived as in zipped/tar.gz while others reside in pure text format. I am looking for alternatives of using an NFS based system. I looked at MongoDB, CouchDB. The fact that they are document oriented...

Does this CouchDB error look familiar?

My build server is giving me an error that doesn't show up on my local instance. It boils down to the following. I can submit a form to the couchdb server using the following command and it will get passed to an update handler. curl -X POST http://localhost:5984/master_build/_design/couchforms/_update/xform -d @meta.xml When I try th...

CouchDB view is extremely slow

Hi All, I have a CouchDB (v0.10.0) database that is 8.2 GB in size and contains 3890000 documents. Now, I have the following as the Map of the view function(doc) {emit([doc.Status], doc); And it takes forever to load (4 hours and still no result). Here's some extra information that might help describing the situation: The view is...

"Previous" link - equivalent of LIMIT x OFFSET y ?

I'm creating a page system using CouchDB, showing: 10 items per page a link to the previous page (if any) a link to the next page (if any) From this article on the topic, I understand that using skip is suboptimal, and that I should instead use the startkey property to specify the first document, read 11 documents from there, displa...

CouchDB - Has anyone implemented a path/graph finding algorithm? Is it possible?

Has anyone implemented a path finding algorithm (A*, Dijkstra's algoritm, Breath First Search, etc.) using CouchDB's maps & views? Is it even possible? I've seen some implementations for other mapreduce software (e.g. http://horicky.blogspot.com/2010/02/nosql-graphdb.html), however they rely on an global state, which CouchDB lacks (right...

Document vs key-value databases?

Possible Duplicate: Difference between Document-based and Key/Value-based databases? What are the pros and cons of document (mongodb/couchdb) and key-value (riak/redis) databases? Aren't document databases more powerful than simple key-value databases? Why would I use for example riak over couchdb that seems more powerful? ...

Spring framework + NoSQL

Hey folks, It's already 18 hours that i'm playing with Spring framework. It's beautiful, really amazing. As far as i can see spring knows how to work rdbms databases . Can anyone tell me about experience of spring + NoSQL ( cassandra , couchdb\mongodb, redis or even HBase ) ? thanks ...

PHP Framework with CouchDB support

Hello, I'm looking for a PHP framework that supports CouchDB pretty well natively, I understand from here that Ruby-on-rails or Django would work best, but I am looking for a PHP solution, as I'd like to not have to learn a new language just yet. features needed outside of CouchDB are minimal: MVC architecture Templating engine for th...

Isn't HTTP verb PUT used for updating and not creating content?

In CouchDB, to create a new document you send: PUT /albums/70b50bfa0a4b3aed1f8aff9e92dc16a0 Isn't PUT used to update data and not creating it? ...

Is this method of sending couchdb attachments in Django efficient enough for general usage?

Currently I'm using the below code to allow a user to download a file that's attached to a couchdb document. I'm using couchdbkit with Django. def get_file(request, user_id): user = User.objects.get(pk = user_id) application = user.get_profile().application() attachment_name = request.GET.get('name', None) assert attachm...

How to speed up python views in CouchDB?

Hi, I'm working on my CouchDB with Python, cause I love python. The problem is: On my machine (it's a Seagate Dockstar) it's quite slow. How can I increase the speed? a) I've tried to use psyco. It's not available for that plattform. b) I've tried to put the imports outside my function-definitons. This doesn't work since the couchpy th...

How to TDD for CouchDB with CouchApp?

Recently I've discovered CouchDB. I want to use CouchApp to build a flash games site. It looks like a perfect fit 'cause this kind of a site is totally document based with a bit of binary attachments. The only thing I need to learn before I start is how to TDD with CouchApp/CouchDB. I couldn't google any workflow tutorial and I'm not ex...

How to combine show and list functions in CouchDB?

I am trying to study CouchDB. Is there a way to use list functions in a show function, or vice versa? For example, can I call some list function to render a document in its show function? Or call show(id) to render a list if ids in a list function? ...

Differences between CouchDB and Google storage for storing files?

I want to let my customers upload files in my web app. What are the differences between CouchDB and Google storage for storing files? ...

CouchDB array passing

I'm trying to passing an arguments (array) for update, but seems CouchDB unable to parse them correctly. curl -X PUT http://localhost:5984/mydb/_design/timeline/_update/hello/container-1?tags\\[\\]=1\&tags\\[\\]=2 in CouchDB: "updates": { "hello": "function(doc,request){if(!doc){doc={_id:request.id};}for(i in request.que...