Realization method and device for mongodb transaction mechanism and storage medium

The invention discloses a realization method and device for a mongodb transaction mechanism and a storage medium. The method comprises the steps that a transaction object is created, and the created transaction object is stored into a designated region; the transaction object is acquired from the de...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LONG PINGBO, XUAN SHANMING
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 realization method and device for a mongodb transaction mechanism and a storage medium. The method comprises the steps that a transaction object is created, and the created transaction object is stored into a designated region; the transaction object is acquired from the designated region, and the transaction object is initialized to obtain preprocessed data; the preprocessed data is executed according to the order of modification, addition and deletion, and whether the preprocessed data is successfully executed is judged; when the preprocessed data is successfully executed, the transaction is ended; and when the preprocessed data is not successfully executed, data with execution failure in the preprocessed data is executed again, and if the data with execution failure still comprises failure data after being executed a preset number of times, transaction roll-back is performed. According to the realization method and device and the storage medium, a self-defined transaction realizat