Data conflict detection method and device, electronic equipment and storage medium
By using triggers to update the data modification time and perform data conflict detection in a remote multi-active architecture, the problem of data synchronization delay and low throughput caused by large data transmission is solved, and more efficient data synchronization is achieved.
Patent Information
- Application Number
- CN202411788378.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-28
AI Technical Summary
Under the off-site multi-active architecture, data conflict detection requires a large amount of data transmission, resulting in an increase in data synchronization delay and low data synchronization throughput.
By setting the trigger update data modification time in the first data table and performing data conflict detection using the first time before the update, all data related to the modification data will be avoided to be transmitted to the data center to be synchronized.
It reduces the amount of data transmission during data conflict detection, shortens data synchronization delay, improves data synchronization throughput, and solves the problem caused by the large amount of data transmission during data conflict detection.
Smart Images

Figure CN119728716A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data conflict detection method, device, electronic device and storage medium. Background Art
[0002] As technologies such as social networks and cloud computing continue to integrate into people's lives, and as existing computing power, storage space, and network bandwidth develop rapidly, the data accumulated by people continues to grow and accumulate in many fields such as the Internet, communications, finance, and commerce. In various fields, various types of data need to be processed, such as e-commerce transaction data, and the requirements for data consistency assurance in different data centers are getting higher and higher. Existing technologies usually use a multi-active architecture to ensure data consistency between different data centers. The multi-active architecture is a distributed system architecture that aims to deploy independent data centers in different geographical locations to ensure that the system can still provide services normally when a catastrophic failure occurs at a certain location, thereby achieving high availability and disaster recovery capabilities.
[0003] However, when performing cross-center data conflict detection in a multi-site active-active architecture, all data related to the modified data is usually transmitted to the data center to be synchronized, and then data comparison is performed. The data comparison result is used to determine whether to synchronize the data. However, when there are many data modification requests and there is network delay or bandwidth limitation between different data centers, the data conflict detection requires the transmission of a large amount of data, which will increase the data synchronization delay and reduce the data synchronization throughput. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a data conflict detection method, device, electronic device and storage medium to solve the problem of large data synchronization delay and low data synchronization throughput caused by the large amount of data transmitted during data conflict detection.
[0005] In a first aspect, an embodiment of the present application provides a data conflict detection method, comprising:
[0006] In response to a data modification instruction for a target data item in a first data table, a trigger for updating a data modification time is set for a first time record field in the first data table, wherein the first time record field for recording the data modification time is set in the first data table;
[0007] Using a trigger to update the first time corresponding to the target data item in the first time record field;
[0008] The second data table is subjected to data conflict detection at the first time before the update to obtain a data conflict detection result, wherein the first data table and the second data table are the same data table stored in two different data centers.
[0009] Optionally, before setting a trigger for updating the data modification time for the first time record field in the first data table, the method further includes: adding a first time record field in the first data table.
[0010] Optionally, the second data table is provided with a second time recording field, which is used to record the second time, and the second data table is subjected to data conflict detection using the first time before the update, including: comparing the second time corresponding to the target data item in the second data table with the first time before the update corresponding to the target data item in the first data table, so as to determine whether a data conflict occurs based on the comparison result.
[0011] Optionally, whether a data conflict occurs is determined by the following processing: if the second time is equal to the first time before the update, it is determined that no data conflict occurs; if the second time is not equal to the first time before the update, it is determined that a data conflict occurs.
[0012] Optionally, the method further includes: if it is determined that no data conflict occurs, synchronizing data in the second data table using the value of the modified target data item in the first data table and the updated first time.
[0013] Optionally, data synchronization is performed on the second data table using the modified value of the target data item and the updated first time in the first data table, including: replacing the value of the target data item in the second data table with the modified value of the target data item in the first data table; replacing the second time corresponding to the target data item in the second data table with the updated first time in the first data table.
[0014] Optionally, a trigger is used to update the first time corresponding to the target data item in the first time record field, including: obtaining the current time corresponding to the data modification instruction, and replacing the first time corresponding to the target data item recorded in the first time record field with the current time.
[0015] In a second aspect, an embodiment of the present application further provides a data conflict detection device, the device comprising:
[0016] a trigger setting module, configured to set a trigger for updating a data modification time for a first time record field in the first data table in response to a data modification instruction for a target data item in the first data table, wherein the first time record field for recording the data modification time is set in the first data table;
[0017] A time update module, used to update the first time corresponding to the target data item in the first time record field using a trigger;
[0018] The conflict detection module is used to perform data conflict detection on the second data table using the first time before updating to obtain a data conflict detection result, wherein the first data table and the second data table are the same data table stored in two different data centers.
[0019] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the data conflict detection method as described above are performed.
[0020] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data conflict detection method as described above are executed.
[0021] The embodiments of the present application bring the following beneficial effects:
[0022] A data conflict detection method, device, electronic device and storage medium provided in the embodiments of the present application can use a trigger to update the data modification time, and perform data conflict detection during data synchronization through the first time before the update. There is no need to transmit all data related to the modified data to the data center to be synchronized, thereby reducing the amount of data transmitted during data conflict detection. Compared with the data conflict detection method in the prior art, it solves the problem of increased data synchronization delay and low data synchronization throughput due to the large amount of data transmitted during data conflict detection.
[0023] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flow chart of a data conflict detection method provided in an embodiment of the present application is shown;
[0026] Figure 2A schematic diagram showing a first time update process provided by an embodiment of the present application is shown;
[0027] Figure 3 A schematic diagram showing a data synchronization process provided by an embodiment of the present application is shown;
[0028] Figure 4 A schematic diagram showing the structure of a data conflict detection device provided in an embodiment of the present application is shown;
[0029] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0031] It is worth noting that before the present application was filed, with the continuous integration of technologies such as social networks and cloud computing into people's lives, as well as the rapid development of existing computing power, storage space, network bandwidth, etc., the data accumulated by people has continued to grow and accumulate in many fields such as the Internet, communications, finance, and commerce. In various fields, it is necessary to process a variety of data, for example: processing e-commerce transaction data, and the requirements for ensuring data consistency in different data centers are getting higher and higher. The existing technology usually adopts a multi-active architecture to ensure data consistency between different data centers. The multi-active architecture is a distributed system architecture that aims to deploy independent data centers in different geographical locations to ensure that the system can still provide services normally when a catastrophic failure occurs at a certain location, thereby achieving high availability and disaster recovery capabilities.
[0032] However, when performing cross-center data conflict detection under a multi-site active-active architecture, all data related to the modified data is usually transmitted to the data center to be synchronized, and then a data comparison is performed to determine whether to synchronize the data based on the data comparison results. For example: To synchronize the data modification of data center A to data center B, if the modified data is the user's mobile phone number in the user information data table of data center A, then all the information of the user in the user information data table needs to be sent to data center B, such as the user's address, gender, age and other information, for data comparison. Then, a data comparison is performed in the server of the data center to be synchronized, and if the data is inconsistent, a data conflict is confirmed. However, when there are many data modification requests and there is network delay or bandwidth limitation between different data centers, the data conflict detection requires the transmission of a large amount of data, which leads to increased data synchronization delay and low data synchronization throughput.
[0033] Based on this, an embodiment of the present application provides a data conflict detection method to reduce the amount of data transmitted during data conflict detection, shorten data synchronization delay, and improve data synchronization throughput.
[0034] See also Figure 1 , Figure 1 Flow chart of a data conflict detection method provided by an embodiment of the present application. Figure 1 As shown, the data conflict detection method provided in the embodiment of the present application includes:
[0035] Step S101, in response to a data modification instruction for a target data item in a first data table, setting a trigger for updating a data modification time for a first time record field in the first data table;
[0036] Step S102, using a trigger to update the first time corresponding to the target data item in the first time record field;
[0037] Step S103: performing data conflict detection on the second data table using the first time before updating to obtain a data conflict detection result.
[0038] The data conflict detection method provided in the embodiment of the present application can utilize a trigger to update the data modification time, and perform data conflict detection during data synchronization through the first time before the update. There is no need to transmit all data related to the modified data to the data center to be synchronized, thereby reducing the amount of data transmitted during data conflict detection, and solving the problem of large data synchronization delay and low data synchronization throughput caused by the large amount of data transmitted during data conflict detection.
[0039] To facilitate understanding of this embodiment, the following takes a data conflict detection method provided in an embodiment of the present application as an example, and describes the above exemplary steps provided in the embodiment of the present application. The server is used to manage data in a data center, perform data conflict detection during data synchronization, and perform data synchronization after the data conflict detection passes.
[0040] In step S101 , in response to a data modification instruction for a target data item in a first data table, a trigger for updating a data modification time is set for a first time record field in the first data table.
[0041] In this step, the first data table and the second data table are the same data table stored in two different data centers respectively.
[0042] The first data table is a data table in the first data center, and a first time record field for recording data modification time is set in the first data table. For example, the first data table may be a user information data table in the first data center.
[0043] The second data table is a data table in the second data center, and a second time record field for recording data modification time is set in the second data table. For example, the second data table may be a user information data table in the second data center.
[0044] The target data item may refer to the modified data item in the first data table. The target data item is determined by the field name and row identifier in the first data table. For example, the target data item may be a data item in the first data table whose field name is mobile phone number and whose row identifier is 5. The target data item is used to record the mobile phone number of the user numbered 5.
[0045] A data modification instruction may refer to an instruction for modifying data, and the data modification instruction is used to indicate a target data item to be modified and a modified value of the target data item.
[0046] The first time recording field may refer to a field in the first data table used to record the data modification time, and the first time recording field is recorded as: modify_time1.
[0047] The second time recording field may refer to a field in the second data table used to record the data modification time, and the second time recording field is recorded as: modify_time2.
[0048] The trigger is used to update the time corresponding to the modified data in the first time record field when the data in the data table corresponding to the trigger changes. If a trigger is set in the first data table, a trigger with the same function is also set in the second data table corresponding to the first data table.
[0049] In one example, the original first data table does not have a first time record field, and the original second data table does not have a second time record field. Therefore, in order to record the data modification time, the first time record field can be added to the first data table and the second time record field can be added to the second data table before setting the trigger, and the time record fields are added to the last column of the data table.
[0050] In the embodiment of the present application, in the e-commerce industry, e-commerce transaction data can be stored in data centers set up in different physical regions through a remote multi-active architecture. For example, the first data center is set up in Beijing, and the second data center is set up in Shanghai. When the mobile phone number in the user information data table of the first data center is modified, the modified information needs to be synchronized to the user information data table of the second data center. However, the mobile phone number in the user information data table of the second data center may have been modified. If data synchronization is performed at this time, data conflicts will occur. Therefore, data conflict detection needs to be performed first to avoid sending unnecessary data to the second data center.
[0051] When performing data conflict detection, a trigger may be created for the first time record field according to the data modification instruction, and the data modification time in the first data table may be updated through the trigger, so that the updated time is used as the basis for the next data conflict detection.
[0052] In step S102, a trigger is used to update the first time corresponding to the target data item in the first time record field.
[0053] In this step, the first time may refer to the time in the first time record field in the first data table, that is, the data modification time recorded in the first data table.
[0054] In one example, after the trigger is created, the trigger will update the time in the first time record field corresponding to the target data item in the first data table according to the data modification instruction.
[0055] For example, modify the data modification time corresponding to user No. 5 in the user information data table. At this time, the current time corresponding to the data modification instruction can be obtained, and the current time can be used to replace the first time corresponding to the target data item recorded in the first time record field of the first data table. In this way, each time the data in the user information data table is modified, the data modification time corresponding to the modified data will be updated to record the latest data modification time for the data.
[0056] Refer to the following Figure 2 Let me introduce the update process for the first time.
[0057] Figure 2A schematic diagram of a first time update process provided by an embodiment of the present application is shown, such as Figure 2 As shown, before the data is updated, the first data table includes four fields, namely the first field, the second field, the third field and the first time record. The first field is the user number, the second field is the mobile phone number, and the third field is the user name. In addition, the values of the four fields in a row in the first data table are "5", "130XXXXYYYY", "ABC" and "T1", respectively. T1 is the first time recorded in the first time record field in the row of data. After the data is updated, the data in the first field and the third field in the row are unchanged, and the data in the second field is changed from the original "130XXXXYYYY" to "130YYYYZZZZ". At this time, the trigger is triggered to obtain the current time T2, and replace T1 with T2, thereby updating the value of the first time record field in the row.
[0058] It should be noted that for each first time in the first time recording field, the first time is used to record the latest time when all data in the row where the first time is located is modified, that is, as long as any data item in the row is modified, the first time corresponding to the row will be updated. For example: the user information data table includes ten fields in total. When any data item in the ten data items in a row is modified, the first time in the row is updated to the latest data modification time, that is, the first time is used to record the latest data modification time of a row of data.
[0059] In step S103, data conflict detection is performed on the second data table using the first time before updating to obtain a data conflict detection result.
[0060] In this step, the second data table is the same as the first data table, but the second data table and the first data table belong to different data centers. The second data table is provided with a time record field, and the time record field in the second data table is called a second time record field. The second time record field is used to record the time when the data in the second data table is modified, and the time is called the second time.
[0061] In one example, when performing data conflict detection, the data table name, row identifier and first time before update of the first data table are sent to the second data center, and data conflict detection is performed based on the first time before update. It is not necessary to send all other data related to the target data item in the first data table to the second data center, for example, it is not necessary to send the user number and user name to the second data center to reduce the amount of data transmission. Then, the second time corresponding to the target data item in the second data table is compared with the first time before update corresponding to the target data item in the first data table to determine whether a data conflict occurs based on the comparison result. Taking the above example, the target data item refers to the data item corresponding to the second field in the row of data with user number 5 in the data table.
[0062] If the second time corresponding to the target data item in the second data table is equal to the first time before the update corresponding to the target data item in the first data table, it is determined that no data conflict occurs. For example, assuming that the row of data with user number 5 has not been modified in the second data table, the second time is T1, and the second time and the first time before the update are both T1, it can be determined that no data conflict occurs. If it is determined that no data conflict occurs, the data table to be synchronized is synchronized using the value of the modified target data item and the first time after the update.
[0063] If the second time corresponding to the target data item in the second data table is not equal to the first time before the update corresponding to the target data item in the first data table, it is determined that a data conflict occurs. For example, if the row of data with user number 5 has been modified in the second data table, the second time is not T1. At this time, the second time is not equal to the first time before the update, and it can be determined that a data conflict occurs. If it is determined that a data conflict occurs, an alarm is issued and subsequent data synchronization is stopped.
[0064] In one example, if it is determined that there is no data conflict, the following two methods can be used to synchronize data:
[0065] One is to send the updated value "130YYYYZZZZ" of the target data item in the first data table, the updated first time "T2", and other data values (such as "5", "ABC") of the row where the target data item is located to the second data center to synchronize the data of the second data table. At this time, since the row identifier is known, the entire data row of user number 5 in the first data table can be replaced with the data row of user number 5 in the second data table to update different data items.
[0066] Another method is to send the updated value of the target data item in the first data table, the updated first time, and the field name corresponding to the target data item to the second data center to synchronize the data of the second data table. At this time, since the row identifier is known, the updated value of the target data item of user number 5 in the first data table can be used to replace the value of the data item under the field name in the row of user number 5 in the second data table, and the second time in the row of user number 5 in the second data table can be replaced with the updated first time to update different data items. In this way, the updated value of the target data item in the first data table is used to replace the value of the target data item in the second data table, and the updated first time is used to replace the second time corresponding to the target data item in the second data table.
[0067] Refer to the following Figure 3 Let's introduce the data synchronization process.
[0068] Figure 3 A schematic diagram of the data synchronization process provided by the embodiment of the present application is shown as follows: Figure 3 As shown, after determining that there is no data conflict, the data synchronization process is performed. At this time, the value of the second field in the target row with user number 5 in the second data table is updated from the original value "130XXXXYYYY" to the updated value of the second field in the first data table "130YYYYZZZZ", and the value of the second time record in the target row with user number 5 in the second data table is updated from the original value "T1" to the updated value of the first time record field in the first data table "T2".
[0069] In one example, after the data conflict detection is completed, the trigger for the first time record field in the first data table created previously needs to be uninstalled to avoid affecting the subsequent processing efficiency.
[0070] Based on the same inventive concept, a data conflict detection device corresponding to the data conflict detection method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned data conflict detection method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0071] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a data conflict detection device provided in an embodiment of the present application. Figure 4 As shown in , the data conflict detection device 200 includes:
[0072] A trigger setting module 201 is used to set a trigger for updating the data modification time for a first time record field in the first data table in response to a data modification instruction for a target data item in the first data table, wherein the first time record field for recording the data modification time is set in the first data table;
[0073] A time updating module 202, configured to update the first time corresponding to the target data item in the first time record field by using a trigger;
[0074] The conflict detection module 203 is used to perform data conflict detection on the second data table using the first time before the update to obtain a data conflict detection result. The first data table and the second data table are the same data table stored in two different data centers.
[0075] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 300 includes a processor 310 , a memory 320 and a bus 330 .
[0076] The memory 320 stores machine-readable instructions executable by the processor 310. When the electronic device 300 is running, the processor 310 communicates with the memory 320 via the bus 330. When the machine-readable instructions are executed by the processor 310, the above-mentioned Figure 1 The steps of the data conflict detection method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.
[0077] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the data conflict detection method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.
[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0079] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0080] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0081] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0082] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0083] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A data conflict detection method, characterized in that: include: In response to a data modification instruction for a target data item in a first data table, setting a trigger for updating a data modification time for a first time record field in the first data table, wherein the first data table is provided with a first time record field for recording a data modification time; Using the trigger to update the first time corresponding to the target data item in the first time record field; A data conflict detection is performed on the second data table at a first time before the update to obtain a data conflict detection result, wherein the first data table and the second data table are the same data table stored in two different data centers.
2. The method according to claim 1, characterized in that Before setting a trigger for updating the data modification time for the first time record field in the first data table, the method further includes: A first time record field is added to the first data table.
3. The method according to claim 1, characterized in that The second data table is provided with a second time recording field, the second time recording field is used to record the second time, and the data conflict detection on the second data table using the first time before the update includes: The second time corresponding to the target data item in the second data table is compared with the first time before update corresponding to the target data item in the first data table to determine whether a data conflict occurs according to the comparison result.
4. The method according to claim 3, characterized in that Whether a data conflict occurs is determined by the following process: If the second time is equal to the first time before the update, it is determined that no data conflict occurs; If the second time is not equal to the first time before the update, it is determined that a data conflict occurs.
5. The method according to claim 1, characterized in that The method further comprises: If it is determined that no data conflict occurs, data synchronization is performed on the second data table using the value of the modified target data item in the first data table and the updated first time.
6. The method according to claim 5, characterized in that The step of synchronizing data in the second data table by using the modified value of the target data item in the first data table and the updated first time includes: Replacing the value of the target data item in the second data table with the modified value of the target data item in the first data table; The updated first time in the first data table is used to replace the second time corresponding to the target data item in the second data table.
7. The method according to claim 1, characterized in that The using the trigger to update the first time corresponding to the target data item in the first time record field includes: The current time corresponding to the data modification instruction is obtained, and the first time corresponding to the target data item recorded in the first time record field is replaced by the current time.
8. A data conflict detection device, characterized in that: include: a trigger setting module, configured to set a trigger for updating a data modification time for a first time record field in a first data table in response to a data modification instruction for a target data item in the first data table, wherein the first time record field for recording the data modification time is set in the first data table; A time updating module, configured to update the first time corresponding to the target data item in the first time record field by using the trigger; The conflict detection module is used to perform data conflict detection on the second data table using the first time before updating to obtain a data conflict detection result, wherein the first data table and the second data table are the same data table stored in two different data centers.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of the data conflict detection method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data conflict detection method according to any one of claims 1 to 7 are executed.