couchdb

Non-Relational Database Design

I'm interested in hearing about design strategies you have used with non-relational "nosql" databases - that is, the (mostly new) class of data stores that don't use traditional relational design or SQL (such as Hypertable, CouchDB, SimpleDB, Google App Engine datastore, Voldemort, Cassandra, SQL Data Services, etc.). They're also often ...

Which CouchDB adapter for Ruby should I use?

Some of the options I've found are ActiveCouch CouchREST Couch Potato RelaxDB couch_foo I prefer projects that are on GitHub, since that makes it easiest for me to fork and push fixes. All of those fit that requirement. I'm used to Rails, so I like things that act like ActiveRecord models. On the other hand, I also don't want too ...

How do I DRY up my CouchDB views?

What can I do to share code among views in CouchDB? Example 1 -- utility methods Jesse Hallett has some good utility methods, including function dot(attr) { return function(obj) { return obj[attr]; } } Array.prototype.map = function(func) { var i, r = [], for (i = 0; i < this.length; i += 1) { r[i] = func(this[i]); ...

Which schemaless datastores provide good performance?

I've recently written a web app that uses couchdb. I like couchdb and it suited the app - which has a lot of dynamic behaviour and simply pulls JSON directly from couchdb. Being able to upload images via a browser is nice and it's a snap to do tweaks to document data. The replication also has made deployment a breeze as the app is a couc...

How do I perform a parameterized query on CouchDB

I would like to use CouchDB to store some data for me and then use RESTful api calls to get the data that I need. My database is called "test" and my documents all have a similar structure and look something like this (where hello_world is the document ID): "hello_world" : {"id":123, "tags":["hello", "world"], "text":"Hello World"} "fo...

need Couchdb dojo api example

Would someone recommend me a good example for accessing couchdb from dojo using the Couchdbreststore api Thanks ...

CouchDB - Queries with params

Hi Guys, I'm new to CouchDB and I know my mindset is probably still too much in the relational DB sphere, but here goes: It appears that querying on Couch is all done via Views. I read that temporary views are very inefficient and should be avoided in production. So my question really is how would one do effective querying with para...

Map / Reduce - How to get the number of occurances of a given tag?

I have a posts document with a tags property, which is stored as a simple array. I'm trying to write a view that returns all the tags, with the # of times they occur, sorted by most occurrences. The following returns the list, but it isn't sorted. Basically I need to put the reduce results into the key somehow? Please correct me if I'm...

How different is Amazon Simple DB from Apache CouchDB?

Other than the monetary aspects, how different is Amazon's SimpleDB from Apache's CouchDB in the following terms Interfacing with programming languages like Java, C++ etc Performance and Scalability Installation and maintenance ...

Performance Benchmark CouchDB x Relational Databases

Does anyone knows a link for a good performance benchmark of CouchDB x "Any relational Database" ...

Apache as Reverse Proxy for CouchDB

I'm thinking of a web app that uses CouchDB extensively, to the point where there would be great gains from serving with the native erlang HTTP API as much as possible. Can you configure Apache as a reverse proxy to allow outside GETs to be proxied directly to CouchDB, whereas PUT/POST are sent to the application internal logic (for san...

CouchDB on Windows?

I started exploring CouchDB and I am interested in following: Is there or will there be a Windows install? If there is, is there a shared hosting provider that offers CouchDB? Not knowing much about it, can it be somehow embedded in my application or bin deployed (don't laugh). ...

When to use CouchDB vs RDBMS

I am looking at CouchDB, which has a number of appealing features over relational databases including: intuitive REST/HTTP interface easy replication data stored as documents, rather than normalised tables I appreciate that this is not a mature product so should be adopted with caution, but am wondering whether it is actually a viabl...

Model based deletion of CouchDB data in Rails

I want to set up a rake task to fill my CouchDB with fixtures data and have to get rid of the data in the database first. A good example for the whole procedure using MySQL can be found here. This examples contains the following part to delete the data of the model in the MySQL database: # the list of models (pluralized) you want to imp...

CouchDB versioning strategy

Would the following be a viable strategy for implementing versioning(using "example" as a sample document type): Have one original document where the type field is named example_original. Subsequent changes to the document all have type example_change and the id of example_original document as a key. The change would also carry a times...

Managing ajax Couchdb calls and IE's (hta) agressive cache.

Hello all, I'm having a quite annoying problem, and came up with a quite ugly hack to make it work. I develop an Hta application using a CouchDB database (for internal company use). The problem is there seems to be some very aggressive caching of the database queries, and it's been hard to come up with solutions. So the updated data i...

How to synchronize access to ehcache, memcached & other key-value stores ?

From my understanding, each of these methods: get() and put() are atomic. But, when accessing caches like ehcache & memcached, in a CheckThenAct fashion, race conditions will arise. What should we synchronize on to ensure that if thread1 does a Get() and thread2 does a Get() followed by a Put(), that the first Get() will receive the ne...

Creating a couchdb standalone attachment using cURL.

I am currently playing with couchdb and testing out the 'standalone attachments' feature, which is described near the bottom of this page. I am trying to use curl's --data-urlencode feature to send the creation request, which only half works. I can create the attachment and retrieve it, but the Content-Type field is wrong, so the im...

Unit testing Couchdb model in Pylons

Given a default pylons installation are there any examples available on the best practices for unit testing a CouchDB model? ...

multiple key ranges as parameters to a couchdb view

is there a way to send multiple startKey/endKey pairs to a view, akin to the keys: [] array that can be posted for keys? the underlying problem - let's say my documents have "categories" and timestamps. if i want all documents in the "foo" category that have a timestamp that's within the last two hours, it's simple: function (doc) { ...