couchdb

Can' get couchdb external http handlers to work.

following the instructions here http://wiki.apache.org/couchdb/ExternalProcesses this is what I get { * error: "{{badarg,[{erlang,port_command, [#Port<0.2056>, [123, [34,<<"info">>,34], 58, [123, [34,"db_name",34], 58, [34,<<"transfer_central">>,34], 44, [34,"doc_count",34], 58,"39441",44, [34,"doc_del_count",34], 58,"0",44, [34,"...

Why Document DB ( like mongodb and couchdb ) are better for large amount of data ?

I am very newbie to this world of document db. So... why this db are better than RDBMS ( like mysql or postgresql ) for very large amount of data ? ...

Deleting document attachments in CouchDb

In CouchDb's documentation, the described method of deleting document attachments is to send a DELETE call to the attachment's url. However, I have noticed that if you edit the document and remove the attachment stub from the _attachment field, it will not be accessible anymore. If i remove foo.txt from the document below and save to C...

How-to index arrays (tags) in CouchDB using couchdb-lucene

The setup: I have a project that is using CouchDB. The documents will have a field called "tags". This "tags" field is an array of strings (e.g., "tags":["tag1","tag2","etc"]). I am using couchdb-lucene as my search provider. The question: What function can be used to get couchdb-lucene to index the elements of "tags"? If you have...

couchdb: one database per account vs all in one database w. a namespace / property

I'm modelling a document generation system in couchdb. It semi-automates the production of proposal and presentation documents from managable document fragments. Much like, say, Basecamp, it breaks down very simply into self-contained data per 'account'. Each account has multiple users, projects, documents, etc. However, nothing shou...

Need Explanation of couchdb reduce function

From http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views The couchdb reduce function is defined as function (key, values, rereduce) { return sum(values); } key will be an array whose elements are arrays of the form [key,id] values will be an array of the values emitted for the respective elements in keys i.e. reduce([...

Distribute CouchDB as part of a Rails app?

I am working on a Rails project and the Architect has asked me to investigate bundling CouchDB into to application so that it can be deployed by Capistrano across multiple platforms and managed by Rake. My expectation was that I could set up the Erlang VM on the various environments and then distribute the CouchDB application with Cap...

couchdb read authentication

how can i handle read authentication in couchdb? i know roles can be defined in seperate databases but i want to implement read authentication on document level. i am thinking about using node.js but it does not seem an elegant solution because couchdb also has a http server and i dont want to add one more (or another application server ...

CouchDB read authorization

In couchdb website -> technical overview -> security and validation - http://couchdb.apache.org/docs/overview.html - it writes that (on reader access part) "To protect document contents, CouchDB documents can have a reader list. This is an optional list of reader-names allowed to read the document. When a reader list is used, protect...

Select users in couchdb

...

CouchDB: accessing nested structutes in map function

I have a document based on a xml structure that I have stored in a CouchDB database. Some of the keys contains namespaces and are on the form "namespace:key": {"mykey": {"nested:key": "nested value"}} In the map function, I want to emit the nested value as a key, but the colon inside the name makes it hard... emit(doc.mykey.nested...

Running cUrl cmd from Win7 doesn't work, but on Linux it does.

Like the title says. I'm sending a simple cUrl cmd from Win7 to CouchDB on my Linux box, and it doesn't work. But if I run the same command in Linux, it works. I'm sending this: curl -X POST 192.168.2.5:5984/test/testdoc -d '{"owner":{"fname":"test","lname":"ing"}}' From windows, it keeps giving me a "error: bad request, reason:invali...

How to name application specific fields in couchdb

I tried adding my own fields with names like _myappvar and _myotherappvar to documents to distinguish them from data fields. At first it worked but at some point futon starts to complain. What is the right way to go? I am using couchdb 0.9.0, this may be old, butI will not be able to upgrade in this iteration. Edit: I guess _* is rese...

Order by Rand - How can I do in CouchDB?

I need a random query, but I don't know what's the best way to do this in the view. ...

CouchDB: how to configure database folder on windows

Databases are stored in the relative folder ../var/lib/couchdb/ by default: [couchdb] database_dir = ../var/lib/couchdb view_index_dir = ../var/lib/couchdb I can't find a way of moving this to an absolute path. What should I type to store databases on a different disk? Edit: Can it be a rights problem? I first changed it to c:/temp ...

RDMS with memcached or NOSQL database like MongoDB/CouchDB?

Data in question would be mainly text with a one to many relationship (for example HTML pages) . I know that one can do "cache for x number of days" in memcached however how easy would that be to implement in NO SQL ? Thank you again and I apologize in advance if I am not making sense ...

Memcachedb Versus MongoDB Versus CouchDB in terms of file based caching solution?

We need a caching solution that essentially caches data (text files) anywhere from 3 days up to a week based on user preferences and criteria. In this case memory based caching does not make sense to us. We were referred to MemcacheDB however I also thought of some NO SQL solutions. Our current application uses RDMS (MYSQL) and I guess...

Get all design documents in CouchDB

How can I get a list of all design documents in CouchDB? Using a http query, not futon. ...

Sorting CouchDB Views By Value

Hi all, I'm testing out CouchDB to see how it could handle logging some search results. What I'd like to do is produce a view where I can produce the top queries from the results. At the moment I have something like this: Example document portion { "query": "+dangerous +dogs", "hits": "123" } Map function (Not exactly what I n...

CouchDB 0.11 on Ubuntu 10.04

Dears, i have successfully installed CouchDB 0.11 on Ubuntu 10.04 based on the Installation instruction in couchdb wiki for ubuntu 10.04. with appending " --bindir=/usr/bin --sbindir=/usr/sbin --localstatedir=/var --sysconfdir=/etc" in ./configure and CouchDB Running successfully and got " {"couchdb":"Welcome","version":"0.11.0"}" B...