Question about SERIALIZE transaction isolation



Hi,

i'm nearly ready for my first release of my new concurrent, multi-
threaded, ACID transactional, logical idempotent logging, lock-free
database engine (key/value storage).

OK, enough buzzwords for today :)

Some of you were kind enough to help me a couple of times with my
questions. This one is about the behaviour of a read-only transaction
in the SERIALIZE isolation level.

TXN A:
BEGIN
INSERT (a, b)

TXN B:
BEGIN
FIND (a)

Does the lookup of an un-committed item return KEY_NOT_FOUND or does
it create a transaction conflict?

Some background: In my Database all transaction conflicts are
discovered in memory, without accessing the buffers. My Transactions
do not lock each other or keep locks during their life time.
Currently, if there's a conflict, my insert/erase functions return an
error (TXN_CONFLICT).

I did some research about the SERIALIZE isolation level but found
documentation which mentions that a lookup would cause a wait (http://
www.redhat.com/docs/manuals/database/RHDB-2.0-Manual/admin_user/xact-serializable.html).
But i think that it's annoying when most range queries fail because of
conflicts. I think it's better if the uncommitted key is ignored (only
for lookups).

Thanks
Christoph

PS: you see that i'm wearing a developer hat, i'm not a DB admin or
SQL guru...
.



Relevant Pages

  • Re: Relationships, Lookups and Access 2007 tables
    ... commandments/lookup bit, ... Are you saying that I can have a form for my transaction table ... use of lookup columns/fields which the 10 commandments warn against). ... letting access create a field in the Transaction table which looks up ...
    (comp.databases.ms-access)
  • Re: Relationships, Lookups and Access 2007 tables
    ... I'm writing a very small stock database. ... When a user enters an 'IN' transaction (directly via the Transaction ... and the Product which is chosen via the lookup to the Products table. ... The ProjectST field would remain ...
    (comp.databases.ms-access)
  • Re: Pervasive doesnt allow any more incoming connections
    ... I can shed some light on some of the log entries but do not believe ... So the database engine logs that another process has the file locked. ... This would be the transaction durabitlity log file that is corrupt. ... >Pervasive connections, while the existing connections can still remain ...
    (comp.databases.btrieve)
  • Relationships, Lookups and Access 2007 tables
    ... I'm writing a very small stock database. ... When a user enters an 'IN' transaction (directly via the Transaction ... and the Product which is chosen via the lookup to the Products table. ... The ProjectST field would remain ...
    (comp.databases.ms-access)
  • Re: Relationships, Lookups and Access 2007 tables
    ... out (Stocks sold to by Project). ... Transaction table: ProjectST, ProjectBF (Project Sold To, Project ... Bought For) and Products. ... and the Product which is chosen via the lookup to the Products table. ...
    (comp.databases.ms-access)