Re: Turning off transactions completely. - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Turning off transactions completely.
Date
Msg-id 20020106111035.A4848@svana.org
Whole thread Raw
In response to Turning off transactions completely.  ("Arsalan Zaidi" <azaidi@directi.com>)
Responses Re: Turning off transactions completely.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sat, Jan 05, 2002 at 02:21:44PM +0530, Arsalan Zaidi wrote:
> Hi.
>
> I'm writing a very specialised app which has absolutely NO need for
> transactions. However, I have to milk every drop of performance out of it
> cause I'm performing some fairly complex queries on tens of millions of
> rows.
>
> Is there any way I can completely avoid the overhead of the implicit
> transaction per SQL statement? Is there some switch or some (fairly easy)
> editting that can be done to the code? My transaction log files often reach
> 800 MB in size and I'd like to avoid the overhead if at all possible...

Well, every statement must be within a transaction, so to reduce the number
of transactions start one explicitly and commit when you're done. Then you
only have one transaction for the whole thing.

HTH,

--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

pgsql-general by date:

Previous
From: "Jeffrey W. Baker"
Date:
Subject: Re: PostgreSQL HardWare
Next
From: Tom Lane
Date:
Subject: Re: Turning off transactions completely.