Re: 'Grouping' documents so that a set of documents is passed to the view function

2009-06-25 Thread hhsuper
Great job, Brain, I saw you have update the wiki http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views with the discuss content, it'll great help for many people On Fri, Jun 26, 2009 at 1:32 PM, hhsuper wrote: > by the way, brian, i see many people say that with couchdb, you can > downloa

Re: 'Grouping' documents so that a set of documents is passed to the view function

2009-06-25 Thread hhsuper
by the way, brian, i see many people say that with couchdb, you can download the data from view and then do sorting/filting/pagination in client, yes you can do that but i think we absolutely need these feature in couchdb level just like when we use rdbms it support that, such as when i have a view

Re: 'Grouping' documents so that a set of documents is passed to the view function

2009-06-25 Thread hhsuper
Thx Brian again, I totally understand your description about the map/reduce realistic scenario, this is just what i worry about my view, my reduce function is non-linear, actually i need the logic in reduce part and the that re-reduce code abviouse wrong, but when the realistic reduce occurred, lik

Re: help with OLTP database survey

2009-06-25 Thread Noah Slater
On Thu, Jun 25, 2009 at 04:23:13PM -0700, Dave Repczynski wrote: > We are conducting a short 18 question market research survey on OLTP database > usage and would like your input. The survey will take approximately 5 minutes > and we are giving away an iPod Touch or a Nintendo Wii to three winners

help with OLTP database survey

2009-06-25 Thread Dave Repczynski
Hi All, We are conducting a short 18 question market research survey on OLTP database usage and would like your input. The survey will take approximately 5 minutes and we are giving away an iPod Touch or a Nintendo Wii to three winners drawn on July 31, 2009. The purpose of this survey is pro

Re: Startup error

2009-06-25 Thread Noah Slater
On Thu, Jun 25, 2009 at 05:52:22PM -0500, Andrew Melo wrote: > This may not be the best forum for this, but how can you force erlang > to compile in 32bit? I'm not sure, sorry. The #erlang channel on Freenode has been helpful to me in the past though. Might want to ask in there? If you figure i

Re: Startup error

2009-06-25 Thread Andrew Melo
Noah, > Over the last few years I have found that 90% of all problems reported can be > fixed by advising people to build a new version of CouchDB from SVN, and maybe > compiling the most recent version of Erlang in 32 bit. This may not be the best forum for this, but how can you force erlang to

Re: Startup error

2009-06-25 Thread Andrew Melo
On Thu, Jun 25, 2009 at 4:25 PM, Noah Slater wrote: > Hey, > > Sorry for not addressing your problems more directly. > > Over the last few years I have found that 90% of all problems reported can be > fixed by advising people to build a new version of CouchDB from SVN, and maybe > compiling the mos

Re: Startup error

2009-06-25 Thread Noah Slater
Hey, Sorry for not addressing your problems more directly. Over the last few years I have found that 90% of all problems reported can be fixed by advising people to build a new version of CouchDB from SVN, and maybe compiling the most recent version of Erlang in 32 bit. Fortunately, Erlang is pr

Re: Startup error

2009-06-25 Thread Andrew Melo
On Thu, Jun 25, 2009 at 4:08 PM, Noah Slater wrote: > The following might be helpful: > >  http://wiki.apache.org/couchdb/Troubleshooting > > Sometimes the first couple of steps eliminate the problem entirely. I'll give that a look. I installed from the tarballs and not the SVN, so the boostrap sc

Re: Startup error

2009-06-25 Thread Noah Slater
On Thu, Jun 25, 2009 at 04:05:21PM -0500, Andrew Melo wrote: > Sorry to reply to myself, but I have some more information. The following might be helpful: http://wiki.apache.org/couchdb/Troubleshooting Sometimes the first couple of steps eliminate the problem entirely. > I've looked up __clzd

Re: Startup error

2009-06-25 Thread Andrew Melo
Sorry to reply to myself, but I have some more information. When running directly via the command line with the debug log enabled, I get the following error before things get pearshaped /usr/local/couchdb/apache-couchdb-0.9.0/lib/couchdb/bin/couchjs: symbol lookup error: /usr/local/couchdb/apache

Startup error

2009-06-25 Thread Andrew Melo
Hello All, I've been working on getting a couchDB instance installed, and I've run into a snag. My instance fails a number of tests. For instance, the first test fails with: {"error":"{bad_return_value,{os_process_error,{exit_status,127}}}","reason":"{gen_server,call,[couch_query_servers,{get_pro

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Benoit Chesneau
2009/6/25 Kevin Ferguson : > python-cjson is many times faster than simplejson-- maybe 8x faster or so. > > http://www.vazor.com/cjson.html > > Kevin Even when using C extension of simplejson ?

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Sergey Shepelev
I second cjson option. We're using cjson in production for like half year, passing around big objects and lists, it works fine and fast. 2009/6/25 Kevin Ferguson : > python-cjson is many times faster than simplejson-- maybe 8x faster or so. > > http://www.vazor.com/cjson.html > > Kevin >

RE: Can I get csv data format from couchDB?

2009-06-25 Thread Kevin Ferguson
python-cjson is many times faster than simplejson-- maybe 8x faster or so. http://www.vazor.com/cjson.html Kevin From: Guozhu.Wen [guozhu...@gmail.com] Sent: Thursday, June 25, 2009 7:21 AM To: user@couchdb.apache.org Subject: Can I get csv data format fro

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Zachary Zolton
I've also been thinking that JSON diffs would be pretty handy for functions for dealing with conflicts. On Thu, Jun 25, 2009 at 11:49 AM, Noah Slater wrote: > On Thu, Jun 25, 2009 at 09:11:22AM -0700, Chris Anderson wrote: >> On Thu, Jun 25, 2009 at 8:44 AM, Noah Slater wrote: >> > On Thu, Jun 25,

design doc file size

2009-06-25 Thread dave farkas
Hi, The company I work for is attempting to migrate two messaging systems from mysql to couchdb. Couchdb will be used for reporting and searching messages. Once we have the current data loaded, new messages will be added once per day and existing messages will not be updated. I currently hav

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Noah Slater
On Thu, Jun 25, 2009 at 09:11:22AM -0700, Chris Anderson wrote: > On Thu, Jun 25, 2009 at 8:44 AM, Noah Slater wrote: > > On Thu, Jun 25, 2009 at 09:24:31AM -0500, Nathan Stott wrote: > >> Use show and list functions to return CSV data. > >> http://wiki.apache.org/couchdb/Formatting_with_Show_and_L

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Chris Anderson
On Thu, Jun 25, 2009 at 8:44 AM, Noah Slater wrote: > On Thu, Jun 25, 2009 at 09:24:31AM -0500, Nathan Stott wrote: >> Use show and list functions to return CSV data. >> http://wiki.apache.org/couchdb/Formatting_with_Show_and_List > > Sigh. This would be better done with JSON Transformations. > No

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Noah Slater
On Thu, Jun 25, 2009 at 09:24:31AM -0500, Nathan Stott wrote: > Use show and list functions to return CSV data. > http://wiki.apache.org/couchdb/Formatting_with_Show_and_List Sigh. This would be better done with JSON Transformations. -- Noah Slater, http://tumbolia.org/nslater

Re: Can I get csv data format from couchDB?

2009-06-25 Thread Nathan Stott
Use show and list functions to return CSV data. http://wiki.apache.org/couchdb/Formatting_with_Show_and_List 2009/6/25 Guozhu.Wen > The data returned from couchDB is usually a json string. Something the json > string is so big that it is time consuming for parseing this string. I use > python's

Can I get csv data format from couchDB?

2009-06-25 Thread Guozhu.Wen
The data returned from couchDB is usually a json string. Something the json string is so big that it is time consuming for parseing this string. I use python's simplejson module in order to convert json to dict type, but it is many slow. So I was wondering how can I fetch the csv data from couchDB

Re: 'Grouping' documents so that a set of documents is passed to the view function

2009-06-25 Thread Brian Candler
On Thu, Jun 25, 2009 at 09:34:31AM +0100, Brian Candler wrote: > Perhaps it will help you to understand this if you consider the limiting > case where exactly one document is fed into the 'reduce' function at a time, > and then the outputs of the reduce functions are combined with a large > re-redu

Re: 'Grouping' documents so that a set of documents is passed to the view function

2009-06-25 Thread Brian Candler
On Thu, Jun 25, 2009 at 09:24:31AM +0800, hhsuper wrote: >I descripe the application scenario carefully: when user learn from one >dialog, they start a session( sessionid), the study on every line in >dialog generate a couchdb document(there are uid/dialogid/sessionid, >wordcount/we