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

2009-06-22 Thread hhsuper
Hi Brian I know your mean, even though, we can still with reduce function which need us impl rereduce correctly process with these grouped documents and get right result, is that right brian? On Tue, Jun 23, 2009 at 3:05 AM, Brian Candler wrote: > On Mon, Jun 22, 2009 at 09:49:15PM +0800, hhsupe

Re: London CouchDB meetup Thursday

2009-06-22 Thread Alan Bell
cool, look forward to seeing you there. Alan. Chris Anderson wrote: Couchers, Jan and I are in London for the Erlang Factory conference, along with a lot of other longtime (and new) Erlangers. We'll be having a Erlounge this Thursday evening at St. James Crypt at Clerkenwell Green. You are invi

Re: Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Nathan Stott
I would severely advise against trying to build couchdb by creating a VS2008 project. The easiest way to build couch on windows is to get the src for couchdb-win32 from my github or from markh's. Follow the directions in the README. We need to update the wiki to add links to these githubs i guess

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

2009-06-22 Thread Brian Candler
On Mon, Jun 22, 2009 at 09:49:15PM +0800, hhsuper wrote: > Brian's decription for reduce function is clearly, but i think you can > achieve your goal as below: > > function(doc){ > emit(doc.group_key, doc) > } > > function(keys,values,rereduce){ > //... > } > > with the group=true option you

London CouchDB meetup Thursday

2009-06-22 Thread Chris Anderson
Couchers, Jan and I are in London for the Erlang Factory conference, along with a lot of other longtime (and new) Erlangers. We'll be having a Erlounge this Thursday evening at St. James Crypt at Clerkenwell Green. You are invited for drinks and conversation. The event starts at 18:00 (((look at m

RE: Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Heiden, W van - SPLXL
I am trying to build CouchDB for Windows, not Erlang (except for Mochiweb). I have no experience with Erlang (nor couchDB) and the Wiki is (still) unclear to me because it doesn't answer my thoughts or questions. For myself I have created the steps that I have done, they are below, and come from

Re: Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Nathan Stott
You're trying to build Erlang from source? I'm very interested in how your experience in following the wiki directions is going. Please advise as to where the directions can be made more clear. On Mon, Jun 22, 2009 at 12:24 PM, Heiden, W van - SPLXL < walter-van.hei...@klm.com> wrote: > Hello, >

Win32 installation (building the Couch ERL driver DLL).

2009-06-22 Thread Heiden, W van - SPLXL
Hello, I do want to start with CouchDB on Windows and prefer to build from scratch to understand the product and it's dependecies better. I am using the instructions from http://wiki.apache.org/couchdb/Installing_on_Windows and am stuck at building the 'couch erl driver DLL'. Have built mo

Re: CouchDB for logging & file storage

2009-06-22 Thread Robert Newson
yes, stale=ok won't help if you've never built the view. but if you hit your view without stale=ok every N minutes from a cron job or something, then you can always use stale=ok from your "real" clients, and they'll never block for a view update. You'll always be five minutes behind, but I think th

Re: CouchDB for logging & file storage

2009-06-22 Thread Sergey Shepelev
Yeah, but for new queries it would return empty set until all documents are processed, right? This makes debugging new queries a bit tricky. You have to pick unbiased 2-3K documents into separate database, test your queries there while they're fast to build and then use them on big database. On M

Re: CouchDB for logging & file storage

2009-06-22 Thread Robert Newson
You can also pass stale=ok if you don't need the latest results from a view. http://wiki.apache.org/couchdb/HTTP_view_API B. On Mon, Jun 22, 2009 at 3:46 PM, Sergey Shepelev wrote: > From my poor experience with couch, i think that your task (ever expanding > set of data, no updates) is perfect

Re: CouchDB for logging & file storage

2009-06-22 Thread Sergey Shepelev
>From my poor experience with couch, i think that your task (ever expanding set of data, no updates) is perfect for couch. But, you should also consider that expanding-only set of data is a good task for constant databases too. Though, you would run into a expansive process writing a nice querying

CouchDB for logging & file storage

2009-06-22 Thread Nitin Gupta
Hi All, I am new to non-rdbms storage systems. I am working on an application in which we need to log different user actions as plain text. I am not of the opinion to make use of our rdbms for this activity as writing this on a rdbms can be an expansive process. Can I make use of Couch DB f

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

2009-06-22 Thread hhsuper
Brian's decription for reduce function is clearly, but i think you can achieve your goal as below: function(doc){ emit(doc.group_key, doc) } function(keys,values,rereduce){ //... } with the group=true option you can impl doc process by group_key in reduce function, as your example reduce wil

RE: view sorting and group question?

2009-06-22 Thread Nils Breunese
ExtJS is not the only approach. There is a DataTable control for YUI, and the DataTables plugin for jQuery for instance. I've used the jQuery plugin myself and it was pretty easy. Nils Breunese. Van: Nicholas Orr [nicholas@zxgen.net] Verzonden: maand

Re: Intermittent HTTP 500's

2009-06-22 Thread Brian Candler
On Mon, Jun 22, 2009 at 07:44:45AM -0500, Curt Arnold wrote: > The original post contained the CouchDB a representative section of > couch.log, repeating part of it here: > > [Thu, 18 Jun 2009 01:22:59 GMT] [info] [<0.1180.84>] 127.0.0.1 - - 'GET' > /loaded/_design/query/_view/byURI?include_docs

Re: when we should implement the rereduce in reduce function

2009-06-22 Thread Rangachari Anand
On Sun, Jun 21, 2009 at 9:20 PM, Oliver Boermans wrote: > Nice diagram Brian! > > Sent from the olliPod > I would second this - If someone could add it to the Wiki, it would definitely help new comers. Anand

Re: Intermittent HTTP 500's

2009-06-22 Thread Curt Arnold
On Jun 22, 2009, at 4:11 AM, Brian Candler wrote: On Thu, Jun 18, 2009 at 11:23:35PM -0500, Curt Arnold wrote: The problem only appears to occur in POST requests with multiple keys. I've added fallback behavior to my app to request the same data key by key which will work around the 500 err

Re: view sorting and group question?

2009-06-22 Thread Dmitry Unkovsky
As for me, I see couchdb as a persistent layer for any ajax app. Though show functions allow pages to be exposed as server-side pages, for basic usage like search engines or simple handhelds, features like sorting and different ui niceties I leave for a clientside javascript, which additionally tak

Re: view sorting and group question?

2009-06-22 Thread Brian Candler
On Sun, Jun 21, 2009 at 10:15:31AM +0800, hhsuper wrote: > but if i need to use the view as a datasource to the web page, i need change > to right view to query on every sorting? That's one way. Another way is a single large view where you label each ordering of keys: function(doc) { emit(["by

Re: Intermittent HTTP 500's

2009-06-22 Thread Brian Candler
On Thu, Jun 18, 2009 at 11:23:35PM -0500, Curt Arnold wrote: > The problem only appears to occur in POST requests with multiple keys. > I've added fallback behavior to my app to request the same data key by > key which will work around the 500 error that occurs on the POST request. Does the 500

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

2009-06-22 Thread Brian Candler
On Fri, Jun 19, 2009 at 09:43:31AM +0200, Daniel Trümper wrote: > Hi, > > I am somewhat new to CouchDB but have been doing some stuff with it and > this is my first post to the list so pardon if I am wrong :) > > >> It would be really cool if there were some way to pass all the docs >> with a va