Subject | Re: Store procedure hangs clients ?? |
---|---|
Author | p_lerner |
Post date | 2004-01-15T13:40:50Z |
Ok, thanks. I'll see what I can do about generators.
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
> > I'm sorry to take your attention somewhere else but: DO all of usnot
> > agree thaat my original problem with the SP is just commiting
> > transaction ???
> >
> > Somebody please confirm this. For the nature of my application is
> > very easy to verify everything is fine untill some user complainsand
> > confirms everything is wrong, and that's not very nice for them.statemetn as
> >
> >
> > Pablo
> >
>
> The ODBC drive will make atomic transactions for you on each
> log as you disconnect after each statement. Good for website usesince the
> connection is ended after every page is delivered. Not so if youuse it for
> application which runs for some time on an open connection. Youneed to
> start and end your transactions by bracketing the statement youwish to
> aggrgate in said transaction. That's how I understand it anyway.then you
>
> BTW - are you using this SP to create primary key values? If so,
> need to look closely at your transaction isolation at theconnection level.
> You may be causing other users to wait until the person who hitsthis SP
> finally commits or disconnects (same thing as abaove) from the db.generator
>
> This is another argument for not using this method for PKs. Use a
> and create another field for use by the client and his/her need fora
> running sequence of field values.
>
> Alan