Transaction costs?

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Transaction costs?
Дата
Msg-id 3.0.5.32.20001030213220.02934970@mail.rhyme.com.au
обсуждение исходный текст
Ответы Re: Transaction costs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Just wondering what the cost of begin/end transaction is.

This is for pg_dump which, when restoring BLOBs, inserts multiple rows into
a temporary xref table. The sequence of events is:

Conn1: Begin
Conn1: lo_create/lo_close/lo_write.../lo_close
Conn2: Insert into xref table (which does an implicit begin/end, I think).
Conn1: Commit;

Would I get substantially better performance by doing a begin/end every
10/100/1000 rows in each connection, or is the transaction overhead low? Or
is this something I just need to test?

[eg. in Dec/RDB TX begin/end is expensive, but writing more than 1000 rows
in a TX can also be costly, so a compromise is useful]

----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


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

Предыдущее
От: Peter Mount
Дата:
Сообщение: Current CVS broken?
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)