Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id AE45F1CF17EB for ; Tue, 13 Mar 2012 04:53:08 -0300 (ADT) Received: from mail-pz0-f46.google.com ([209.85.210.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S7MXb-0003aP-20 for pgsql-performance@postgresql.org; Tue, 13 Mar 2012 07:53:08 +0000 Received: by dajr28 with SMTP id r28so464436daj.19 for ; Tue, 13 Mar 2012 00:52:54 -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=60rRi7iGRDkJD0a56sRixWxf0pFY2RRxZE3PxYZWFmU=; b=HPIHKts4XNMZ2x9fNSawrtBspkqAdOa8W4+so9VIphomizfR4pUXHAMzF+s4byOeTQ gQ6TFVV1yAtcLuwfJDHJi4PR/Zvj7uSQHxh+TvlQwpNYQ8TW0McET1f5mNe5AmONWvrK jTE8+QupoutGJHreL/DID51XG/aI5VD8y4ey2qxctnt94g0Xoe5hlaxMcq44W8qnhjY7 KZs626xKixEog3ilSOzmsSJJ8GQ1fNpvR4hasmAT63k+bCt0F48kunKykL16FWzMMRBf klXVeVhmwPzZc9QGJfjdGpjSvLdzk8r6VkuQC2Gt45ax6lYAZMNh1XLRHt23kKMb8QKC jj6g== Received: by 10.68.242.166 with SMTP id wr6mr10042844pbc.99.1331625174130; Tue, 13 Mar 2012 00:52:54 -0700 (PDT) Received: from [192.168.1.46] ([116.226.41.123]) by mx.google.com with ESMTPS id 2sm341101pbw.57.2012.03.13.00.52.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Mar 2012 00:52:53 -0700 (PDT) Message-ID: <4F5EFCCF.10107@gmail.com> Date: Tue, 13 Mar 2012 15:52:47 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 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/104 X-Sequence-Number: 46554 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 >