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 7148A6C92 for ; Thu, 16 Jun 2011 05:40:31 +0000 (UTC) Received: (qmail 7168 invoked by uid 500); 16 Jun 2011 05:40:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 7128 invoked by uid 500); 16 Jun 2011 05:40: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 Received: (qmail 7111 invoked by uid 99); 16 Jun 2011 05:40:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 05:40:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcello.nuccio@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 05:40:21 +0000 Received: by vxk12 with SMTP id 12so1298584vxk.11 for ; Wed, 15 Jun 2011 22:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=XaYZD6VPkmxRzQEGmBbOsdN1KwiDDmCrvCBB7IVl5p8=; b=aaimpXDRd6pFMlGqNh/KQcTrMR9oHNwkUpW7UQBGih5KBiagsUqcFntZVsg1SDaBEw Uby04VEDLve2VL2TNVUr/0EyACv0xDpTgsIc6oQy3sDA/opiLYmpH5zUqpXeIQ6SIiuX wJjPV00His7xfy+84kdlfLuwDtZ0bDQ3Q/4YA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TRChcXwmhCn7Bkzp9QbefHYhntmBL0+0qZH4hOvPo4HD2vEesh8HMUO5i8eFd8cTth E4kA48d1AsYQ9LOc0mbGYatlCDmx4zy1uOAlC/cQnCH2Ny2qjAO7rjlbnlxAfSXxQXT9 HUBlAOzgxSIjd36KWkcWy/GoMxMzB2cksvjws= MIME-Version: 1.0 Received: by 10.52.92.132 with SMTP id cm4mr662345vdb.266.1308202800247; Wed, 15 Jun 2011 22:40:00 -0700 (PDT) Received: by 10.52.161.226 with HTTP; Wed, 15 Jun 2011 22:40:00 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Jun 2011 07:40:00 +0200 Message-ID: Subject: Re: view index generation for single document and bulk documents From: Marcello Nuccio To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Yogesh, I cannot answer your questions, but I think you should repeat your tests with CouchDB-1.1 and querying the view with `stale=3Dupdate_after` parameter. Read http://docs.couchbase.org/couchdb-release-1.1/index.html#coudhdb-relea= se-1.1-updateafter for more information. Bye, Marcello 2011/6/16 Yogesh Khambia : > Hi all, > > Currently, I am doing performance tests with database in CouchDB 1.0.1, > where a script is continuously writing single documents to the CouchDB > database. > I had the issue of the user being penalized for reading the view in Couch= DB > database, by updating the view indexes.To improve on the latency for the > view index generation, I wrote a function which generates the view indexe= s > for each new update made to the database. > The latency for view index creation has been improved. However, I read fr= om > the FAQ on the CouchDB wiki that "The reason not to integrate each doc as= it > comes in is that it is horribly inefficient and CouchDB is designed to do > view index updates very fast, so batching is a good idea." > It will be really helpful if somebody can answer me on following: > > - If =A0view index generation for each new single document insert is not = a > good approach? > > - How does the single document insert and bulk document insert affect the > CouchDB view generation, where: > > =A0 1. =A0a daemon script updates view index for each new document insert= . > =A0 2. =A0a daemon script updates view index for bulk document > > Thank you. > > > -- > Best Regards, > Yogesh Khambia > Postgraduate Design Engineer > Mobile: +31 626 217 381 > Email: y.khambia@tue.nl >