Re: SubtransControlLock and performance problems

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SubtransControlLock and performance problems
Дата
Msg-id 20200219152353.GA2663@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: SubtransControlLock and performance problems  (Lars Aksel Opsahl <Lars.Opsahl@nibio.no>)
Ответы Re: SubtransControlLock and performance problems  (Lars Aksel Opsahl <Lars.Opsahl@nibio.no>)
Список pgsql-performance
On 2020-Feb-19, Lars Aksel Opsahl wrote:

> With the values above I did see same performance problems and we ended
> with a lot of subtransControlLock.
> 
> So I started to change the code based on your feedbacks.
> 
> - What seems to work very good in combination with a catch exception
> and retry pattern is to insert the data in to separate table for each
> job. (I the current testcase we reduced the number of
> subtransControlLock from many hundreds to almost none.)

I think at this point your only recourse is to start taking profiles to
see where the time is going.  Without that, you're just flying blind and
whatever you do will not necessarily move your needle at all.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: tablespace to benefit from ssd ?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: How to avoid UPDATE performance degradation in a transaction