Subject | Re: [firebird-php] Win2003 Vs Win2k performance?? |
---|---|
Author | Milan Babuskov |
Post date | 2004-02-26T11:09:26Z |
Thomas Woinke wrote:
It doesn't work that way. If you insert something, it exists inside your
transaction, so if you do a select, you WILL see those records. Try it
and see.
--
Milan Babuskov
http://fbexport.sourceforge.net
> Otherwise, you could run into situations, where you insert stuffAre you sure about this?
> somewhere at the beginning, and later in the script select it again, but
> getting "old" data, because you are still in the same transaction, using
> the snapshot from before your insert.
It doesn't work that way. If you insert something, it exists inside your
transaction, so if you do a select, you WILL see those records. Try it
and see.
> And regarding persistent connections: don't!I have seen this problem too. Using connect() is better.
> From my experience, I only can discourage from using those.
> PHP seems to be not very good at reusing existing connections, so it
> will open a lot of new ones, while not closing old ones.
--
Milan Babuskov
http://fbexport.sourceforge.net