Re: Performance Improvement by reducing WAL for Update Operation - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Performance Improvement by reducing WAL for Update Operation
Date
Msg-id 20140215154421.GE19470@alap3.anarazel.de
Whole thread Raw
In response to Re: Performance Improvement by reducing WAL for Update Operation  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
On 2014-02-15 21:01:07 +0530, Amit Kapila wrote:
> >More importantly I don't think doing the compression on
> > this level is that interesting. I know Heikki argued for it, but I think
> > extending the bitmap that's computed for HOT to cover all columns and
> > doing this on a column level sounds much more sensible to me.
> 
> Previously we have tried to do at column boundaries, but the main problem
> turned out to be in worst cases where we spend time in extracting values
> from tuples based on column boundaries and later found that data is not
> compressible.

I think that hugely depends on how you implement it. I think you'd need
to have a loop traversing over the both tuples at the same time on the
level of heap_deform_tuple(). If you'd use the result to get rid of
HeapSatisfiesHOTandKeyUpdate() at the same time I am pretty sure you
wouldn't see very high overhead.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Performance Improvement by reducing WAL for Update Operation
Next
From: Peter Eisentraut
Date:
Subject: Re: Create function prototype as part of PG_FUNCTION_INFO_V1