A method and apparatus for reducing the number of snapshots in use within a database is provided. A transaction that accesses one or more data items in a database is assigned to a snapshot of the database when the transaction completes execution. At that time, it is determined whether a first snapshot includes any transactions that updated the one or more data items. If the first snapshot includes any transactions that updated the one or more data items, then the transaction is assigned to a different snapshot that includes the first snapshot. If the first snapshot does not include any transactions that updated the one or more data items, then the transaction is assigned to the first snapshot. This technique allows multiple transactions to the same snapshot, consequently reducing the actual number of snapshots of the database.

Un metodo e un apparecchio per la riduzione del numero di fotografie istantanee in uso all'interno di una base di dati è fornito. Una transazione che accede ad uno o più elementi dei dati in una base di dati è assegnata ad una fotografia istantanea della base di dati quando la transazione completa l'esecuzione. A quel tempo, è determinato se una prima fotografia istantanea includa qualunque transazioni che hanno aggiornato gli uno o più elementi dei dati. Se la prima fotografia istantanea include qualunque transazioni che hanno aggiornato gli uno o più elementi dei dati, allora la transazione è assegnata ad una fotografia istantanea differente che include la prima fotografia istantanea. Se la prima fotografia istantanea non include alcune transazioni che aggiornino gli uno o più elementi dei dati, allora la transazione è assegnata alla prima fotografia istantanea. Questa tecnica permette le transazioni multiple alla stessa fotografia istantanea, conseguentemente riducente il numero reale di fotografie istantanee della base di dati.

 
Web www.patentalert.com

< (none)

< Queuing system using a relational database

> Method and apparatus for analyzing data

> (none)

~ 00002