Unix Technical Forum

Heavy write activity on first vacuum of fresh TOAST data

This is a discussion on Heavy write activity on first vacuum of fresh TOAST data within the Pgsql Performance forums, part of the PostgreSQL category; --> On Fri, 14 Dec 2007, Tom Lane wrote: > Matthew <matthew@flymine.org> writes: > > Interesting thread. Now, I know ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 04-19-2008, 11:43 AM
Matthew
 
Posts: n/a
Default Re: Heavy write activity on first vacuum of fresh TOASTa

On Fri, 14 Dec 2007, Tom Lane wrote:
> Matthew <matthew@flymine.org> writes:
> > Interesting thread. Now, I know absolutely nothing about how the data is
> > stored, but it strikes me as being non-optimal that every single block on
> > the disc needs to be written again just to update some hint bits. Could
> > those bits be taken out into a separate bitmap stored somewhere else?

>
> You are trying to optimize the wrong thing. Making vacuum cheaper at
> the cost of making every tuple lookup more expensive is not going to
> be a win.


True, although it depends how much data there actually is. If it's one bit
per page, then you could possibly rely on that data staying in the cache
enough for it to stop being a performance hit. If it's much more data than
that, then yes it's silly, and I should be embarrassed at having made the
suggestion. No point making each random tuple lookup into two disc
accesses instead of one.

Matthew

--
It is better to keep your mouth closed and let people think you are a fool
than to open it and remove all doubt. -- Mark Twain

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com