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) {

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

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'

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:

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

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

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

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 Shepelevtemo...@gmail.com wrote: From my poor experience with couch, i think that your task (ever expanding set of data, no

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

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, I

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: '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 can impl

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

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

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 b.cand...@pobox.com wrote: On Mon, Jun 22, 2009 at