Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 27441 invoked from network); 10 Jul 2009 18:48:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 18:48:33 -0000 Received: (qmail 5109 invoked by uid 500); 10 Jul 2009 18:48:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5047 invoked by uid 500); 10 Jul 2009 18:48:42 -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 5037 invoked by uid 99); 10 Jul 2009 18:48:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 18:48:42 +0000 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 zachary.zolton@gmail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 18:48:31 +0000 Received: by fxm28 with SMTP id 28so1182999fxm.11 for ; Fri, 10 Jul 2009 11:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=bIcE7x6ckICe+7qlrHpbi0luV9haZxZ0QAScqq1poyc=; b=WXEtCye2a9Tmch4+Con5CJOavGJqmCWhw0s5BIuHdAx/r8PMMKu3pAKhYYz+YjTmKI 5lmniY8XvCqLsmiWMmX4ncADUI423SmTnmBGVnXCkYPg+TtKMFmwcuW07D9PMYAggvaO /DWtbhQyjJewUC9mUwmSHa8x/tif2tAZuEJFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=kj1K0lifqJJjiVv4LYrop6HMqrMUZrpzf/jJr5B0plEDUNLY40VzVna7RNnEfz6/SB sQbIuKnzVzfTVgXcLjvHZVUc9qnTynODVVR8XjCJjWaIiijq8tdJndRSej6lnWnMJlzu UtC6kAvMISqn7HMkmsc1I3vNy1L7zZXj9Cbb8= MIME-Version: 1.0 Received: by 10.204.58.208 with SMTP id i16mr2195994bkh.63.1247251690324; Fri, 10 Jul 2009 11:48:10 -0700 (PDT) In-Reply-To: References: <8ffb00ae0906082313j798fe874u3925cfd75de562ac@mail.gmail.com> <2F5EA1F1-03E0-4714-AE50-05AA3A70CA05@apache.org> From: Zachary Zolton Date: Fri, 10 Jul 2009 13:47:50 -0500 Message-ID: Subject: Re: Updating views in a production system To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Argh... accidentally hit "send" too soon~!! Awesome, but since I'm still using 0.9 in production, I'll need to do something else in the meantime. Will stale=3Dok queries remain performant during the re-indexing imposed by pushing an updated design document? If that's gonna work for me, I'll probably change my deployment strategy to the following: 1) flip the "latency" switch on, in a admin page 2) now all queries use stale=3Dok 3) push our new design documents 4) "prime" a view for each design document 5) somehow know when the indexing has finished 6) flip the "latency" switch off 7) now queries should go to the freshly-built indexes! Does anyone see glaring problems with this approach? =97ZZ On Fri, Jul 10, 2009 at 1:44 PM, Zachary Zolton w= rote: > Awesome, but since I'm still using 0.9 in production, I'll need to do > something else in the meantime. > > Will stale=3Dok queries remain performant during the re-indexing imposed > by pushing an updated design document? > > > Does anyone see glaring problems with this approach? > > > Cheers, > > Zach > > > On Fri, Jul 10, 2009 at 1:18 PM, Adam Kocoloski wrot= e: >> Yep, you got it. >> >> Adam >> >> On Jul 10, 2009, at 1:10 PM, Zachary Zolton wrote: >> >>> This commit would appear to address the situation in 0.10: >>> >>> >>> http://github.com/halorgium/couchdb/commit/d3f40115b0323e0ec66ed2fa08ad= b9852d548003 >>> >>> >>> On Sun, Jun 14, 2009 at 4:58 AM, Jan Lehnardt wrote: >>>> >>>> Hi Nadav, >>>> >>>> On 9 Jun 2009, at 08:13, Nadav Samet wrote: >>>> >>>>> Hi, >>>>> >>>>> Whenever I modify a design document of a view or add a new one, I am >>>>> query >>>>> any of the other views. Is it the expected behavior (on 0.10.0a) ? >>>> >>>> Yes. >>>> >>>>> If so, is it possible to avoid downtime when adding/editing a view on= a >>>>> single replica setup? >>>> >>>> Not yet, there's a ticket in JIRA that will remind us to allow for the >>>> following >>>> pattern: >>>> >>>> Create a new _design/foo2 instead of editing _design/foo. Query >>>> _design/foo2 >>>> so a new view index is built and then HTTP COPY _design/foo2 to >>>> _design/foo >>>> and have CouchDB keep using the pre-created index. >>>> >>>> Cheers >>>> Jan >>>> -- >>>> >>>> >> >> >