Re: CouchDB starts, but can't connect

2010-09-21 Thread Jason Priem
figured it out--permission problems. this helped: http://www.listware.net/201007/couchdb-user/70174-re-my-10-installation-on-ubuntu-lucid-fails-to-start.html thanks! j On 9/21/2010 6:23 PM, Jason Priem wrote: Hi, I can't make CouchDB work on my Ubuntu 10.04 Linode VPS. I followed all the inst

CouchDB starts, but can't connect

2010-09-21 Thread Jason Priem
Hi, I can't make CouchDB work on my Ubuntu 10.04 Linode VPS. I followed all the instructions on http://wiki.apache.org/couchdb/Installing_on_Ubuntu (example 2, minimal dependencies). When I run /usr/local/etc/init.d/couchdb start I get * Starting database server couchdb [ OK ]

Re: Random Document

2010-09-21 Thread Eli Stevens (Gmail)
Unless there are additional restrictions that can be imposed, I'm pretty sure that you're going to end up needing to get the full list of IDs, and select x of them at random without replacement to fully match 'SORT BY RANDOM LIMIT X'. However, depending on what you are doing with them, it's possib

Re: Random Document

2010-09-21 Thread Peter Braden
Hi, I'm after a) - the equivalent of a 'SORT BY RANDOM LIMIT x' sql statement. > But as this isn't deterministic, I'm pretty sure it's wrong. > I don't follow your logic. The view will show all documents in a random order. The fact that is is unrepeatable may make it useless for > your purposes,

Re: distributed map-reduce queries

2010-09-21 Thread Tyler Gillies
On Tue, Sep 21, 2010 at 9:19 AM, Christopher Bare wrote: > Hi Couch-istas, > > Yes! Couchista FTW -- http://www.readwriteweb.com/about#tyler My website: http://list.pdxbrain.com

Re: Random Document

2010-09-21 Thread Ian Hobson
On 21/09/2010 18:27, Peter Braden wrote: Hi, Is there a good way to get a random document from a database. Hmm, that depends upon what you mean by "good", and "random" and if you want a repeatable result! I guess I'm asking what exactly are you trying to do? a) Pick a representative, and sta

Re: Random Document

2010-09-21 Thread Peter Nolan
sounds like a map-reduce is what you're looking for. Or, you could emit all the documents, and choose a random row entry on the user end (though that would be poor practice depending on the size of your database etc.) On Tue, Sep 21, 2010 at 1:27 PM, Peter Braden wrote: > Hi, > > Is there a goo

Random Document

2010-09-21 Thread Peter Braden
Hi, Is there a good way to get a random document from a database. I'm currently using a view that does: function(doc) { emit(Math.random(), doc); }; But as this isn't deterministic, I'm pretty sure it's wrong. I've done a bit of googling, and haven't found anything. Cheers, Peter -- Pe

Re: distributed map-reduce queries

2010-09-21 Thread Randall Leeds
On Tue, Sep 21, 2010 at 18:19, Christopher Bare wrote: > > I only vaguely understand the incremental indexing aspect of Couch, > and welcome any comments about other differences between Couch's > map-reduce and other forms; biting or not. There's lots of cool > engineering to explore. This means

Re: Error installing CouchDB in Ubuntu

2010-09-21 Thread aristides villarreal
step 1. sudo apt-get install automake autoconf libtool help2man sudo apt-get install build-essential erlang libicu-dev *xulrunner-dev *libcurl4-openssl-dev 2. wget http://apache.linux-mirror.org/couchdb/1.0.1/apache-couchdb-1.0.1.tar.gz

Re: Error installing CouchDB in Ubuntu

2010-09-21 Thread Tyler Gillies
if you *do* need to install from source use: http://github.com/jhs/build-couchdb -- http://www.readwriteweb.com/about#tyler My website: http://list.pdxbrain.com

Re: Error installing CouchDB in Ubuntu

2010-09-21 Thread Tyler Gillies
On Tue, Sep 21, 2010 at 8:55 AM, Paul Davis wrote: > Alexandre, > > Looks like your version of spidermonkey is incompatible which is odd > as we should be compatible with everything since 1.7. Can you check > what version of the spidermonkey lib you've got? > > Paul Davis > > They removed spidermo

distributed map-reduce queries

2010-09-21 Thread Christopher Bare
Hi Couch-istas, Sorry for the dupe question. Thanks for the responses and especially to Paul. The JSON document model fits my problem nicely, which is my initial attraction to Couch. ...much cleaner than a big table. I also like the idea of using HTTP to plug components together. It's the native

Re: Error installing CouchDB in Ubuntu

2010-09-21 Thread Paul Davis
Alexandre, Looks like your version of spidermonkey is incompatible which is odd as we should be compatible with everything since 1.7. Can you check what version of the spidermonkey lib you've got? Paul Davis 2010/9/20 Alexandre Corrêa Barbosa : > Hi, > > I'm trying to install Couchdb on Ubuntu.

Error installing CouchDB in Ubuntu

2010-09-21 Thread Alexandre Corrêa Barbosa
Hi, I'm trying to install Couchdb on Ubuntu. I've managed to install all dependencies, and successfully run ./configure. But when I run 'make', I've got the following error: /bin/bash ../../../libtool --tag=CC --mode=link gcc -I/usr/local/include -L/usr/local/lib -g -O2 -module -avoid-version

Re: Duplication of unique keys

2010-09-21 Thread Tyler Gillies
On Tue, Sep 21, 2010 at 2:54 AM, Dave Cottlehuber wrote: > > > { > "_id": "140bb463c19ed9a020fc397b5c000c66", > "name: "yo raccoon", > "name: "yo fox", > "names": ["name: "interpretative dance"] > } > Legendary! -- http://www.readwriteweb.com/about#tyler My website: http://list.pdxbra

Re: Duplication of unique keys

2010-09-21 Thread Dave Cottlehuber
On 21 September 2010 18:40, BABALWA MAGALELA <208179...@cput.ac.za> wrote: > You have two  Patient Docs, Patient1 and Patient2 which have embedded > Indentifier Docs. Below are the Two Docs > > { >  "_id": "1234", >  "_rev": "123456", >  "name": "Patient 1", >  "gender: "MALE", >  "indentifier": [

Re: Fwd: Multi-View support : feedback,issues, and question

2010-09-21 Thread cdr53x
Hi, I checked out your update from the github and the mutiview test still produces the same 400 errors : [Tue, 21 Sep 2010 09:00:29 GMT] [info] [<0.172.0>] 127.0.0.1 - - 'POST' /test_suite_db/_multi 400 [Tue, 21 Sep 2010 09:00:29 GMT] [debug] [<0.172.0>] httpd 400 error response: {"error":"

Re: Question on view design for both Hierarchy and Date.

2010-09-21 Thread Dirkjan Ochtman
On Tue, Sep 21, 2010 at 10:10, Søren Hilmer wrote: > Well, how can I test that? > Do you know how this situation will it manifest itself, error messages in > the log? If you're using stale=ok, you can probably just see it from the active tasks, that the view indexer is running behind. If not, you

Re: Question on view design for both Hierarchy and Date.

2010-09-21 Thread Søren Hilmer
On Tue, Sep 21, 2010 at 9:55 AM, Dirkjan Ochtman wrote: > On Tue, Sep 21, 2010 at 08:53, Søren Hilmer wrote: > > //reduce just sums the values > > I hope you're using the built-in "_sum" reduce function? > Absolutely. > > > This allows me to do the wanted query > > like, > startkey=["A","B","

Re: Question on view design for both Hierarchy and Date.

2010-09-21 Thread Dirkjan Ochtman
On Tue, Sep 21, 2010 at 08:53, Søren Hilmer wrote: > //reduce just sums the values I hope you're using the built-in "_sum" reduce function? > This allows me to do the wanted query > like, > startkey=["A","B","c6",2010,9,20,12,0,0]&endkey=["A","B","c6",2010,9,20,22,0,0,{}] > > Is there a better