Re: Performance Problems

Поиск
Список
Период
Сортировка
От Alex Paulusberger
Тема Re: Performance Problems
Дата
Msg-id 3D6644E2.2030707@meta-bit.com
обсуждение исходный текст
Ответ на Performance Problems  (Alex Paulusberger <alexp@meta-bit.com>)
Список pgsql-admin
Tom,
thanks. I do use DELETE FROM since truncate is not an option in
trnansaction blocks
and within DBI , autocommit has to be turned off when connecting to the DB.

But maybe you are right, and the overhead not being able to truncate
tables is bigger than
not using transaction blocks.

Regards
Alex

Tom Lane wrote:

>Another thought...
>
>Alex Paulusberger <alexp@meta-bit.com> writes:
>
>>The whole process loops 4,500 times.
>>For every loop
>>- a temp table is cleared
>>
>
>How exactly are you clearing the temp table?  DELETE FROM isn't a good
>plan because you'll still have dead tuples in there.  You could do a
>DELETE FROM and then VACUUM, but I'd suggest TRUNCATE instead.
>
>            regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo@postgresql.org so that your
>message can get through to the mailing list cleanly
>
>



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Preserving datatypes in dblink.
Следующее
От: "Sub Director Sistemas Informaticos"
Дата:
Сообщение: PAM authentication