Re: update/insert, - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: update/insert,
Date
Msg-id 200607050852.12454.jd@commandprompt.com
Whole thread Raw
In response to Re: update/insert,  ("Mark Woodward" <pgsql@mohawksoft.com>)
List pgsql-hackers
> > Which is faster will probably depends on what is more common in your DB:
> > row already exists or not. If you know that 99% of the time the row
> > will exist, the update will probably be faster because you'll only
> > execute one query 99% of the time.
>
> OK, but the point of the question is that constantly updating a single row
> steadily degrades performance, would delete/insery also do the same?

Yes. Delete still creates a dead row. There are programatic ways around this
but keeping a delete table that can be truncated at intervals.

Joshua D. Drake


>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings


pgsql-hackers by date:

Previous
From: mark@mark.mielke.cc
Date:
Subject: Re: update/insert,
Next
From: Greg Stark
Date:
Subject: Scan Keys