pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Zhidian Du <duzhidian@hotmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Transaction including two web page + timer
Date: Sat, 9 Nov 2002 09:59:04 -0600
Message-ID: <20021109155904.GB18883@wolff.to> (raw)
In-Reply-To: <F102vMPTArnAFfEgWmf000000cc@hotmail.com>
References: <F102vMPTArnAFfEgWmf000000cc@hotmail.com>

On Sat, Nov 09, 2002 at 00:04:26 -0700,
  Zhidian Du <duzhidian@hotmail.com> wrote:
> 
> I have a question of, when users input some contents in the second page, 
> then the contents in first and second pages are inserted into tables;  
> Otherwise, rollback.
> 
> I want to use transction to handle it.
> 
> But when users input the contents in first page, how do I know users have 
> left( My program will roolback ) or want to continue input sone contents in 
> the second page (comit)?  Usig timer, for example? or some other better 
> idea.

My suggestion would be not to start entering either page until the application
has all of the data for both pages. Holding transactions open for long
periods of time is not a good idea.



view thread (9+ messages)  latest in thread

Message-ID: <20021109155904.GB18883@wolff.to>
Permalink:  ../20021109155904.GB18883@wolff.to/
Also on:    postgresql.org/message-id/20021109155904.GB18883@wolff.to

 · 

reply

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-php@postgresql.org
  Cc: bruno@wolff.to, duzhidian@hotmail.com
  Subject: Re: Transaction including two web page + timer
  In-Reply-To: <20021109155904.GB18883@wolff.to>
  References: <F102vMPTArnAFfEgWmf000000cc@hotmail.com> <20021109155904.GB18883@wolff.to>

* 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