Re: 答复: [PERFORM] Postgresql update op is very very slow
| От | Tom Lane |
|---|---|
| Тема | Re: 答复: [PERFORM] Postgresql update op is very very slow |
| Дата | |
| Msg-id | 16213.1214492661@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | 答复: [PERFORM] Postgresql update op is very very slow ("jay" <jackem.mojx@alibaba-inc.com>) |
| Ответы |
Re: [PERFORM] 答复: [PERFORM] Postgresql update op is very very slow
|
| Список | pgsql-performance |
"jay" <jackem.mojx@alibaba-inc.com> writes:
> I know the problem, because there are about 35 million rows , which
> cost about 12G disk space and checkpoint segments use 64, but update
> operation is in one transaction which lead fast fill up the checkpoint
> segments and lead do checkpoints frequently, but checkpoints will cost lots
> resources, so update operation become slowly and slowly and bgwrite won't
> write because it's not commit yet.
> Create a new table maybe a quick solution, but it's not appropriated in some
> cases.
> If we can do commit very 1000 row per round, it may resolve the
> problem.
No, that's utterly unrelated. Transaction boundaries have nothing to do
with checkpoints.
regards, tom lane
В списке pgsql-performance по дате отправления: