Re: Fast insertion indexes: why no developments - Mailing list pgsql-hackers

From Claudio Freire
Subject Re: Fast insertion indexes: why no developments
Date
Msg-id CAGTBQpaULBFRM-jNJBSw2s4R18jwjeOK--LKV8HDt_EdBrHDyA@mail.gmail.com
Whole thread
In response to Re: Fast insertion indexes: why no developments  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers

On Tue, Oct 29, 2013 at 1:10 PM, Peter Geoghegan <pg@heroku.com> wrote:
On Tue, Oct 29, 2013 at 7:53 AM, Leonardo Francalanci <m_lists@yahoo.it> wrote:
> I don't see much interest in insert-efficient indexes.

Presumably someone will get around to implementing a btree index
insertion buffer one day. I think that would be a particularly
compelling optimization for us, because we could avoid ever inserting
index tuples that are already dead when the deferred insertion
actually occurs.


Well, that should be relatively easy the way web mining does it (with inverted indexes).

Have a small (presumably RAM-fitting) staging index where inserts take place, and regularly dump it into the "master index", the rationale being that by the time you dump it, it'll be more efficient to do many inserts at once for one, and there will be lots of dead tuples you don't even have to consider for two.

And when I say relatively easy, I mean it in the sense that it only needs careful juggling of existing data structures.

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Fast insertion indexes: why no developments
Next
From: Merlin Moncure
Date:
Subject: Re: Fast insertion indexes: why no developments