Data object comparison method and device, electronic equipment and storage medium

By determining the attribute information of the object to be compared in different operating environments, and using text comparison algorithms to obtain the comparison data from the distributed database, directly determining the object comparison results, the data inconsistency caused by changes in the data object structure in the prior art is solved, and the comparison efficiency and accuracy are improved.

CN119903088APending Publication Date: 2025-04-29JINZHUAN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411992619.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, in different operating environments, data inconsistent due to changes in the data object structure, it requires manual comparison, which is time-consuming and error-prone, resulting in inaccurate comparison results.

Method used

By responding to the comparison trigger operation of the data object, determine the attribute information of the object to be compared in different operating environments, obtain the corresponding comparison data from the distributed database, and directly determine the object comparison results using the text comparison algorithm to avoid manual intervention.

Benefits of technology

It improves the efficiency of data object comparison and the accuracy of comparison results, and reduces the time and error rate of manual comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903088A_ABST
    Figure CN119903088A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data object comparison method and device, electronic equipment and a storage medium. The method comprises the steps of determining first attribute information of a first to-be-compared object running in a first running environment and second attribute information of a second to-be-compared object running in a second running environment in response to a comparison triggering operation on a data object; obtaining first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database; and based on the first comparison data and the second comparison data of the text comparison algorithm, determining an object comparison result between a first to-be-compared object running in the first running environment and a second to-be-compared object running in the second running environment. According to the technical scheme, the object comparison result can be directly determined based on the text comparison algorithm, manual comparison is not needed, and the comparison efficiency and the accuracy of the comparison result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a data object comparison method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of information technology, data management and analysis are becoming more and more important. In particular, distributed database technology has attracted much attention due to its ability to effectively process large amounts of data and improve data availability.

[0003] In the prior art, the same application program has different running environments, and the data object structure changes in different running environments, resulting in inconsistent data. It is necessary for staff to manually compare the data objects in different running environments, and then synchronize the data objects in different running environments based on the comparison results. However, the manual comparison method is time-consuming and prone to errors, resulting in inaccurate comparison results. Summary of the invention

[0004] The embodiments of the present invention provide a data object comparison method, device, electronic device and storage medium to achieve the purpose of improving the comparison efficiency and the accuracy of the comparison result.

[0005] According to one aspect of the present invention, there is provided a data object comparison method, comprising:

[0006] In response to a comparison trigger operation on a data object, determining first attribute information of a first object to be compared running in a first running environment, and second attribute information of a second object to be compared running in a second running environment;

[0007] Acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database;

[0008] Based on the first comparison data and the second comparison data of the text comparison algorithm, an object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment is determined.

[0009] According to another aspect of the present invention, there is provided a data object comparison device, the device comprising:

[0010] An attribute information determination module, configured to determine, in response to a comparison trigger operation on a data object, first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment;

[0011] A data acquisition module, used to acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database;

[0012] A result determination module is used to determine an object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment based on the first comparison data and the second comparison data of the text comparison algorithm.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data object comparison method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data object comparison method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention, in response to a comparison trigger operation on a data object, determines first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment; and obtains first comparison data corresponding to the first attribute information, and second comparison data corresponding to the second attribute information from a distributed database; determines the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment through the first comparison data and the second comparison data of a text comparison algorithm, thereby directly determining the object comparison result based on the text comparison algorithm, without manual comparison, thereby improving the comparison efficiency and the accuracy of the comparison result.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a data object comparison method provided according to an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of a process for obtaining first comparison data provided by an embodiment of the present invention;

[0023] Figure 3 is a flow chart of another data object comparison method provided according to an embodiment of the present invention;

[0024] Figure 4 is a structural schematic diagram of a data object comparison device provided according to an embodiment of the present invention;

[0025] Figure 5 It is a structural schematic diagram of an electronic device for implementing the data object comparison method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.

[0029] Figure 1 This is a flow chart of a data object comparison method provided according to an embodiment of the present invention. This embodiment is applicable to the case of comparing data objects in different operating environments. The method can be executed by a data object comparison device, which can be implemented in the form of hardware and / or software.

[0030] like Figure 1 As shown, the method of this embodiment may specifically include:

[0031] S110. In response to a comparison trigger operation on a data object, determine first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment.

[0032] It should be noted that the distributed database system allows data to be stored on nodes in multiple geographical locations and manages this data through network coordination, thereby improving the scalability and fault tolerance of the distributed database system. Since different operating environments have different corresponding environment configurations, for example, in the development environment, test environment and production environment, the corresponding database configuration, server configuration and application configuration are all different, these configuration differences may cause data objects to behave differently and data to be stored differently in different operating environments. In order to facilitate the management of data objects by the distributed database system, it is necessary to compare data objects in different operating environments.

[0033] In this embodiment, a user operation interface may be provided, and the first attribute information and the second attribute information may be determined based on the information input in the information input box of the user operation interface. The information input box is used to input the attribute information of the object to be compared. The first attribute information may be information such as the first position information and the first identification of the first object to be compared in the distributed database. The second attribute information may be information such as the second position information and the second identification of the second object to be compared in the distributed database. In practical applications, the information input box may include a first input box and a second input box, and the information input in the first input box is used as the first attribute information, and the information input in the second input box is used as the second attribute information. Alternatively, the information input in the information input box may be directly analyzed and identified to determine the first attribute information and the second attribute information.

[0034] S120. Acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database.

[0035] Optionally, the first attribute information includes first position information corresponding to the first object to be compared in the distributed database, and the second attribute information includes second position information corresponding to the second object to be compared in the distributed database. The first position information can be used to access the distributed database to read the first data corresponding to the first position information as the first comparison data. The second position information can be used to access the distributed database to read the second data corresponding to the second position information as the second comparison data.

[0036] In practical applications, in a distributed database, computing nodes and data nodes work together to achieve efficient data storage, processing, and access. A computing node is a node in a distributed database that is responsible for executing database queries and data processing operations. A data node is a node in a distributed database that is responsible for storing data. The first comparison data and the second comparison data can be obtained through the computing nodes and data nodes in the distributed database.

[0037] Specifically, the implementation method of obtaining the first comparison data corresponding to the first attribute information and the second comparison data corresponding to the second attribute information from the distributed database can be: determining the first computing node corresponding to the first attribute information and the second computing node corresponding to the second attribute information in the distributed database; sending a first query instruction to the first computing node based on the first attribute information, so that the first computing node generates a first data acquisition instruction based on the first query instruction, and sends the first data acquisition instruction to the first data node corresponding to the first attribute information; sending a second query instruction to the second computing node based on the second attribute information, so that the second computing node generates a second data acquisition instruction based on the second query instruction, and sends the second data acquisition instruction to the second data node corresponding to the second attribute information; receiving the first comparison data fed back by the first data node and the second comparison data fed back by the second data node.

[0038] It should be noted that different computing nodes correspond to different data nodes. In order to accurately obtain comparison data, the first data node corresponding to the first attribute information can be determined based on the pre-stored mapping relationship between each computing node and the stored data, and the first computing node associated with the first data node can be determined; and the second data node corresponding to the second attribute information can be determined, and the second computing node associated with the second data node can be determined.

[0039] In this embodiment, a first query instruction can be generated based on the first attribute information, and a second query instruction can be generated based on the second attribute information. The first query instruction is used to indicate that data is queried according to the first attribute information; the second query instruction is used to indicate that data is queried according to the second attribute information. The first query instruction is sent to the first computing node, and the first computing node can determine the first data node to which the data to be queried belongs according to the first query instruction, and generate a first data acquisition instruction, and send the first data acquisition instruction to the first data node. The second query instruction is sent to the second computing node, and the second computing node can determine the second data node to which the data to be queried belongs according to the second query instruction, and generate a second data acquisition instruction, and send the second data acquisition instruction to the second data node. The first data acquisition instruction contains the first attribute information, and the second data acquisition instruction contains the second attribute information.

[0040] Further, after receiving the first data acquisition instruction, the first data node may acquire data corresponding to the first position information as first comparison data according to the first position information indicated in the first data acquisition instruction, and feed back the first comparison data through the first computing node. After receiving the second data acquisition instruction, the second data node may acquire data corresponding to the second position information as second comparison data according to the second position information indicated in the second data acquisition instruction, and feed back the second comparison data through the second computing node.

[0041] In order to adapt to different network environments, the network conditions of the distributed database system, such as delay and bandwidth, are determined before transmitting the comparison data. The transmission block size and transmission frequency are determined according to the network conditions. For example, when the network bandwidth is lower than the preset bandwidth, the size of the data block transmitted each time is reduced and the number of transmissions is increased. At the same time, the transmission overhead can be reduced by optimizing the transmission protocol and data compression technology. The asynchronous transmission mechanism is used for the data transmission process, allowing other comparison tasks to be performed while transmitting data, making full use of computing resources, reducing waiting time, and thus improving the overall comparison efficiency.

[0042] In order to understand the data comparison process in more detail, Figure 2 A schematic diagram of a process for obtaining first comparison data is provided, such as Figure 2As shown, the data object comparison method provided in this embodiment can be applied to analysis tools in distributed database systems. In a specific implementation, the first attribute information is determined according to the input information in the input information box on the user operation interface, and the first computing node corresponding to the first attribute information is determined. A first query instruction is sent to the first computing node so that the first computing node determines the first data node, and based on the first query instruction, a first data acquisition instruction is generated, and the first data acquisition instruction is sent to the first data node. After receiving the first data acquisition instruction, the first data node determines the first position information based on the first data acquisition instruction to obtain the first comparison data according to the first position information. The acquired first comparison data is sent to the first computing node, and the first computing node sends the first comparison data to the analysis tool, so that the analysis tool performs a data comparison operation on the first comparison data.

[0043] This embodiment provides a method for obtaining first comparison data and second comparison data, and the comparison data can be accurately and effectively obtained through computing nodes and data nodes.

[0044] S130: Determine an object comparison result between a first object to be compared running in the first operating environment and a second object to be compared running in the second operating environment based on the first comparison data and the second comparison data of the text comparison algorithm.

[0045] Wherein, text comparison algorithm comprises hash algorithm, zoom distance algorithm and longest common subsequence algorithm etc. In the present embodiment, an advanced text comparison algorithm is adopted, and its core principle is based on the idea of ​​dynamic programming, which is similar to the expansion of the longest common subsequence (LCS) algorithm. The algorithm records the similarity of the object structure of data objects in different operating environments by constructing a two-bit matrix. In the matrix construction process, the difference of characters in the text created by two database objects is compared successively, and the most effective path from the upper left corner to the lower right corner is calculated, and this path represents the editing operation sequence that minimizes the difference between the two text representations. The editing operation comprises inserting, deleting and replacing characters, and by assigning different cost weights to different operations, the comparison result with the smallest overall cost is found, and the difference between the data object structures is accurately determined.

[0046] In this embodiment, the first comparison data and the second comparison data can be compared by a text comparison algorithm to determine the structural difference between the first comparison data and the second comparison data, and the object comparison result between the first object to be compared in the first operating environment and the second object to be compared in the second operating environment can be determined by the text comparison algorithm. The object comparison result may include similarities, differences, and the degree of similarity between the first object to be compared and the second object to be compared.

[0047] In a specific implementation, after determining the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, it also includes: generating a comparison report based on the object comparison result, and sending the comparison report to the user terminal.

[0048] In order to facilitate the user to understand the comparison results, a comparison report can be generated based on the object comparison results. The comparison report includes the similarities and differences between the first object to be compared and the second object to be compared, and the degree of similarity between the first object to be compared and the second object to be compared. In order to facilitate the user to view, the comparison report can be sent to the user terminal.

[0049] Exemplarily, the generated comparison report may be sent to the user terminal periodically; or, after the comparison report is generated, the comparison report may be sent to the user terminal directly; or, after receiving a viewing instruction sent by the user terminal, the comparison report may be sent to the user terminal.

[0050] This embodiment sends the comparison report to the user terminal, so that the user can view the comparison result and understand the difference between data objects in different operating environments.

[0051] The technical solution of the embodiment of the present invention, in response to a comparison trigger operation on a data object, determines first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment; and obtains first comparison data corresponding to the first attribute information, and second comparison data corresponding to the second attribute information from a distributed database; determines the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment through the first comparison data and the second comparison data of a text comparison algorithm, thereby directly determining the object comparison result based on the text comparison algorithm, without manual comparison, thereby improving the comparison efficiency and the accuracy of the comparison result.

[0052] Figure 3 1 is a flow chart of another data object comparison method provided by an embodiment of the present invention. Based on the above embodiment, this embodiment further includes: determining a target comparison strategy, and determining an object comparison result based on the target comparison strategy and the text comparison algorithm. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 3 As shown, the method includes:

[0053] S210: In response to a comparison trigger operation on a data object, determine first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment.

[0054] S220: Acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database.

[0055] S230, performing feature analysis on the first comparison data and the second comparison data respectively to determine first feature information of the first comparison data and second feature information of the second comparison data; and determining a target comparison strategy based on the first feature information or the second feature information.

[0056] The first characteristic information includes the data object type and structural complexity of the first object to be compared; the second characteristic information includes the data object type and structural complexity of the second object to be compared.

[0057] In this embodiment, feature analysis may be performed on the first comparison data and the second comparison data. Specifically, features such as the number of fields, the nesting level, and the number of associated relationships of the first comparison data and the second comparison data may be determined, and based on the number of fields, the nesting level, and the number of associated relationships, the structural complexity of the first object to be compared and the second object to be compared may be determined. It should be noted that the more fields there are, the higher the structural complexity; conversely, the lower the structural complexity. The more nesting levels there are, the higher the structural complexity; conversely, the lower the structural complexity. The more associated relationships there are, the higher the structural complexity; conversely, the lower the result complexity.

[0058] Furthermore, the data object types of the first comparison data and the second comparison data can also be determined, and the data object types refer to the different forms and structures presented by the data. The data object type can be a basic data type such as an integer, a floating point number, a string, and a Boolean value, and can also be a conforming data type such as an array, a list, a tuple, and a set. The determined structural complexity and data object type of the first comparison data are used as the first feature information; the determined structural complexity and data object type of the second comparison data are used as the second feature information.

[0059] In a specific implementation, a correspondence between feature information and comparison strategies can be established in advance. According to the correspondence, the comparison strategy corresponding to the first feature information can be used as the target comparison strategy; or the comparison strategy corresponding to the second feature information can be used as the target comparison strategy. The comparison strategy includes a direct real-time comparison strategy and / or a full comparison strategy.

[0060] In order to ensure that the comparison results meet the needs of users and improve the comparison efficiency as much as possible, a complexity threshold and / or a standard data object type can be set in advance, and the target comparison strategy can be determined by the complexity threshold and / or the standard data object type. Those skilled in the art can set the complexity threshold and the standard data object type according to the actual application.

[0061] Exemplarily, if the first characteristic information is the degree of structural complexity, and the structural complexity is greater than the complexity threshold, the target comparison strategy is determined to be the full comparison strategy, so that the user experience is improved through the full comparison strategy for data objects with complex structures. Otherwise, the target comparison strategy is determined to be the direct real-time comparison strategy to improve the comparison efficiency. If the first characteristic information is the data object type, if the data object type is consistent with the pre-set standard data object type, the target comparison strategy is determined to be the full comparison strategy; otherwise, the target comparison strategy is determined to be the direct real-time comparison strategy.

[0062] S240. Based on the target comparison strategy, first target data is determined in the first comparison data, and second target data is determined in the second comparison data. Based on the text comparison algorithm, the first target data and the second target data are compared, and the obtained data comparison result is used as the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

[0063] In this embodiment, the target comparison strategy includes a direct real-time comparison strategy; based on the target comparison strategy, the first target data is determined in the first comparison data, and the second target data is determined in the second comparison data. The implementation method can be: determine the first comparison sub-data required by the pre-set direct real-time comparison strategy in the first comparison data, and determine the first comparison sub-data as the first target data.

[0064] In a specific implementation, the field name of the field to be compared by the direct real-time comparison strategy can be preset, and the data corresponding to the field name in the first comparison data is used as the first comparison sub-data, and the first comparison sub-data is determined as the first target data. Further, the data corresponding to the field name in the second comparison data is used as the second comparison sub-data, and the second comparison sub-data is determined as the second target data.

[0065] In this embodiment, the target comparison strategy includes a full comparison strategy; based on the target comparison strategy, the implementation method of determining the first target data in the first comparison data includes: determining all the first comparison data as the first target data.

[0066] Specifically, the full comparison strategy requires comparing all the first comparison data with the second comparison data to find out the differences or similarities between them. Therefore, all the first comparison data can be determined as the first target data, and all the second comparison data can be determined as the second target data.

[0067] This embodiment determines a target comparison strategy by performing a multi-dimensional feature analysis on the first comparison data and the second comparison data before comparison, so that data objects with simple structures can be directly compared in real time to improve the comparison efficiency; and for data objects with complex structures, a full comparison is performed to improve the user experience.

[0068] During the comparison process, the progress and intermediate results of the comparison can be detected in real time to flexibly adjust the comparison strategy. Optionally, based on the first comparison data and the second comparison data of the text comparison algorithm, the implementation method of determining the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment includes: when a preset trigger condition is met, determining the current comparison index data of the first comparison data and the second comparison data at the current moment; determining a backup strategy corresponding to the current comparison index data in the pre-constructed backup strategy set as the current comparison strategy; performing data comparison on the first remaining data in the first comparison data and the second remaining data in the second comparison data according to the current comparison strategy to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

[0069] The preset comparison index includes the comparison speed, the amount of compared data, and the ratio of the amount of compared data to the total amount of data. The preset comparison index may also include the growth trend of the amount of difference data that has been determined at the current moment. The difference data is the data that is different between the first comparison data and the second comparison data.

[0070] In a specific implementation, the preset trigger condition may be: the current moment is a preset indicator data determination moment; or it is detected that a control for adjusting the policy on the user interface is clicked. When the preset trigger condition is met, the current comparison indicator data at the current moment may be determined according to the preset comparison indicator, the first comparison data, and the second comparison data; the current comparison indicator data includes at least one of the comparison speed value, the amount of compared data, the ratio of the compared amount to the total amount of data, and the amount of difference data.

[0071] Furthermore, a backup strategy set may be pre-constructed, and the backup strategy set includes at least one backup strategy. Exemplarily, the backup strategy set includes a full comparison strategy, and / or a direct real-time comparison strategy. Based on the current comparison index data, a backup strategy may be determined in the backup strategy set as the current comparison strategy. Exemplarily, when the comparison speed value is greater than a preset speed value, the full comparison strategy is used as the current comparison strategy; otherwise, the direct real-time comparison strategy is used as the current comparison strategy; or, when the quantity value of the difference data is greater than a preset quantity value, the full comparison strategy is used as the current comparison strategy; otherwise, the direct real-time comparison strategy is used as the current comparison strategy.

[0072] After determining the current comparison strategy, the remaining data can be compared according to the current comparison strategy. Specifically, the data in the first comparison data that has not yet completed the comparison operation is used as the first remaining data; the data in the second comparison data that has not yet completed the comparison operation is used as the second remaining data. The first remaining data and the second remaining data are compared according to the current comparison strategy. Determine the first comparison result between the first compared data in the first comparison data corresponding to the current moment and the second compared data in the second comparison data; and determine the second comparison result between the first remaining data and the second remaining data. Combine the first comparison result and the second comparison result to obtain an object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

[0073] This embodiment can improve the accuracy and reliability of the comparison results by dynamically adjusting the comparison strategy, thereby improving the adaptability and flexibility of the comparison process; and, no manual intervention is required to avoid comparison errors; through automated data collection and adaptive application of text comparison algorithms, the consistency and repeatability of the comparison process are ensured. This embodiment can effectively improve the efficiency of data management by determining the object comparison results, and timely discover potential data quality problems, thereby ensuring the stability and reliability of the distributed database.

[0074] Figure 4 1 is a schematic diagram of the structure of a data object comparison device provided according to an embodiment of the present invention, and the device is used to execute the data object comparison method provided in any of the above embodiments. The device and the data object comparison method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the data object comparison device can refer to the embodiment of the above data object comparison method. Figure 4 As shown, the device comprises:

[0075] The attribute information determination module 10 is used to determine, in response to a comparison trigger operation on a data object, first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment;

[0076] The data acquisition module 11 is used to acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from the distributed database;

[0077] The result determination module 12 is used to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment based on the first comparison data and the second comparison data of the text comparison algorithm.

[0078] On the basis of any optional technical solution in the embodiment of the present invention, optionally, the first attribute information includes first position information corresponding to the first object to be compared in the distributed database, and the second attribute information includes second position information corresponding to the second object to be compared in the distributed database; the data acquisition module 11 includes:

[0079] A computing node determining unit, used to determine a first computing node corresponding to the first attribute information and a second computing node corresponding to the second attribute information in the distributed database;

[0080] A first instruction sending unit, configured to send a first query instruction to a first computing node based on the first attribute information, so that the first computing node generates a first data acquisition instruction based on the first query instruction, and sends the first data acquisition instruction to a first data node corresponding to the first attribute information;

[0081] A second instruction sending unit, configured to send a second query instruction to the second computing node based on the second attribute information, so that the second computing node generates a second data acquisition instruction based on the second query instruction, and sends the second data acquisition instruction to a second data node corresponding to the second attribute information;

[0082] The data receiving unit is used to receive the first comparison data fed back by the first computing node and the second comparison data fed back by the second computing node.

[0083] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0084] A feature analysis module, used for performing feature analysis on the first comparison data and the second comparison data respectively, and determining first feature information of the first comparison data and second feature information of the second comparison data before determining the object comparison result between the first comparison object running in the first operation environment and the second comparison object running in the second operation environment;

[0085] A strategy determination module, used to determine a target comparison strategy based on the first characteristic information or the second characteristic information; wherein the first characteristic information includes the data object type and structural complexity of the first object to be compared; and the second characteristic information includes the data object type and structural complexity of the second object to be compared;

[0086] The result determination module 12 comprises:

[0087] A result determination unit is used to determine the first target data in the first comparison data based on the target comparison strategy, determine the second target data in the second comparison data, and compare the first target data and the second target data based on the text comparison algorithm to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

[0088] Based on any optional technical solution in the embodiments of the present invention, optionally, the target comparison strategy includes a direct real-time comparison strategy; the result determination unit includes:

[0089] The first data determination subunit is used to determine the first comparison sub-data required by the preset direct real-time comparison strategy in the first comparison data, and determine the first comparison sub-data as the first target data.

[0090] Based on any optional technical solution in the embodiments of the present invention, optionally, the target comparison strategy includes a full comparison strategy; the result determination unit includes:

[0091] The second data determination subunit is used to determine all the first comparison data as the first target data.

[0092] Based on any optional technical solution in the embodiment of the present invention, optionally, the result determination module 12 includes:

[0093] A current comparison index data determination unit is used to determine the current comparison index data of the first comparison data and the second comparison data at the current moment when a preset trigger condition is met; wherein the preset comparison index includes the comparison speed, the amount of compared data, and the proportion of the amount of compared data to the total amount of data;

[0094] A current comparison strategy determination unit, used to determine a backup strategy corresponding to the current comparison index data from a pre-built backup strategy set as the current comparison strategy;

[0095] A data comparison unit is used to perform data comparison on the first remaining data in the first comparison data and the second remaining data in the second comparison data according to the current comparison strategy to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

[0096] Based on any optional technical solution in the embodiments of the present invention, optionally, the method further includes:

[0097] The report generation module is used to generate a comparison report based on the object comparison result after determining the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, and send the comparison report to the user terminal.

[0098] The technical solution of the embodiment of the present invention, in response to a comparison trigger operation on a data object, determines first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment; and obtains first comparison data corresponding to the first attribute information, and second comparison data corresponding to the second attribute information from a distributed database; determines the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment through the first comparison data and the second comparison data of a text comparison algorithm, thereby directly determining the object comparison result based on the text comparison algorithm, without manual comparison, thereby improving the comparison efficiency and the accuracy of the comparison result.

[0099] It is worth noting that in the embodiment of the above-mentioned data object comparison device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0100] Figure 5 Schematic diagram of the structure of an electronic device that implements the data object comparison method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0101] like Figure 5As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.

[0102] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0103] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 21 executes the various methods and processes described above, such as a data object comparison method.

[0104] In some embodiments, the data object comparison method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the data object comparison method described above may be performed. Alternatively, in other embodiments, the processor 21 may be configured to perform the data object comparison method in any other appropriate manner (e.g., by means of firmware).

[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0107] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0109] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0110] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0111] This embodiment also provides a computer program product, including a computer program, which, when executed by a processor, implements the data object comparison method provided in any embodiment of the present application.

[0112] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data object comparison method, characterized in that: include: In response to a comparison trigger operation on a data object, determining first attribute information of a first object to be compared running in a first running environment, and second attribute information of a second object to be compared running in a second running environment; Acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database; Based on the first comparison data and the second comparison data of the text comparison algorithm, an object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment is determined.

2. The method according to claim 1, characterized in that The first attribute information includes first position information of the first to-be-compared object corresponding to the distributed database, and the second attribute information includes second position information of the second to-be-compared object corresponding to the distributed database; The acquiring, from a distributed database, first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information includes: Determine a first computing node corresponding to the first attribute information and a second computing node corresponding to the second attribute information in the distributed database; Sending a first query instruction to the first computing node based on the first attribute information, so that the first computing node generates a first data acquisition instruction based on the first query instruction, and sends the first data acquisition instruction to a first data node corresponding to the first attribute information; Sending a second query instruction to the second computing node based on the second attribute information, so that the second computing node generates a second data acquisition instruction based on the second query instruction, and sends the second data acquisition instruction to a second data node corresponding to the second attribute information; The first comparison data fed back by the first computing node and the second comparison data fed back by the second computing node are received.

3. The method according to claim 1, characterized in that Before determining the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, the method further includes: Performing feature analysis on the first comparison data and the second comparison data respectively to determine first feature information of the first comparison data and second feature information of the second comparison data; Determine a target comparison strategy based on the first feature information or the second feature information; wherein the first feature information includes the data object type and structural complexity of the first object to be compared; and the second feature information includes the data object type and structural complexity of the second object to be compared; The first comparison data and the second comparison data based on the text comparison algorithm determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, including: Based on the target comparison strategy, first target data is determined in the first comparison data, and second target data is determined in the second comparison data. Based on the text comparison algorithm, the first target data and the second target data are compared to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

4. The method according to claim 3, characterized in that The target comparison strategy includes a direct real-time comparison strategy; and determining the first target data in the first comparison data based on the target comparison strategy includes: The first comparison sub-data required by the preset direct real-time comparison strategy is determined in the first comparison data, and the first comparison sub-data is determined as the first target data.

5. The method according to claim 3, characterized in that: The target comparison strategy includes a full comparison strategy; and determining the first target data in the first comparison data based on the target comparison strategy includes: All of the first comparison data are determined as the first target data.

6. The method according to claim 1, characterized in that The first comparison data and the second comparison data based on the text comparison algorithm determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, including: When a preset trigger condition is met, current comparison index data of the first comparison data and the second comparison data at the current moment are determined; wherein the preset comparison index includes comparison speed, amount of compared data, and the proportion of the amount of compared data to the total amount of data; Determine a backup strategy corresponding to the current comparison index data from a pre-built backup strategy set as the current comparison strategy; According to the current comparison strategy, data comparison is performed on the first remaining data in the first comparison data and the second remaining data in the second comparison data to determine the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment.

7. The method according to claim 1, characterized in that After determining the object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment, the method further includes: Based on the object comparison result, a comparison report is generated, and the comparison report is sent to a user terminal.

8. A data object comparison device, characterized in that: include: An attribute information determination module, configured to determine, in response to a comparison trigger operation on a data object, first attribute information of a first object to be compared running in a first operating environment, and second attribute information of a second object to be compared running in a second operating environment; A data acquisition module, used to acquire first comparison data corresponding to the first attribute information and second comparison data corresponding to the second attribute information from a distributed database; A result determination module is used to determine an object comparison result between the first object to be compared running in the first operating environment and the second object to be compared running in the second operating environment based on the first comparison data and the second comparison data of the text comparison algorithm.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data object comparison method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data object comparison method according to any one of claims 1 to 7 when executed.