Timestamp generation method and device for multi-version database, equipment and storage medium

The invention discloses a timestamp generation method and device for a multi-version database, equipment and a storage medium. The method comprises the following steps: after a current transaction is started, recording a tuple version and an access type identifier of a target tuple accessed by the c...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CHEN YUN, XIANG YIWEN, GONG XUEQING, LIU WANGGEN, XIE YUBO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a timestamp generation method and device for a multi-version database, equipment and a storage medium. The method comprises the following steps: after a current transaction is started, recording a tuple version and an access type identifier of a target tuple accessed by the current transaction into a read-write set based on an access operation of the current transaction in a read stage of the current transaction; entering a writing stage of the current transaction after waiting for the current transaction to complete all access operations and the creation transactions of all tuple versions in the read-write set are submitted; in the writing stage of the current transaction, obtaining the maximum value of the start timestamps of all tuple versions in the read-write set, and adding one to the maximum value to determine a submission timestamp of the current transaction; the submission timestamp of the current transaction is used for identifying the serialization execution sequence of the