Subject | Re: [firebird-support] result set not updated immediately after post |
---|---|
Author | Ann W. Harrison |
Post date | 2005-10-25T20:40:51Z |
Olivier Mascia wrote:
data consistency and like getting deadlock errors and waiting.
request in different transactions and get different results.
going on?"
Here's what's been said...
classic? If so, it's possible that the process serving
the connection for thread 2 hasn't picked up the new state
of transactions. Now how exactly is that supposed to work...
Hmm... verify that the connections are classic, and I'll
go dig through the interprocess communication around
committed transaction states - sounds like a possible
bug. If the connections are SuperServer, I'll look
elsewhere. But I still think that grown-up programmers
use repeatable read transactions.
Cheers,
Ann
>Grumph. It's a great combination if you don't care about
> So ReadCommitted makes use of isc_tpb_read_committed and
> isc_tpb_no_rec_version, which I believe is perfectly correct.
data consistency and like getting deadlock errors and waiting.
>There's no reason to re-prepare requests. You can use a prepared
> Does your 'thread2' execute a previously prepared SELECT or do you
> really re-prepare/execute a new SELECT after 'thread1' signaled the
> commit done ?
request in different transactions and get different results.
>Shouldn't matter. Which of course raises the question, "what is
> Does thread1 really Commit or CommitRetain ?
going on?"
Here's what's been said...
> I've got a multi threaded application that does the followingEach thread has its own connection. Are the connections
> (simplistically speaking):
>
> thread 1: insert a record ("RECORD1"), commit, signal wake
> for thread 2
> thread 2: select * from table
classic? If so, it's possible that the process serving
the connection for thread 2 hasn't picked up the new state
of transactions. Now how exactly is that supposed to work...
Hmm... verify that the connections are classic, and I'll
go dig through the interprocess communication around
committed transaction states - sounds like a possible
bug. If the connections are SuperServer, I'll look
elsewhere. But I still think that grown-up programmers
use repeatable read transactions.
Cheers,
Ann