Book Contents

Book Index

Next Topic

Home

Snapshot Isolation

Runs a SELECT query in snapshot isolation mode, which queries all data in the database up to and including the most recently closed (advanced) epoch without holding a lock or blocking write operations. This provides a substantial query performance improvement over the default SERIALIZABLE Isolation level.

Syntax

AT EPOCH LATEST SELECT...

Semantics

To be precise, a query using snapshot isolation is actually an historical query. The syntax AT EPOCH LATEST is equivalent to the syntax AT TIME 'timestamp' where timestamp is known to be within the most recently closed epoch.

Notes