Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 46095 invoked from network); 8 Nov 2008 15:54:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2008 15:54:11 -0000 Received: (qmail 65865 invoked by uid 500); 8 Nov 2008 15:54:18 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 65816 invoked by uid 500); 8 Nov 2008 15:54:18 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 65805 invoked by uid 99); 8 Nov 2008 15:54:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2008 07:54:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 209.85.217.15 as permitted sender) Received: from [209.85.217.15] (HELO mail-gx0-f15.google.com) (209.85.217.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2008 15:52:59 +0000 Received: by gxk8 with SMTP id 8so1241844gxk.12 for ; Sat, 08 Nov 2008 07:53:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=718QxtkoWK9CRUqpmF6z1ADJsjKZQ9crYiZK72GaU74=; b=BhWkRMvg7rx4rg/7GUhlWpJtOvDVEOkshTbhPDSxeBZXX4AYlbIsGZulzWQBfEZZG0 Ky3Rc9pWbFNbXp4aRhIufq45lyXlbgN7GbqbgZr+BEvKyK5WlSG4VX8l4tu8R5qcrhEk bMOSqQEwkq61E76TWDClzrKsrj9HLLtrl/vvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=thXXdzBcUGplyK8GNYF0YZMRRTgWq6LDOJ0vjoP8jhrLk+/dOxrlpbyU2bOb5dnRAu nyCtniOEi+EbbDBUMk/cPI89HWY5Ve+rmJSgAqW6tEAcGXoqYTgAz4lIoU2/M9wbnaOX Z7cT0OlWIcW+ne09wUZGjxv92vcgHU6jUZRSw= Received: by 10.65.59.16 with SMTP id m16mr5114096qbk.1.1226159620198; Sat, 08 Nov 2008 07:53:40 -0800 (PST) Received: by 10.64.241.20 with HTTP; Sat, 8 Nov 2008 07:53:40 -0800 (PST) Message-ID: Date: Sat, 8 Nov 2008 07:53:40 -0800 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-dev@incubator.apache.org Subject: Re: near view state server success In-Reply-To: <27d8d0930811072306u77c5ddffu921349f6799936f2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45E2AC4D-B362-41F8-9E28-63B25D362E6E@apache.org> <27d8d0930811072306u77c5ddffu921349f6799936f2@mail.gmail.com> X-Google-Sender-Auth: 36594d16f54153dc X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Nov 7, 2008 at 11:06 PM, Ayende Rahien wrote: > I want to be able to get a response in a limited amount of time.Even if that > response is optionally stale (marked by a header?) > This would be ideal. The hard part here is getting access to a stale view representation from disk. I'm not sure you can get a btree root from the disk, that is known to be consistent, unless it just came from the updater process. Maybe it'd be simple enough to do... but in any case, it's not really the feature that this patch is working on, although the patch does lay the groundwork for these more complex view query modes. Damien maybe you can chime in about getting consistent but stale view indexes from the disk? > The absolute worse thing to happen is to have a request just wait for 5 > minutes before timing out or returning a result. > That ties up resources across the entire network Once again, I think it really is the site operator's responsibility to keep any user-facing views up to a certain degree of readiness. In some cases, a quick error may be better than waiting 5 seconds (or 5 minutes) for a view to generate. But in other cases, we'd send the error instead of generating the view, and then turn out to have the view generate in less than a second. There's no way to know ahead of time how long it will take to update a view. Luckily, keeping your views up to date makes all these problems go away. Chris -- Chris Anderson http://jchris.mfdz.com