From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Arsalan Zaidi <azaidi(at)directi(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Turning off transactions completely. |
Date: | 2002-01-06 00:10:35 |
Message-ID: | 20020106111035.A4848@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-01-06 00:32:17 | Re: Turning off transactions completely. |
Previous Message | Jeffrey W. Baker | 2002-01-05 23:47:57 | Re: PostgreSQL HardWare |