X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 13EAF9DC9ED for ; Tue, 20 Dec 2005 07:40:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57624-06 for ; Tue, 20 Dec 2005 07:40:59 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 34EFA9DC9CB for ; Tue, 20 Dec 2005 07:40:55 -0400 (AST) Received: from p0f.net (p0f.net [193.77.154.190]) by svr4.postgresql.org (Postfix) with ESMTP id 473A65AF0B4 for ; Tue, 20 Dec 2005 11:40:58 +0000 (GMT) Received: from [10.10.190.53] ([193.77.165.58]) (authenticated bits=0) by p0f.net (8.13.3/8.13.3) with ESMTP id jBKBCdIa009017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Dec 2005 12:12:41 +0100 Message-ID: <43A7EDD5.1080400@p0f.net> Date: Tue, 20 Dec 2005 12:41:09 +0100 From: Grega Bremec Organization: P0F User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL Performance List Subject: Re: Read only transactions - Commit or Rollback References: <16F953410A0F1346848DCB476A989CFE01D6AF@swtexchange2.technology.de> In-Reply-To: <16F953410A0F1346848DCB476A989CFE01D6AF@swtexchange2.technology.de> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.713 required=5 tests=[RCVD_IN_NJABL_DUL=1.713] X-Spam-Score: 1.713 X-Spam-Level: * X-Archive-Number: 200512/481 X-Sequence-Number: 16302 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Nörder-Tuitje wrote: |> We have a database containing PostGIS MAP data, it is accessed |> mainly via JDBC. There are multiple simultaneous read-only |> connections taken from the JBoss connection pooling, and there |> usually are no active writers. We use connection.setReadOnly(true). |> |> Now my question is what is best performance-wise, if it does make |> any difference at all: |> |> Having autocommit on or off? (I presume "off") |> |> Using commit or rollback? |> |> Committing / rolling back occasionally (e. G. when returning the |> connection to the pool) or not at all (until the pool closes the |> connection)? |> | afaik, this should be completely neglectable. | | starting a transaction implies write access. if there is none, You do | not need to think about transactions, because there are none. | | postgres needs to schedule the writing transactions with the reading | ones, anyway. | | But I am not that performance profession anyway ;-) Hello, Marcus, Nörder, list. What about isolation? For several dependent calculations, MVCC doesn't happen a bit with autocommit turned on, right? Cheers, - -- ~ Grega Bremec ~ gregab at p0f dot net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDp+2afu4IwuB3+XoRA6j3AJ0Ri0/NrJtHg4xBNcFsVFFW0XvCoQCfereo aX6ThZIlPL0RhETJK9IcqtU= =xalw -----END PGP SIGNATURE-----