Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 10285 invoked from network); 22 Aug 2010 22:15:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Aug 2010 22:15:30 -0000 Received: (qmail 52972 invoked by uid 500); 22 Aug 2010 22:15:30 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 52882 invoked by uid 500); 22 Aug 2010 22:15:29 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 52874 invoked by uid 99); 22 Aug 2010 22:15:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 22:15:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robert.newson@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Aug 2010 22:15:24 +0000 Received: by qyk31 with SMTP id 31so4108972qyk.11 for ; Sun, 22 Aug 2010 15:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wma5HC/MCgoBZMr38scE8A8kSUGco/d5wQ3ixG619ls=; b=GC9UJMbqU1/jLP5YG9xqlwAQQO2LbaNg6FeS+Qld9uSN0gBfoUL7uyHypZ4I+hiH6B ln+G1m9QEj6wScrAYK6ByiclEcsgIOMnFknIXuFmxLDGqGJ2vn/beQ/gxWtJOOFS7q4/ lIW5zQdLXUEnXx6TSEWBjNDCWwiHz6oASH5Xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FtUH10wfytgg/XcHWtre/ScdVsvJVCYqdpQMttn0nBphfkcyJ5hIb/NNg+2MXUe2Xv LT1JAz153C1ETPS/xHnVxV3CXa3WtWvBLRe08/qGYmrQkmRaI/wgFzn9Ci/IXyI/D4lA 5Ej7ZtNsX1Lols6AE1ypqhk0lBtU17Xt12sA4= MIME-Version: 1.0 Received: by 10.229.233.68 with SMTP id jx4mr1427099qcb.7.1282515303578; Sun, 22 Aug 2010 15:15:03 -0700 (PDT) Received: by 10.229.26.213 with HTTP; Sun, 22 Aug 2010 15:15:03 -0700 (PDT) In-Reply-To: References: <96CEF573-64EE-44B2-AC41-2A5A312A141D@apache.org> <4835209A-F0C3-493E-8ED9-E58FEC4B1C55@apache.org> <4C6B3C3B.8020607@gmail.com> Date: Sun, 22 Aug 2010 23:15:03 +0100 Message-ID: Subject: Re: multiview on github From: Robert Newson To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm concerned about the performance of this on non-trivial databases, given the iteration of all items between startkey and endkey. I don't have time to test it this week but I'd be interested to hear the time it took to do a multiview on two views of, say, a million rows each (especially as compared to the two normal view calls). I was also intrigued to see the code handles fti too, a problem I have spent some time thinking about without finding a satisfactorily performant solution too. I note that, as written, it doesn't appear to work because the fti call (I'm assuming couchdb-lucene) will only return the top N matching hits, so at best you can filter those against another view (perhaps that's useful?). The trick to merging a view and an fti result together would be to get the results from both in the same order and step through the rows, filtering as you go. Sorting in Lucene has a large memory hit so I gave up on that solution. Finally, your patch appears to add two generated files (local_dev.ini and etc/init.d/couchdb) to the branch which should be fixed (add your settings to default.init.tpl.in instead). I should end by saying that if the problems above can be solved then this would be a very useful addition to CouchDB and one that is frequently requested. It might also be a model for multi-machine views. B. On Sun, Aug 22, 2010 at 10:45 PM, Norman Barker w= rote: > I would like to take this multiview code and have it added to trunk if > possible, what are the next steps? > > thanks, > > Norman > > On Wed, Aug 18, 2010 at 11:44 AM, Norman Barker = wrote: >> I have made >> >> http://github.com/normanb/couchdb >> >> which is a fork of the latest couchdb trunk with the multiview code >> and tests added. >> >> If geocouch is available then it can still be used. >> >> There are a couple of questions about the multiview on the user /dev >> list so I will be adding some more test cases during today. >> >> thanks, >> >> Norman >> >> On Tue, Aug 17, 2010 at 9:23 PM, Norman Barker = wrote: >>> this is possible, I forked geocouch since I use it, but I have already >>> separated the geocouch dependencies from the trunk. >>> >>> I can do this tomorrow, certainly be interested in any feedback. >>> >>> thanks, >>> >>> Norman >>> >>> >>> >>> On Tue, Aug 17, 2010 at 7:49 PM, Volker Mische wrote: >>>> On 08/18/2010 03:26 AM, J Chris Anderson wrote: >>>>> >>>>> On Aug 16, 2010, at 4:38 PM, Norman Barker wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have made the changes as recommended, adding a test case >>>>>> multiview.js and also adding the userCtx to open the db. >>>>>> >>>>>> I have also forked geocouch and this is available here >>>>>> >>>>> >>>>> this patch seems important (especially as people are already asking f= or >>>>> help using it on user@) >>>>> >>>>> to get it committed, it either must remove the dependency on GeoCouch= , or >>>>> become part of CouchDB when (and if) GeoCouch becomes part of CouchDB= . >>>>> >>>>> Is it possible / useful to make a version that doesn't use GeoCouch? = And >>>>> then to make the GeoCouch capabilities part GeoCouch for now? >>>>> >>>>> Chris >>>>> >>>> >>>> Hi Norman, >>>> >>>> if the patch is ready for trunk, I'd be happy to move the GeoCouch bit= s to >>>> GeoCouch itself (as GeoCouch isn't ready for trunk yet). >>>> >>>> Lately I haven't been that responsive when it comes to GeoCouch, but t= hat >>>> will change (in about a month) after holidays and FOSS4G. >>>> >>>> Cheers, >>>> =A0Volker >>>> >>> >> >