Re: Any existing code/samples/examples for couchdb self service?

2011-05-26 Thread Benoit Chesneau
On Fri, May 27, 2011 at 1:13 AM, Andrew Stuart (SuperCoders) wrote: > Hi Martin > > Following up on this - any chance the code or some portion of it might be > accessible so we can see how you solved it? > > thanks > > as > > > On 08/05/2011, at 6:10 AM, Martin Higham wrote: > > We do this in one

Re: vhost rewrite and httpd_global_handlers

2011-05-26 Thread Benoit Chesneau
On Fri, May 27, 2011 at 2:08 AM, Yves Serrano wrote: > hi > > I'm new to couchdb and it makes fun to play with it :-). > I using vhost and rewrites to get nice urls. I also have defined some static > html via > ... > [httpd_global_handlers] > static = {couch_httpd_misc_handlers, handle_utils_dir_

Re: Complex queries & results

2011-05-26 Thread Torstein Krause Johansen
Hi all, thanks for the great feedback. On 26/05/11 19:26, Sean Copenhaver wrote: Have you tried having a map function that emits the 'a_name' as a key then a reduce function that uses the builtin sum(), then you query with group=true? If I do: emit([a_name, one_id, another_id, created_at]);

vhost rewrite and httpd_global_handlers

2011-05-26 Thread Yves Serrano
hi I'm new to couchdb and it makes fun to play with it :-). I using vhost and rewrites to get nice urls. I also have defined some static html via ... [httpd_global_handlers] static = {couch_httpd_misc_handlers, handle_utils_dir_req, "/path/to/static"} ... My problem is that I can't get access to

Re: Any existing code/samples/examples for couchdb self service?

2011-05-26 Thread Andrew Stuart (SuperCoders)
Hi Martin Following up on this - any chance the code or some portion of it might be accessible so we can see how you solved it? thanks as On 08/05/2011, at 6:10 AM, Martin Higham wrote: We do this in one of apps. We have an CouchDB external process that makes all the necessary calls to

Re: Limit on the number of databases?

2011-05-26 Thread Ajai Khattri
Since we're discussing large numbers of mobile clients: would it be possible to do replication in "batches" from a client (i.e. not immediately) so that server resources are not continuously tied up? On another project Ive worked on where syncing from mobile clients was involved, we developed

Re: map reduce

2011-05-26 Thread Sean Copenhaver
My understanding is the big benefit of Google doing it on multiple machine is that they are concurrently processing huge amounts of data in batch. CouchDB is incremental map/reduce meaning that as documents are updated/inserted/deleted the map function is run on them and the index for the view upda

Re: Limit on the number of databases?

2011-05-26 Thread Jayesh Thakrar
I am very new to couchdb - but wondering if the approach below could work. 1. Have one or more independent clusters of couchdb (start with 1 and add more as needed). 2. Layout a DB naming scheme 3. Have an appropriate firewall/router/switch in front of the client machines/network and have that r

Re: Limit on the number of databases?

2011-05-26 Thread Brian Mitchell
On Thursday, May 26, 2011 at 11:15 AM, Sam Bisbee wrote: > - On a non-performance note, you can't do map/reduce across > databases. If you plan on referencing between them or combining data, > then you're probably going to have a index database that some client > code puts its results into. Tha

map reduce

2011-05-26 Thread Mauro Fagnoni
map can be performed back in cluster mode? There is an average number of computers that are running this operation? For example, the map reduces done by Google on several machines in the cluster? http://labs.google.com/papers/mapreduce.html best regards -- -

Re: Limit on the number of databases?

2011-05-26 Thread Brian Mitchell
On Thursday, May 26, 2011 at 6:22 AM, Glenn Bech wrote: > Hi, > > I just want to ask if there are limits on the number of databases in Couch. > I am playing around with embeded Couch on Android and are thinking in the > line of having > one database per user, and use replication to push data fr

Re: Limit on the number of databases?

2011-05-26 Thread Ajai Khattri
On Thu, 26 May 2011, Glenn Bech wrote: > I just want to ask if there are limits on the number of databases in Couch. > I am playing around with embeded Couch on Android and are thinking in the > line of having > one database per user, and use replication to push data from the client to > the serve

Re: Limit on the number of databases?

2011-05-26 Thread Sam Bisbee
On Thu, May 26, 2011 at 6:22 AM, Glenn Bech wrote: > Hi, > > I just want to ask if there are limits on the number of databases in Couch. > I am playing around with embeded Couch on Android and are thinking in the > line of having > one database per user, and use replication to push data from the c

Re: Limit on the number of databases?

2011-05-26 Thread Marcos Ortiz
On 05/26/2011 05:52 AM, Glenn Bech wrote: Hi, I just want to ask if there are limits on the number of databases in Couch. I am playing around with embeded Couch on Android and are thinking in the line of having one database per user, and use replication to push data from the client to the server

Re: Complex queries & results

2011-05-26 Thread Gabor Ratky
You can also skip writing the reduce function, if you use the built-in '_count' and/or '_stats' reduce function. Just pass that as the 'reduce' field of your view and it will automatically perform a count of the number of rows that come out of your map function for a given key. As Sean has point

Re: Complex queries & results

2011-05-26 Thread Sean Copenhaver
Have you tried having a map function that emits the 'a_name' as a key then a reduce function that uses the builtin sum(), then you query with group=true? A little info: group option: https://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options look at the last example before 'Enforcing Uniquenes

Limit on the number of databases?

2011-05-26 Thread Glenn Bech
Hi, I just want to ask if there are limits on the number of databases in Couch. I am playing around with embeded Couch on Android and are thinking in the line of having one database per user, and use replication to push data from the client to the server. This will provde for an Excellent "offline

Complex queries & results

2011-05-26 Thread Torstein Krause Johansen
Hi all, I have problems solving the following problem with CouchDB and am wondering if I'm trying to solve something for which Couch isn't suitable, if there is something I have misunderstood or if there's some hidden feature I haven't discovered yet. I have documents with the following fiel