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 B739BB190 for ; Wed, 4 Jan 2012 23:07:45 +0000 (UTC) Received: (qmail 74345 invoked by uid 500); 4 Jan 2012 23:07:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 74320 invoked by uid 500); 4 Jan 2012 23:07:43 -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 74300 invoked by uid 99); 4 Jan 2012 23:07:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 23:07:43 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.18.84.113] (HELO mailgate-internal3.sri.com) (128.18.84.113) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Jan 2012 23:07:34 +0000 Received: from brightmail-internal1.sri.com (128.18.84.121) by mailgate-internal3.sri.com with SMTP; 4 Jan 2012 23:07:13 -0000 X-AuditID: 80125479-b7bb5ae000000ccb-b5-4f04dba1e36e Received: from mars.esd.sri.com (mars.esd.sri.com [128.18.26.200]) by brightmail-internal1.sri.com (Symantec Brightmail Gateway) with SMTP id 3A.AF.03275.1ABD40F4; Wed, 4 Jan 2012 15:07:13 -0800 (PST) MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_i+1wccqF7h16sVtFsmIGkw)" Received: from [192.12.16.233] by mars.esd.sri.com (Sun Java(tm) System Messaging Server 6.3-8.05 (built Sep 1 2009; 64bit)) with ESMTPSA id <0LXA000XWQVXZA20@mars.esd.sri.com> for user@couchdb.apache.org; Wed, 04 Jan 2012 15:07:09 -0800 (PST) From: Jim Klo Subject: Re: View generation order. Date: Wed, 04 Jan 2012 15:07:12 -0800 In-reply-to: To: user@couchdb.apache.org References: Message-id: <14457E59-A9FC-457B-BE11-EBC431E4D7C5@sri.com> X-Mailer: Apple Mail (2.1084) X-Brightmail-Tracker: AAAAAA== --Boundary_(ID_i+1wccqF7h16sVtFsmIGkw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT What we've done, which may not be ideal... but in our app, all view queries are stale (will be migrating to stale and update once we upgrade couchdb), but then have an external job that triggers the indexing by querying for 1 element in a view in each design doc. You could follow a similar approach and prioritize which indexes start indexing first if you have resource limitations, otherwise, I think indexing multiple design docs is concurrent. Jim Klo Senior Software Engineer Center for Software Engineering SRI International On Jan 4, 2012, at 2:50 PM, Martin Hewitt wrote: > Hi all, > > I was wondering if it's possible to set or influence where the view generation process starts? > > We have a large DB which we let clients build views on. We then map those views to JS map functions and create the relevant design doc. The only problem we have is that the database is huge and the view generations take a while. This means the oldest data is processed first, which doesn't suit us as, in the short term, the most useful values are those which are more recent, i.e. the entries that were made a minute ago not a year ago. > > Any help gratefully appreciated. > > Martin --Boundary_(ID_i+1wccqF7h16sVtFsmIGkw)--