Re: Replication question

2010-02-28 Thread Blair Nilsson
It shouldn't be surprising though, the target database may already have records in it that would change the results, which would be difficult to detect without running the map on all the data that was already there. Also it is quite likely that it would take longer to replicate all the view data th

Re: startkey/endkey and descending=true

2009-06-17 Thread Blair Nilsson
I shouldn't drink so much coffee before posting, some of that didn't make too much sense. take the keys ["a",1] ["a",2] ["a",3] ["b",1] ["b",3] ["b",5] startkey=["a"]&endkey=["b"] will give you all of the keys starting with ["a"] Any key after ["a",3] and before ["b",1] can be used. {} is after

Re: startkey/endkey and descending=true

2009-06-17 Thread Blair Nilsson
mp;startkey=["Mark",4]&endkey=["Mark",4,{}] we get {"rows":[]} and also group=true&startkey=["Mark",4,{}]&endkey=["Mark",4] also gives us {"rows":[]} Its a range, but since the range is everything that can be under a key, it

Re: startkey/endkey and descending=true

2009-06-17 Thread Blair Nilsson
Maybe your start key and end key are around the wrong way for descending order? On Thu, Jun 18, 2009 at 10:46 AM, Ross Bates wrote: > Hi All - I have a view that uses an array for it's key. I want to select by > the first value and sort by the second in descending order (it sorts > properly in asc

Re: using couchdb for access log analysis

2009-06-17 Thread Blair Nilsson
we are doing something pretty much the same here, doing aggregation of data (we are just after the max values, but you can use it for pretty much anything) for a bunch of solar water heating units. overall it works just fine :) Here are the maps and reduces, you may want to adapt them or write you

Re: find all unique field names

2009-05-28 Thread Blair Nilsson
On Fri, May 29, 2009 at 1:09 PM, Chris Anderson wrote: > On Thu, May 28, 2009 at 4:26 PM, Blair Nilsson > wrote: >> On Fri, May 29, 2009 at 10:25 AM, Blair Nilsson >> wrote: >>> On Fri, May 29, 2009 at 9:20 AM, Douglas Fils wrote: >>>> Forgive the noo

Re: find all unique field names

2009-05-28 Thread Blair Nilsson
On Fri, May 29, 2009 at 10:25 AM, Blair Nilsson wrote: > On Fri, May 29, 2009 at 9:20 AM, Douglas Fils wrote: >> Forgive the noob question..  but I've not been able to easily locate an >> approach today to getting a return that gives all the unique field names in >> a

Re: find all unique field names

2009-05-28 Thread Blair Nilsson
On Fri, May 29, 2009 at 9:20 AM, Douglas Fils wrote: > Forgive the noob question..  but I've not been able to easily locate an > approach today to getting a return that gives all the unique field names in > a couch database. > > It's not too hard to generate a map function that emits an array of t

Re: Newbie question regarding Bulk Documents

2009-05-21 Thread Blair Nilsson
2009/5/22 Aníbal Rojas : > Hello, > >   Once a POST request to the /whatever/_bulk_docs URI finishes and a > response is generated by CouchDB, does this assure all the views have > been updated? Could not find this behavior expĺained in the API > >   Thanks in advance, > > -- > Aníbal Rojas > @anib