Re: Linear slow-down while inserting into a table with an ON INSERT trigger ?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Linear slow-down while inserting into a table with an ON INSERT trigger ?
Дата
Msg-id a1aa5745d309e58dab73c1a1ee10cff1ae52b57c.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Linear slow-down while inserting into a table with an ON INSERT trigger ?  (Tobias Gierke <tobias.gierke@code-sourcery.de>)
Список pgsql-performance
On Sun, 2021-07-18 at 09:36 +0200, Tobias Gierke wrote:
> Thank you for the detailed explanation ! Just one more question: I've 
> did an experiment and reduced the fillfactor on the table updated by the 
> trigger to 50%, hoping  the HOT feature would kick in and each 
> subsequent INSERT would clean up the "HOT chain" of the previous INSERT 
> ... but execution times did not change at all compared to 100% 
> fillfactor, why is this ? Does the HOT feature only work if a different 
> backend accesses the table concurrently ?

No, but until the transaction is done, the tuples cannot be removed,
no matter if they are HOT or not.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




В списке pgsql-performance по дате отправления:

Предыдущее
От: Tobias Gierke
Дата:
Сообщение: Re: Linear slow-down while inserting into a table with an ON INSERT trigger ?
Следующее
От: Manish Lad
Дата:
Сообщение: Performance benchmark of PG