Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B07C23D46 for ; Sat, 30 Apr 2011 14:33:22 +0000 (UTC) Received: (qmail 50401 invoked by uid 500); 30 Apr 2011 14:33:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 50362 invoked by uid 500); 30 Apr 2011 14:33:21 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 50354 invoked by uid 99); 30 Apr 2011 14:33:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2011 14:33:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,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.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Apr 2011 14:33:15 +0000 Received: by bwj24 with SMTP id 24so6152049bwj.11 for ; Sat, 30 Apr 2011 07:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=XNF80+t/j0WfwCWSuRxpa7l8bRG+BpWfRLneoQAEvo4=; b=wSB0dOV6JBxKkDp7swMd+wBJHsnCKofLAzTm6DYpHq0PYe7it49agot/GoWJhsgMrS L5FXAY6ByP/JH27Wgr7FaiQElE2JKxtnUkqiAZiHwBxedc17f8Z7/wKV1aJy2pq4N2k8 GrTCmIuXFoTR47KojGTV+rQsGaFVILFmemukU= 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=DkR61pv6cHweQLIcqk+DhNIED9cUKi5m7eLGeHXM4sn91XpaJCI4qafchqmBUZbPNH 3RpaNROTGpCAZFAFvV8Y2x7qU82ZcqCkdGx3sbstfYKrmDazH8uqrjqpgAiqyZKAmVUy 8DKK0pWVKmHt25LHlbsKe3TtTTz7oQbY40da4= MIME-Version: 1.0 Received: by 10.204.16.140 with SMTP id o12mr5590271bka.125.1304173974230; Sat, 30 Apr 2011 07:32:54 -0700 (PDT) Received: by 10.204.171.1 with HTTP; Sat, 30 Apr 2011 07:32:54 -0700 (PDT) In-Reply-To: <4DBBFD2E.4080301@mage.hu> References: <4DBB04C4.7070704@mage.hu> <4DBBFD2E.4080301@mage.hu> Date: Sat, 30 Apr 2011 15:32:54 +0100 Message-ID: Subject: Re: triggering all (necessary) view update From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Magie, I didn't read your post as offensive, don't worry. The problem is mostly that compaction is an intensive process so scheduling it automatically is tricky; the right schedule will vary by use case. I can see the scheduler becoming very complicated in order to accommodate as many cases as possible. I think it would be better done externally, even if that's in the form of some kind of official couchdb plugin or addon. Once the next couple of releases are behind us (1.0.3 and 1.1.0), we'll be reorganizing the source tree to make things more manageable (and separated). That would be a good time to consider a compaction scheduler add-on. B. On 30 April 2011 13:14, Mage wrote: > On 04/29/2011 10:36 PM, Robert Newson wrote: >> "I suppose that I can write a short script that finds all the views in a >> database and asks one document from each, however it is not as elegant >> as having a request which does the same." >> >> You only find it more elegant because you won't have to look at the code= . :) > I didn't mean to be offensive. > > I don't know erlang yet so I have no idea how much work would be > required to implement this in CouchDB. There is a lot of things to > rethink after the long years spent with sql. > > Anyway, I'will script this. > > =A0 =A0Mage > > >