Re: Insertions slower than Updates?

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: Insertions slower than Updates?
Дата
Msg-id
4F4246E702000025000458F7@gw.wicourts.gov
Ответ на
Список
Дерево обсуждения
Insertions slower than Updates? Ofer Israeli <oferi@checkpoint.com>
Re: Insertions slower than Updates? Ofer Israeli <oferi@checkpoint.com>
Re: Insertions slower than Updates? "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Insertions slower than Updates? Ofer Israeli <oferi@checkpoint.com>
Re: Insertions slower than Updates? "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Insertions slower than Updates? Ofer Israeli <oferi@checkpoint.com>
Re: Insertions slower than Updates? Steve Horn <steve@stevehorn.cc>
Ofer Israeli  wrote:
 
> INSERT should be cheaper than UPDATE due to only dealing with one 
> record instead of two.
 
... unless the UPDATE is a HOT update, in which case the indexes
don't need to be touched.
 
> Anyone have any ideas on why the empty db is giving worse
> results??
 
Besides the HOT updates being fast, there is the issue of having
space already allocated and ready for the database to use, rather
than needing to make calls to the OS to create and extend files as
space is needed.
 
-Kevin
В списке pgsql-performance по дате отправления
От: Ofer Israeli
Дата:
От: Ofer Israeli
Дата:
FAQ