From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Transaction costs? |
Date: | 2000-10-30 10:32:20 |
Message-ID: | 3.0.5.32.20001030213220.02934970@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2000-10-30 15:32:21 | Re: Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?) |
Previous Message | Peter Mount | 2000-10-30 09:42:20 | Current CVS broken? |