[Bug 2553] [F+O] Stability of collection()

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2553





------- Additional Comments From mike@saxonica.com  2005-12-03 17:24 -------
David's comment that the same arguments apply to document()/doc() is true in
principle: there are use cases where you read a large number of documents using
doc(), and where you only access each document once, and where the "stability"
provision therefore gives you a lot of pain and no gain by locking all the
documents into memory.

Perhaps we can solve this as follows:

(a) we specify that doc() and collection() are stable by default (in SQL terms,
the default isolation level is SERIALIZABLE)
(b) we specify that implementations may provide an option to select a different
isolation level
(c) we specify that a call on doc() or collection() may fail if the
implementation cannot provide access to the requested resource with the
requested isolation level

This is anticipating a more comprehensive treatment of transactions and
isolation levels in a future version of the spec.

Michael Kay

Received on Saturday, 3 December 2005 17:25:31 UTC