Re: how to build a database from scratch
Date: Fri, 8 Dec 2006 21:49:02 +0200
Message-ID: <Pine.SOL.4.62.0612082108040.11969_at_kruuna.helsinki.fi>
On 2006-12-08, vc wrote:
> I think that it is pretty obvious that global lock acquisition
> ordering is hardly practically possible because the transaction
> read/write sets are not generally speaking known beforehand.
True. However, there are some applications where you can count on such things. One example would be a remote smartcard transaction, because you can guarantee referential integrity between any set of permanent identifiers stored on the card by just assigning the identifiers yourself and performing initial cryptographic authentication over the whole set; search by the user is generally limited to lookup on one of the keys or inputing checksum protected account numbers which are only used for blind summation. None of the typical user requests calls for anything but a singleton lookup and/or (logical) update on a set of keys.
> Also, are not you confusing global lock ordering with the wait-for
> graph deadlock avoidance technique?
-- Sampo Syreeni, aka decoy - mailto:decoy_at_iki.fi, tel:+358-50-5756111 student/math+cs/helsinki university, http://www.iki.fi/~decoy/front openpgp: 050985C2/025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2Received on Fri Dec 08 2006 - 20:49:02 CET