couchdb

Exception while starting application using CouchDB

Hi! I'm starting learning some about CouchDB by the Definiteve Guide. There is example - blog system Sofa. I'm downloading it, but when I try push it, I catch exception.2010-09-19 14:38:15 [CRITICAL] 'str' object has no attribute 'update' Traceback (most recent call last): File "C:\Program Files\python\27\lib\site-packages\couchapp\d...

Does paperclip work with SimplyStored?

Rails 3.0.0, paperclip 2.3.3, simplystored 0.3.6. I'm using simplystored so i can use couchdb, but i am thinking that simplystored doesn't work with paperclip. I've tried using paperclip as a gem [via bundler] as well as a plugin, and I get the same error regardless: undefined method `has_attached_file' for Video:Class. Any way to g...

What is Couch DB? What is the process of search & retrieval of data from Couch DB?

What is Couch DB? How is that different from conventional oracle DB? What is the process of search & retrieval of data from Couch DB? ...

couchdb design views, updating fields on doc creation

Is it possible to have couch update or change fields on the fly when you create/update a doc? For example in the design view.... validate_doc_update: function(newDoc, oldDoc, userCtx) { } Within that function I can throw errors like: if(!newDoc.user_email && !newDoc.user_name && !newDoc.user_password){ throw({forbidden : 'all fi...

How do I load a random document from CouchDB (efficiently and fairly)?

I would like to load a random document out of a set of documents stored in a CouchDB database. The method for picking and loading the document should conform to the following requirements: Efficiency: The lookup of the document should be efficient, most importantly the time to load the document must not grow linearly with the total num...

CouchDb bulk rename

For example I have posts with tag names, and I decided to rename one of the tags. Bulk Updating when I should know revision is not really suitable. Better if this could be as something integrated. ...

How do I perform an Ajax request to CouchDB (http://<usename>.couchone.com/)

Hello, Experts. I'm trying to create a simple AJAX (via jQuery) request to http://yourusername.couchone.com/ (alsmost the same as if I had installed couchdb on localhost) If I go to http://**yourusername**.couchone.com/ via Browser I'll get: {"couchdb":"Welcome","version":"1.0.1"} So, it looks like a serialized JSON. So I wrote a JS C...

do any source-control systems use a document database for storage?

One of those questions that's difficult to google. We were running into issues the other day with speed of our svn repository. The standard solution to this seems to be "more RAM! more CPU!" etc. Which got me to wondering, are there any source-control systems that use a document/nosql database (mongodb, couchdb etc) for database? It se...

Access Key Parameter in Views

Dears, i was like to create a dynamic view in couchdb, and i'd like to ask how to get access to parameter key in couch view. like follow : function(doc) { if ((doc['couchrest-type'] == 'User') && ((doc['email'] != null) || (doc['login'] != null ))) { if (doc['email'] == parameter[key]) { emit(doc['email'], doc...

Timeout in a Couchapp list when using mustache

I have a simple list view in which I (try to) use mutache to render the output of a list containing 5 results. function(head, req) { var row, mustache = require("vendor/couchapp/lib/mustache.js"), template = "<li>{{project}} {{version}} {{description}}</li>"; while(row = getRow()) { send(mustache.to_html(template,...

python-couchdb pager hitting recursion depth limit

I am creating a pager that returns documents from an Apache CouchDB map function from python-couchdb. This generator expression is working well, until it hits the max recursion depth. How can it be improved to move to iteration, rather than recursion? def page(db, view_name, limit, include_docs=True, **opts): """ `page` goes ret...

ASP.NET with NoSQL

Had gone through some NoSQL concepts and MongoDB & CouchDB articles. It seems they will give more scope to build scalable web applications. But need some clarity whether they will support the following features as SQL Server does? Whether it supports database mirroring? Is there any size limitation of NoSQL database? Is it better to ig...

MongoDB or CouchDB or something else?

I know this is another question on this topic but I am a complete beginner in the NoSQL world so I would love some advice. People at SO told me MySQL might be a bad idea for this dataset so I'm asking this. I have lots of data in the following format: TYPE 1 ID1: String String String ... ID2: String String String ... ID3: String String...

CouchDB select all where field contains value

Is it possible to select all documents where a field contains a value. i.e is the following sql possible? Select * FROM table WHERE field LIKE %substring% ...

CouchDB vs HBase

Are there any similarities between these two? ...

Ruby on Rails Dynamic Models

I'm working on an application where the end user defines what columns a database table should have based off column names in an Excel spreadsheet that gets uploaded or just by manually defining them before uploading the spreadsheet. Is this something that AR and MySQL could handle or am I better off using mongodb or couchdb? In the tr...

Whats the simplest way to export couchdb information to CSV

What would be the simplest way to export a couchdb database of documents (identical structure) to CSV? I'm guessing it would involve writing a view and manually parsing each document serially using something like PHP/C#/Python. But is there a simpler way or something already existing I can make use of? ...

HttpLib2 throws error when trying to do a request to couchdb

I'm building an application in Python2.6 that needs to get data from CouchDb. I'm using CouchDB-0.8-py2.6 to connect to the database. I'm using this code: import couchdb server = couchdb.Server(url='http://localhost:5984/', full_commit=True, session=None) db = server['databaseName'] doc = db['docId'] value = doc['value'] print(value) ...

Which best fits my needs: MongoDB, CouchDB, or MySQL. Criteria defined in question.

Our website needs a content management type system. For example, admins want to create promotion pages on the fly. They'll supply some text and images for the page and the url that the page needs to be on. We need a data store for this. The criteria for the data store are simple and defined below. I am not familiar with CouchDB or M...

Best Key-Value database for tens of millions of records

Hi, I'm currently using CouchDb to store tens of millions of documents of variable fields, of variable types. Unfortunately, creating permanent views for these documents takes an inordinate amount of time and is becoming quite an inconvenience. Are there other key/value databases out there whereby I can test ad-hoc queries easily and h...