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 4D1DF11F1C for ; Fri, 18 Apr 2014 19:59:31 +0000 (UTC) Received: (qmail 6469 invoked by uid 500); 18 Apr 2014 19:59:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6427 invoked by uid 500); 18 Apr 2014 19:59:29 -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 Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 79468 invoked by uid 99); 18 Apr 2014 19:46:45 -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 (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Em2BheMRNny+dvk5C0KS6HZ161D388grlp4r2u70Wfg=; b=OIB2pVgTHrqY02QPu2YlzYDKBdSR4SshHJ6/XDEOkWT2/CKNHQoSfmjQb4cWLwdd12 RFtJsQtqYkIEuMiyJkFudxR1pE2uxgmL7fef2uItsa9AiqzukatovUELEobHxqef1l0K EOnHBt/mvWrfj/KOITIPyVLLB+2e4py4fv+lhxiIjR9nChww4b9QbmJeOZ0ex7uG+BDQ SacMIObJZvwLAv4EFOYd9neQtddEobG1gDs8Ad5/6WQeIshaE9dL15+dUqoP4B50PlKy 9+N3EsJfTjGpQkhKvj0oG+Xg5keDzsT33lbbcR8iv43hPwzpMAP9h1IShl5Ij5ty1R6U HKOA== X-Gm-Message-State: ALoCoQlEFBBUKCm98McKBH4iZS6lWfnLFoJwzsqEU3fUBdqIRwmGvsQTau/qatUFo2Uu2C7JJ5av MIME-Version: 1.0 X-Received: by 10.182.42.228 with SMTP id r4mr18758558obl.20.1397850376827; Fri, 18 Apr 2014 12:46:16 -0700 (PDT) Date: Fri, 18 Apr 2014 21:46:16 +0200 Message-ID: Subject: Howto delay view requests until indexes are rebuilt From: Alex Schenkman To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a11c30b0e290d2c04f7566780 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c30b0e290d2c04f7566780 Content-Type: text/plain; charset=UTF-8 Hi list, According to what I see in the logs and the results I get, the following 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 is happening, but in my use case, I woud prefer couch delaying the answer to the view request, until the index is rebuilt. 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! --001a11c30b0e290d2c04f7566780--