Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1B2CF951F37 for ; Thu, 15 Mar 2012 00:49:35 -0300 (ADT) Received: from mail-pz0-f47.google.com ([209.85.210.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S81gz-0007eQ-7r for pgsql-performance@postgresql.org; Thu, 15 Mar 2012 03:49:34 +0000 Received: by dado14 with SMTP id o14so4309771dad.34 for ; Wed, 14 Mar 2012 20:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=b3t1u1H6xuRul8lYXqYHOcA+MsC88x3KbVDOoWJ4vfY=; b=fjHvdxZysuxubSyuuxKo6+9EgAjqPRxx7PyFkrPV6JpJFuHijRrck1bcmlPmM4HzRe g292TFldMBQf37PEf7DRkbMqrkNHLxO2qdJX9GroGumyRYI0HF3Xcrg8YdL2ScjtsU8B tH8jEsE25wkre4+yeUnveON0VMM8g0BVgQoz4jzidwUIWAmY3EGPFuPe/Luim0+l79Bq hAp2CDXGxSUgkFJbABvVnr7/W9dBjKSRu+owD8AEMby2GR34aeivhXc1JpmhxDypgCbC Vb91mkHT149Vldzdbi8L0vrtU1abGfnpeAgZGmHS7Ij48TVMiP9gswSh4RJg/GgB1f7N GSZg== Received: by 10.68.136.228 with SMTP id qd4mr1327919pbb.141.1331783360341; Wed, 14 Mar 2012 20:49:20 -0700 (PDT) Received: from [192.168.1.46] ([116.226.41.123]) by mx.google.com with ESMTPS id s10sm898553pbq.13.2012.03.14.20.49.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Mar 2012 20:49:19 -0700 (PDT) Message-ID: <4F6166B9.70609@gmail.com> Date: Thu, 15 Mar 2012 11:49:13 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Gin index insert performance issue References: <4F5EDE67.3040908@gmail.com> <4F5EE965.8010706@krogh.cc> In-Reply-To: <4F5EE965.8010706@krogh.cc> Content-Type: text/plain; charset=gb18030; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/105 X-Sequence-Number: 46555 I disabled fastupdate on the gin index. looks it solved my problem, at least for now. Thanks a lot for your help Jesper! ------------------------------ Thanks for the reply. Your index is much larger than mine..so I see some light. :) ÓÚ 2012/3/13 14:29, Jesper Krogh дµÀ: > Our solution is to turn "fastupdate" off for our gin-indices. > http://www.postgresql.org/docs/9.0/static/sql-createindex.html > Can also be set with ALTER TABLE ALTER INDEX I will check and try that. > > I would have preferred a "backend local" batch-update process so it > could batch up everything from its own transaction instead of interferring > with other transactions. have you tested if there is any performance boot for backend batch-update comparing the real time updates? > > I would say, that we came from Xapian and the PG-index is a way better > fit for our application. The benefits of having the fts index next to > all the > other data saves a significant amount of development time in the > application > both in terms of development and maintaince. (simpler, easier and more > manageble). Yes, that's why I'm still looking for the improvment inside pg. This is really a big dev/maint saver. > > -- > Jesper >