From: Jan Wieck <JanWieck@Yahoo.com>
To: Timur Irmatov <itvthor@sdf.lonestar.org>
Cc: pgsql-general@postgresql.org
Subject: Re: transactions
Date: Wed, 11 Sep 2002 14:58:04 -0400
Message-ID: <3D7F923C.9D1CED8C@Yahoo.com> (raw)
References: <17021432388.20020911160825@sdf.lonestar.org>
Timur Irmatov wrote:
>
> Hello!
>
> I develop a web-site with cgi-s written in perl, which access
> PostgreSQL database..
>
> In my scripts I have a sequence of selects.
>
> Is it faster to wrap them all in transaction ?
Not only is it faster, it gives you the advantage of MVCC too,
presenting you a snapshot of the database. So no concurrent
UPDATES done by someone else are visible to you.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being
right. #
# Let's break this rule - forgive
me. #
#==================================================
JanWieck@Yahoo.com #
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: JanWieck@Yahoo.com, itvthor@sdf.lonestar.org
Subject: Re: transactions
In-Reply-To: <3D7F923C.9D1CED8C@Yahoo.com>
References: <17021432388.20020911160825@sdf.lonestar.org> <3D7F923C.9D1CED8C@Yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox