pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: Patches <pgsql-patches@postgresql.org>
Subject: Re: GIN improvements
Date: Fri, 06 Jun 2008 17:02:23 +0300
Message-ID: <4849436F.30703@enterprisedb.com> (raw)
In-Reply-To: <4849418C.6080909@sigaev.ru>
References: <483FD205.4090904@sigaev.ru>
	<4849418C.6080909@sigaev.ru>

Teodor Sigaev wrote:
> 
>> 2) fast insert into GIN
> New version:
> http://www.sigaev.ru/misc/fast_insert_gin-0.6.gz
> 
> Changes:
> - added option FASTUPDATE=(1|t|true|on|enable|0|f|false|disable) for
>   CREATE/ALTER command for GIN indexes

I think we should try to make it automatic. I'm not sure how.

How about having a constant sized "fastupdate" buffer, of say 100 rows 
or a fixed number of pages, and when that becomes full, the next 
inserter will have to pay the price of updating the index and flushing 
the buffer. To keep that overhead out of the main codepath, we could 
make autovacuum to flush the buffers periodically.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (74+ messages)  latest in thread

Message-ID: <4849436F.30703@enterprisedb.com>
Permalink:  ../4849436F.30703@enterprisedb.com/
Also on:    postgresql.org/message-id/4849436F.30703@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: heikki@enterprisedb.com, teodor@sigaev.ru
  Subject: Re: GIN improvements
  In-Reply-To: <4849436F.30703@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox