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 2C42411867 for ; Sun, 20 Apr 2014 19:37:14 +0000 (UTC) Received: (qmail 65503 invoked by uid 500); 20 Apr 2014 19:37:12 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65403 invoked by uid 500); 20 Apr 2014 19:37:12 -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 65395 invoked by uid 99); 20 Apr 2014 19:37:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Apr 2014 19:37:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Apr 2014 19:37:07 +0000 Received: by mail-oa0-f45.google.com with SMTP id eb12so3547672oac.32 for ; Sun, 20 Apr 2014 12:36:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OAYLMQiB+I/CzPjK9Fxo55EKiAD5xxyzXTbhGl5edTI=; b=kDOm8ovyRhLhqhqbu/15+hChGcYA5XwCFAPVmcAlo/IZsZ+SvzWj9MqnJEudCxymj5 5s2zv2lvNj0DHLGHHHWkDzcfaZ9k6pwf3eGR75f+vexab+LR3iuzVEIqekI967fBzh1n cIeH578olS5IgsJXAzlc7OCwLtw3V4l1YL9yN1df5HE7N4wo3x8DijaOrf+EysxTwAK+ IPzH9FiM3oYThdCdOURBXehwq7+tpRi5ePTQFkoeL1zBnvFtCODdrXylxAF25xR8ckRq 0L5XU6xvFEosyAc2u6bi+jR6i7arlkrI6WBK04rOshIYuO6zZoBp/vkLNLdwqKfmh6nx yPJQ== X-Gm-Message-State: ALoCoQkjbWgr9bb+IFEgcUUkO5eojVLqgp9wpOvHa/NWqh6uAbxLIabqBGjKBX4chGEX8ZtYuOvn MIME-Version: 1.0 X-Received: by 10.182.104.101 with SMTP id gd5mr2635668obb.54.1398022606609; Sun, 20 Apr 2014 12:36:46 -0700 (PDT) Received: by 10.182.235.66 with HTTP; Sun, 20 Apr 2014 12:36:46 -0700 (PDT) In-Reply-To: <9162AF19-1532-494E-95A4-0894398FBF53@apache.org> References: <9162AF19-1532-494E-95A4-0894398FBF53@apache.org> Date: Sun, 20 Apr 2014 21:36:46 +0200 Message-ID: Subject: Re: How to delay view responses until index is rebuilt From: Alex Schenkman To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=089e0115ec14daf30c04f77e80ed X-Virus-Checked: Checked by ClamAV on apache.org --089e0115ec14daf30c04f77e80ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry about the duplicate. Somehow I posted the first message before being a list member, so I couldn't tell whether the first message was actually sent. Thanks for you answer. On Sat, Apr 19, 2014 at 9:33 PM, Robert Samuel Newson w= rote: > You already posted this, please be patient and don=E2=80=99t post duplica= tes. > > B. > > On 19 Apr 2014, at 16:48, Alex Schenkman wrote: > > > Hi list, > > > > According to what I see in the logs and the results I get, the followin= g > > might be happening. Given that: > > > > 1) I update a document (using an update handler) > > 2) Couch starts an index update > > 3) I request a view > > 4) I get the "old" view results > > 5) Couch finnish its re-indexing > > 6) I request the same view again > > 7) I get the new view results > > > > I understand why this might be happening, but in my use case, I woud > prefer > > couch delaying the answer to the view request, until the index is > rebuilt. > > That is, once I update a document, I want views to reflect the change. > Even > > if this means being unresponsive for a second. > > > > Is it possible to tell couch to behave this way? > > I could not find any setting for this in the config file. > > > > Thanks in advance! > > --089e0115ec14daf30c04f77e80ed--