Self-increasing ID distribution method and device, electronic equipment and readable storage medium
The embodiment of the invention provides a self-increasing ID distribution method and device, electronic equipment and a readable storage medium, and relates to the technical field of databases. The method comprises the steps of obtaining a first transaction to be submitted, wherein the first transa...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention provides a self-increasing ID distribution method and device, electronic equipment and a readable storage medium, and relates to the technical field of databases. The method comprises the steps of obtaining a first transaction to be submitted, wherein the first transaction aims at at least one target data table; the data record in each data row of the target data table has the first self-increasing ID; the first transaction comprises at least one to-be-inserted data record corresponding to each target data table; and in response to pre-submission of the first transaction to the corresponding second node, for each target data table, sending an application request to a third node corresponding to the target data table, the application request being used for requesting to allocate the number of first self-increasing IDs to the target data table. According to the embodiment of the invention, the first self-increasing ID is allocated for all the to-be-inserted data records of the ta |
---|