Detection data platform data synchronization method and system

By classifying, reviewing and verifying data synchronization requests in the detection data platform, the problems of low data synchronization efficiency and frequent errors are solved, efficient and reliable data synchronization is achieved, and the reliability and management of detection results are improved.

CN118708652AActive Publication Date: 2024-09-27CENT TESTING INT GRP CO LTD

Patent Information

Application Number
CN202410751894.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-27
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The detection data platform's data synchronization efficiency is low, errors occur frequently, and maintenance is difficult, resulting in reduced reliability of detection results.

Method used

A data synchronization method for the detection data platform is proposed. By receiving data synchronization requests, classifying and auditing, the source data is obtained for verification and preprocessing, synchronized to the target database, and exception handling is performed when data synchronization fails, including data verification, preprocessing Handling and exception log generation.

Benefits of technology

The data synchronization process is optimized, the integrity, correctness and security of data are improved, and the manageability and traceability of data synchronization are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708652A
    Figure CN118708652A
Patent Text Reader

Abstract

The invention provides a method and system for detecting data synchronization of a data platform, and the method comprises the steps: responding to a received data synchronization request, and determining the type of the data synchronization request based on the data synchronization request; selecting a preset auditing condition based on the type of the data synchronization request, and judging whether the data synchronization request meets the preset auditing condition or not; if not, returning or cancelling the data synchronization request; if yes, determining source data and target data corresponding to the data synchronization request; acquiring source data as to-be-synchronized data through a data transmission mode, and performing data verification on the to-be-synchronized data; and synchronizing the to-be-synchronized data passing the data verification into target data in a target database, and when data synchronization fails, performing exception handling according to preset exception handling steps. According to the data synchronization method for optimizing the detection data platform, fine management of the data synchronization process is achieved, and the integrity, correctness and safety of synchronous data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data synchronization method and system for a detection data platform. Background Art

[0002] With the continuous development of sensing technology, information technology, communication technology and computer technology, various new types of testing equipment, instruments and sensors continue to emerge, promoting the improvement of the technical level and product performance of the testing industry.

[0003] With the accelerated advancement of industrialization and intelligentization, the demand for testing in product quality, safety, environmental protection and other aspects is growing, and the demand for testing technology in industries such as biomedicine, food, and environmental protection is also expanding; the testing data platform of a testing company refers to a comprehensive software system specifically used to manage and process various types of data generated during the testing process. However, these testing data platforms have many data sources, large amounts of data, and rapid growth, making it difficult to effectively synchronize the data. They often have low efficiency, frequent errors, and difficulty in maintenance. This not only affects the normal progress of testing and reduces the speed of testing, but also easily leads to data inconsistencies, resulting in reduced reliability of test results.

[0004] Therefore, there is a need for a solution to solve at least one of the above problems. Summary of the invention

[0005] In view of the defects in the prior art, the present application proposes a data synchronization method and system for a detection data platform. To solve at least one of the above technical problems, the technical solution of the present application is:

[0006] A method for synchronizing data on a detection data platform, comprising:

[0007] In response to the received data synchronization request, determining a type of the data synchronization request based on the data synchronization request, the type of the data synchronization request comprising a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data;

[0008] Based on the type of the data synchronization request, select a preset review condition, and determine whether the data synchronization request meets the preset review condition;

[0009] If not, the data synchronization request is returned or cancelled; if compliant, the source data and target data corresponding to the data synchronization request are determined;

[0010] Acquire the source data as the data to be synchronized by data transmission, and perform data verification on the data to be synchronized; synchronize the data to be synchronized that passes the data verification to the target data in the target database, the target database includes one or more, and different target databases are associated with each other through key fields;

[0011] When data synchronization fails, exception handling is performed according to the preset exception handling steps.

[0012] In a specific embodiment, the process of performing data verification on the data to be synchronized includes: a primary verification involving the data form and a secondary verification involving the data content;

[0013] If the one-time verification fails, performing one or more preprocessing on the data to be synchronized until the one-time verification passes;

[0014] The preprocessing includes any one or more of data cleaning, data conversion, and data formatting;

[0015] When the primary check passes, a secondary check is performed on the data to be synchronized, and the secondary check includes: one or any multiple of a data integrity check, a data accuracy check, a data consistency check, and a data quality check.

[0016] In a specific embodiment, the process of determining the type of the data synchronization request based on the data synchronization request includes:

[0017] Parsing the data synchronization request to extract key data synchronization information, where the key data synchronization information includes one or more of a source data identifier, a target data identifier, synchronization frequency information, and synchronization strategy information;

[0018] Analyze the source data identifier to obtain first information including data source, property and structure, analyze the target data identifier to obtain second information including data purpose, structure and storage method, and analyze the synchronization frequency and the synchronization strategy information to obtain third information including synchronization type, synchronization priority and synchronization time;

[0019] Comprehensively analyze any multiple of the first information, the second information, and the third information to determine the type of the data synchronization request.

[0020] In a specific embodiment, the method further comprises generating a data synchronization request,

[0021] monitoring a first data source involving laboratory data and a second data source involving industry standard data;

[0022] If it is monitored that the data of the first data source and the second data source are changed, the changed data are collected to obtain source data;

[0023] Determine data synchronization information according to the source data, the data synchronization information including target data, synchronization method and synchronization frequency;

[0024] Verify whether the data synchronization request generation authority is met, and if so, generate a data synchronization request corresponding to the source data.

[0025] In a specific embodiment, the monitoring of the first data source is implemented by means of a preset trigger event, and when the data of the first data source changes, the insertion, update, and deletion operations of the data are captured;

[0026] The monitoring of the second data source is achieved by periodically polling the second data source, and the change of data is detected by querying and comparing the data before and after the second data source.

[0027] In a specific embodiment, the source data includes static data and dynamic data;

[0028] The static data includes: industry testing standard data and laboratory basic data;

[0029] The dynamic data includes: detection item data;

[0030] The data synchronization method for static data includes: a full synchronization method, and the data synchronization method for dynamic data includes: an incremental synchronization method and a real-time synchronization method.

[0031] In a specific embodiment, the process of performing exception handling according to the preset exception handling steps includes:

[0032] By setting up scheduled monitoring tasks, we can continuously monitor abnormal situations during data synchronization and scan and capture possible error information in real time.

[0033] When data synchronization is monitored to be abnormal, a synchronization abnormality log including the error information is generated;

[0034] Perform an exception handling, and perform one or more data synchronization on the data to be synchronized according to the preset synchronization times and time intervals;

[0035] If the primary exception handling fails, a secondary exception handling is performed to handle the error corresponding to the error information, and after the handling is completed, the data to be synchronized is synchronized again one or more times;

[0036] If the secondary exception handling fails, a synchronous exception alarm message is triggered.

[0037] In a specific embodiment, before synchronizing the to-be-synchronized data that has passed data verification to the target data in the target database, the method further includes:

[0038] Simulate data synchronization, synchronizing the data to be synchronized into intermediate target data of an intermediate database, wherein the intermediate database is generated based on the mapping of the target database;

[0039] Check whether there is any problem with the intermediate target data after synchronization. If no problem exists, synchronize the to-be-synchronized data that passes the check to the target data in the target database.

[0040] In a specific embodiment, the method further comprises:

[0041] When multiple data synchronization requests are received at the same time, first determine whether the data synchronization resources of the detection system are sufficient. If the data synchronization resources are sufficient, respond to all the data synchronization requests at the same time to perform data synchronization processing;

[0042] If the data synchronization resources are insufficient, detecting whether there is a priority field in each of the data synchronization requests; if there is a priority field in each of the data synchronization requests, processing the data synchronization requests with the priority field first;

[0043] If there is no priority field in each of the data synchronization requests, synchronization processing is performed according to the existing order in which each of the data synchronization requests is generated;

[0044] When the data synchronization request is a second data synchronization request, data synchronization also needs to be performed on the first data source.

[0045] A detection data management and synchronization implementation system, used to implement a detection data platform data synchronization method described in any one of the first part, the implementation system comprising:

[0046] A receiving module, configured to respond to a received data synchronization request and determine a type of the data synchronization request based on the data synchronization request, wherein the type of the data synchronization request includes a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data;

[0047] A synchronization request review module, used to select different preset review conditions based on different types of data synchronization requests, and determine whether the data synchronization request meets the preset review conditions;

[0048] If not, the data synchronization request is returned or cancelled; if compliant, the data source and target data corresponding to the data synchronization request are determined;

[0049] A data synchronization module is used to obtain the data source data as the data to be synchronized by means of data transmission, and perform data verification on the data to be synchronized; synchronize the data to be synchronized that passes the data verification to the target data in the target database, wherein the target database includes one or more, and different target databases are associated with each other through key fields;

[0050] The exception handling module is used to perform exception handling according to preset exception handling steps when data synchronization fails.

[0051] Beneficial effects:

[0052] The present invention provides a method and system for synchronizing data on a testing data platform, which optimizes the data synchronization method of a testing data platform of a testing enterprise. Specifically, the received data synchronization requests are classified, and differentiated audits are performed on different types of data synchronization requests, thereby enabling refined management of the data synchronization process. The integrity, correctness and security of synchronized data are improved through data verification and exception prompts. Generating a synchronization exception log is helpful for tracking and analyzing problems encountered during the synchronization process, providing a basis for subsequent problem investigation and processing, thereby improving the manageability and traceability of the data synchronization process. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention 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 creative work.

[0054] Figure 1 A schematic diagram of a flow chart of a method for synchronizing data on a detection data platform according to an embodiment;

[0055] Figure 2 A schematic diagram of an exception handling process in another embodiment;

[0056] Figure 3 This is a diagram showing the module composition of the detection data platform data synchronization system of an embodiment.

[0057] Reference numerals:

[0058] 1- Receiving module; 2- Synchronization request review module; 3- Data synchronization module; 4- Exception handling module. DETAILED DESCRIPTION

[0059] In the following, various embodiments of the present disclosure will be described more fully. The present disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but rather the present disclosure should be understood to cover all adjustments, equivalents and / or alternatives that fall within the spirit and scope of the various embodiments of the present disclosure.

[0060] Hereinafter, the terms "include" or "may include" used in various embodiments of the present disclosure indicate the presence of disclosed functions, operations, or elements, and do not limit the addition of one or more functions, operations, or elements. In addition, as used in various embodiments of the present disclosure, the terms "include", "have", and their cognates are intended only to indicate specific features, numbers, steps, operations, elements, components, or a combination of the foregoing, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components, or a combination of the foregoing or the possibility of adding one or more features, numbers, steps, operations, elements, components, or a combination of the foregoing.

[0061] In various embodiments of the present disclosure, the expression "or" or "at least one of A or / and B" includes any combination or all combinations of the words listed at the same time. For example, the expression "A or B" or "at least one of A or / and B" may include A, may include B, or may include both A and B.

[0062] The expressions (such as "first", "second", etc.) used in the various embodiments of the present disclosure may modify the various constituent elements in the various embodiments, but may not limit the corresponding constituent elements. For example, the above expressions do not limit the order and / or importance of the elements. The above expressions are only used for the purpose of distinguishing one element from other elements. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, without departing from the scope of the various embodiments of the present disclosure, the first element may be referred to as the second element, and similarly, the second element may also be referred to as the first element.

[0063] It should be noted that if it is described that one component element is “connected” to another component element, the first component element may be directly connected to the second component element, and a third component element may be “connected” between the first component element and the second component element. Conversely, when one component element is “directly connected” to another component element, it can be understood that there is no third component element between the first component element and the second component element.

[0064] The term “user” used in various embodiments of the present disclosure may indicate a person using an electronic device or a device (eg, an artificial intelligence electronic device) using the electronic device.

[0065] The terms used in the various embodiments of the present disclosure are only used for the purpose of describing specific embodiments and are not intended to limit the various embodiments of the present disclosure. As used herein, the singular form is intended to also include the plural form, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the meanings commonly understood by ordinary technicians in the field to which the various embodiments of the present disclosure belong. The terms (such as the terms defined in the generally used dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning, unless clearly defined in the various embodiments of the present disclosure.

[0066] Example 1

[0067] The present application embodiment proposes a method for synchronizing data on a detection data platform, such as Figure 1 As shown, including:

[0068] S100, responding to the received data synchronization request, determining the type of the data synchronization request based on the data synchronization request, the type of the data synchronization request including a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data;

[0069] S200, based on the type of the data synchronization request, select a preset review condition, and determine whether the data synchronization request meets the preset review condition;

[0070] S30A, if not, return or cancel the data synchronization request;

[0071] S30B, if it is in compliance, determining the source data and the target data corresponding to the data synchronization request;

[0072] S400, acquiring source data as data to be synchronized by means of data transmission, and performing data verification on the data to be synchronized; synchronizing the data to be synchronized that has passed the data verification to target data in a target database, the target database including one or more, and different target databases are associated with each other through key fields;

[0073] S500: When data synchronization fails, perform exception handling according to preset exception handling steps.

[0074] In the data synchronization process, source data refers to the original data that needs to be copied, transferred or synchronized to the target location. These original data are usually stored in one or more data sources, which can be databases, file systems, application outputs, sensor devices, etc.

[0075] Target data refers to the data at the target location to which the source data is synchronized. When performing data synchronization operations, the source data is usually copied, transferred or synchronized to one or more target locations, which are the storage locations of the target data. After the data synchronization is completed, the content of the target data is replaced by the content of the source data.

[0076] It can be understood that judging preset audit conditions and verifying data during the data synchronization process can help discover and correct data errors, thereby reducing the risks caused by inconsistent or inaccurate data and improving the accuracy and reliability of data before, during, and after data synchronization.

[0077] By further classifying the types of data synchronization requests and selecting different review conditions for different data synchronization requests, it is helpful to better meet the requirements of regulatory authorities and laws and regulations for the data synchronization process, thereby providing compliance and legal protection. By setting up a data synchronization exception handling mechanism, abnormal situations that occur during the data synchronization process can be discovered in a timely manner, reducing the impact of data synchronization exceptions; it can reduce the possibility of system crashes or shutdowns, and ensure the normal operation of the system.

[0078] Exemplarily, the preset audit conditions may include any one or more of data security, data integrity, data accuracy, data authority, business compliance, and system load;

[0079] The data sources and target databases of data synchronization requests are different, so the preset audit conditions are naturally different. For example, for the first data synchronization request involving laboratory data, it is often necessary to consider the sensitivity of the experimental data and set higher audit requirements for the security and confidentiality of the data; the accuracy of laboratory data is crucial to the credibility of scientific research and experimental results, so the setting of preset audit conditions will also pay more attention to the accuracy and completeness of the data; in addition, laboratory data may involve information on patents, trade secrets, etc., and the setting of preset audit conditions may pay more attention to data permission control to ensure that only authorized personnel can access and operate the data.

[0080] The second data synchronization request involves testing standard data. The testing standard file may involve laws, regulations, industry standards, etc. The setting of preset audit conditions also needs to include compliance audit to ensure that the synchronized data complies with the requirements of relevant laws, regulations and industry standards. At the same time, the testing standard data may need to be updated regularly to maintain consistency with the latest standards. The audit process may focus on the frequency and timeliness of file updates in data synchronization requests.

[0081] Of course, in some embodiments of the present application, the type of data synchronization request also includes a third data synchronization request involving user requirements, which may include information such as customer requirements and customer limits, so as to timely and clearly define customer needs and improve customer satisfaction.

[0082] Key fields refer to important fields or attributes used when matching, comparing or mapping between source data and target data. Key fields include but are not limited to primary keys, unique identifiers, timestamps, and composite fields.

[0083] Furthermore, the process of performing data verification on the data to be synchronized includes: a primary verification involving the data form and a secondary verification involving the data content;

[0084] If a verification fails once, the data to be synchronized is preprocessed one or more times until a verification passes once;

[0085] The preprocessing includes any one or more of data cleaning, data conversion, and data formatting;

[0086] When the first verification is passed, a second verification is performed on the data to be synchronized, and the second verification includes: one or any multiple of data integrity verification, data accuracy verification, data consistency verification, and data quality verification.

[0087] It can be understood that through multiple verifications and preprocessing, the quality and accuracy of data can be improved and data errors can be reduced; the format and content of the data to be synchronized can be consistent with the target data, reducing data mismatch or inconsistency problems; the automated verification and preprocessing process can reduce manual intervention and improve the efficiency and automation of data synchronization; by discovering and fixing data problems in advance, the cost of subsequent data processing and adjustment can be reduced, avoiding additional expenses caused by data quality issues.

[0088] Exemplarily, the verification of data form can use: cyclic redundancy check (CRC), which is used to detect errors in data transmission or storage, focusing on the formal structure of data blocks; parity check, which is used to detect single-bit errors in the transmission process and also falls into the category of data form verification.

[0089] As another example, the verification of data content can use: hash value, which generates a unique hash value by hashing the data content, and is used to verify the integrity of the data and whether the content has changed; digital signature, which is a data verification method based on an asymmetric encryption algorithm, and is used to verify the source and integrity of the data, and belongs to the category of data content verification; comparison of mirror data, which compares the content differences between the source data and the target data to ensure the consistency of the content; checksum, which is used to detect errors in the transmission process by summing each byte in the data block, and indirectly verifies whether the data content is complete.

[0090] Of course, there is no limitation on the specific data verification method.

[0091] Further, the process of determining the type of the data synchronization request based on the data synchronization request includes:

[0092] Parsing the data synchronization request and extracting key data synchronization information, where the key data synchronization information includes one or more of a source data identifier, a target data identifier, synchronization frequency information, and synchronization strategy information;

[0093] Analyze the source data identifier to obtain first information including data source, nature and structure, analyze the target data identifier to obtain second information including data purpose, structure and storage method, and analyze the synchronization frequency and synchronization strategy information to obtain third information including synchronization type, synchronization priority and synchronization time;

[0094] Comprehensively analyze any multiple of the first information, the second information, and the third information to determine the type of the data synchronization request.

[0095] It can be understood that by parsing the data synchronization request, various aspects of data synchronization information are obtained, and any number of these data synchronization information are integrated to improve the accuracy of data synchronization request classification;

[0096] Different processing methods are used for different types of data, and customized processing solutions are provided for different types of data synchronization requests to improve processing efficiency and accuracy. For example, audit conditions are preset for different types of data synchronization requests. Different types of data synchronization requests may also have different requirements for system resources. Through classification, resource allocation can be better optimized so that key data can be given priority and the overall performance of the system can be improved. If different types of data may conflict or be incompatible, classifying data synchronization requests can make it easier to identify and handle possible conflicts and reduce risks in the synchronization process. Classified data synchronization requests can be more easily managed and monitored, so that the system can have a clearer understanding of the synchronization status of different types of data, making it easier to track and troubleshoot problems.

[0097] Further, the method also includes generating a data synchronization request,

[0098] monitoring a first data source involving laboratory data and a second data source involving industry standard data;

[0099] If it is monitored that the data of the first data source and the second data source are changed, the changed data is collected to obtain the source data;

[0100] Determine data synchronization information based on source data, the data synchronization information including target data, synchronization method and synchronization frequency;

[0101] Verify whether the permission to generate data synchronization requests is met. If so, generate a data synchronization request corresponding to the source data.

[0102] It can be understood that by monitoring changes in data sources and collecting source data in real time, the generated data synchronization requests can be matched with the latest data status to ensure the real-time and accuracy of data synchronization; automatically monitoring changes in data sources and generating data synchronization requests reduces the need for manual intervention and processing, improves the degree of automation of data synchronization, and reduces the possibility of errors; by determining key data synchronization information based on source data and verifying whether it complies with the authority to generate data synchronization requests, customized data synchronization requests can be generated based on specific data conditions and authority requirements to meet the needs of different data types and authority levels; verifying the authority to generate data synchronization requests can effectively control the generation of data synchronization requests, and only data changes that meet the authority requirements will generate corresponding data synchronization requests, thereby improving data security and controllability; data synchronization requests are only generated when the data source changes, avoiding unnecessary data synchronization request generation and saving system resources and processing costs.

[0103] The first data source and the second data source may exist in various forms, for example, various types of databases, such as relational databases (such as MySQL, Oracle, SQL Server), NoSQL databases (such as MongoDB, Cassandra), etc. It may also be a file or folder in a file system, including text files, log files, configuration files, etc. Data may also be exposed in the form of an API interface, and data can be obtained and synchronized by calling the API. Or some applications may generate data output, which can be used as a data source for synchronization. For example, log data and report data of a Web application. Sometimes data synchronization requires data interaction with a third-party service platform, and the data provided by these third-party service platforms can also be used as a data source.

[0104] Furthermore, the monitoring of the first data source is achieved by means of preset trigger events, and when the data of the first data source changes, the insertion, update, and deletion operations of the data are captured;

[0105] The monitoring of the second data source is achieved by periodically polling the second data source, and the change of data is detected by querying and comparing the data before and after the second data source.

[0106] It can be understood that for the first data source, by means of preset trigger events, it is possible to capture data insertion, update, and deletion operations in real time, thereby achieving timely response to data changes; and for the second data source, by means of timed polling, although it is not real-time, it is possible to detect data changes within a certain time interval, thereby achieving a certain degree of data synchronization.

[0107] The preset trigger event method is relatively lightweight and can achieve real-time monitoring without occupying too many system resources. Although scheduled polling will consume certain system resources, it can meet the monitoring needs of data sources that do not change frequently, thereby balancing resource utilization. The preset trigger event method has relatively less impact on the data source, and only monitors when the data changes, which will not cause too much burden on the data source itself. Although scheduled polling will query the data source regularly, the impact on the data source can be reduced by reasonably setting the query frequency.

[0108] Specifically, in some embodiments of the present application, the first data source involves laboratory data, especially data of test items. This type of data is updated quickly and frequently. Therefore, the monitoring of the first data source needs to be achieved through preset trigger events to achieve timely and effective data updates; the second data source involves data information of testing industry testing standards. The customization and update of this type of data information requires a long process, with a slow update speed and is generally not easily changed. Therefore, it does not require such strong real-time performance. The use of timed polling helps to reduce the occupation of system resources. For example, the polling time can be set to once a day, once a week, or once a month. Of course, there is no restriction on the setting of specific time. The shorter the interval, the more helpful it is to achieve timely updates. The setting of specific time intervals can also refer to the frequency of frequent updates of the second data source in the past.

[0109] Furthermore, the source data includes static data and dynamic data;

[0110] Static data includes: industry testing standard data and laboratory basic data;

[0111] Dynamic data includes: test item data;

[0112] Specifically, industry testing standard data includes: version validity, effective date, expiration date, applicable products, classification, implementation standards, etc.;

[0113] The basic laboratory data includes: equipment, accreditation, cycle, price, sample quantity, detection limit, classification, description, laboratory capacity, etc.;

[0114] The test project data include: test items, test plans, basic test clauses, test project method clauses, clause names, version validity, effective date, classification, clauses, names, English date, expiration date, test results, test data, etc.

[0115] The data synchronization methods for static data include: full synchronization method, and the data synchronization methods for dynamic data include: incremental synchronization method and real-time synchronization method.

[0116] The full synchronization method is a data synchronization strategy that is used to completely synchronize all data in the source data system to the target database, rather than just synchronizing the changed parts.

[0117] The incremental synchronization method is a data synchronization strategy that is used to synchronize changes (additions, updates, deletions) in the source data system to the target data system, rather than fully synchronizing all data each time. The real-time synchronization method is a data synchronization strategy that aims to synchronize changes (additions, updates, deletions) in the source data system to the target data system in real time to maintain the real-time and consistency of the data.

[0118] Static data refers to data that remains basically unchanged or changes very slowly over a period of time. This type of data is usually not updated or modified frequently. Static data can generally be obtained once and can be accessed and used multiple times over a period of time, and does not need to be updated frequently. Dynamic data refers to data that changes frequently within a certain time frame. This type of data is usually real-time or near real-time, and will be continuously updated over time. It needs to be obtained in real-time or periodic ways, and needs to be processed and updated in a timely manner to maintain the accuracy and real-time nature of the data.

[0119] The full synchronization method can ensure that all static data is completely synchronized to the target system, reducing the possibility of missing any information. The full synchronization method is relatively simple and easy to implement. It only requires a one-time data synchronization at an appropriate time, without considering incremental changes in data. Since static data changes less or even remains unchanged, the full synchronization method is more stable and reliable while ensuring data consistency.

[0120] The incremental synchronization method and the real-time synchronization method can save resources for data transmission and processing. They only synchronize the changed data without transmitting all the data every time. This maintains the real-time nature of the data and keeps the data in the target system synchronized with the data in the source system. The incremental synchronization method and the real-time synchronization method can also avoid a large amount of repeated data transmission and reduce redundant storage of data. In addition, the incremental synchronization method and the real-time synchronization method are more flexible than the full synchronization method and can be dynamically adjusted according to business needs and data characteristics.

[0121] Furthermore, if Figure 2 As shown, the process of performing exception handling according to the preset exception handling steps includes:

[0122] By setting up scheduled monitoring tasks, we can continuously monitor abnormal situations during data synchronization and scan and capture possible error information in real time.

[0123] By scheduling monitoring tasks, you can promptly capture abnormal situations in the data synchronization process, respond immediately when problems occur, and reduce the impact caused by data synchronization abnormalities.

[0124] When data synchronization is detected to be abnormal, a synchronization abnormality log including error information is generated;

[0125] Perform an exception handling, and perform one or more data synchronizations on the data to be synchronized according to the preset synchronization times and time intervals;

[0126] Exemplarily, in some embodiments of the present application, the preset number of synchronizations is 3 times and the time interval is 30 minutes. After the automatic exception handling is processed 3 times, it means that the exception cannot be handled by multiple repeated operations or the handling method is wrong, and the exception handling is stopped immediately.

[0127] Generating a synchronization exception log can record exception information, which helps to analyze the cause of the exception and solve the problem later, improving the maintainability of the system and the efficiency of troubleshooting.

[0128] If the first exception handling fails, a second exception handling is performed to handle the error corresponding to the error information. After the handling is completed, the data to be synchronized is synchronized again one or more times;

[0129] In an exception handling, performing one or more data synchronizations on the data to be synchronized can solve some exceptions caused by network problems and other reasons, increase the chances of successful data synchronization, and improve the success rate of data synchronization.

[0130] If the secondary exception handling fails, a synchronous exception alarm message will be triggered.

[0131] In secondary exception handling, handling the error corresponding to the error information helps to solve the root problem, thereby preventing similar exceptions from happening again; when secondary exception handling fails, the synchronous exception alarm information is triggered, which can promptly notify relevant personnel, prompting them to take further actions to prevent the problem from further expanding.

[0132] By using the preset synchronization times and time intervals to incrementally process exceptions, the processing effort can be gradually increased, the efficiency of handling exceptions can be improved, and the waste of processing resources can be avoided.

[0133] Among them, one-time exception handling is mainly aimed at problems that can be solved by repeating the operation again, such as network problems: factors such as network delay, disconnection, instability, etc. affect data transmission; data format mismatch: the data format between the source system and the target system is inconsistent or incompatible, resulting in the inability to correctly parse or import data; too much data: the data volume exceeds the system processing capacity, resulting in some data cannot be synchronized or the synchronization speed is slow; data conflict: multiple synchronization sources modify the same data at the same time, resulting in conflicts that need to be resolved; data delay: there is a delay in the data synchronization process, resulting in the data not being synchronized to the target system immediately after the source system is updated; inconsistent environment configuration: the environment configuration of the source system and the target system is inconsistent, such as database version, operating system version, etc., which affects the normal progress of data synchronization; concurrent processing problems: in high concurrency, multiple synchronization tasks are carried out simultaneously, which may cause resource competition, locks and other problems, thereby causing data synchronization exceptions; data loss or damage: during the data synchronization process, data loss or data damage may occur, such as network transmission errors, data packet loss, etc.

[0134] Secondary exception handling mainly targets problems that the system can handle automatically, such as permission issues: users lack sufficient permissions to perform data synchronization operations; software failure: the target system or synchronization tool software fails, resulting in data synchronization exceptions; data quality issues: poor quality of source data, including missing, incomplete, inconsistent, etc., resulting in errors in the synchronization process; hardware failure: hardware failure of the target system, such as disk damage, memory failure, etc., affects the normal progress of data synchronization; configuration errors: synchronization task configuration errors, such as mapping relationship errors, improper timing task settings, etc., resulting in synchronization failures; human operations: human error operations, such as accidental deletion of data, incorrect configuration operations, etc., lead to data synchronization exceptions; system upgrade / update: When the source system or target system is upgraded or updated, it may cause interface changes, configuration changes or software version incompatibility, thereby causing data synchronization exceptions; data security requirements: the target system has high requirements for data security and needs to perform data encryption or data desensitization, which may increase the complexity and abnormality risk of data synchronization; external system interface changes: data synchronization involves external systems. When the external system interface changes or the external system itself fails, it may cause data synchronization exceptions.

[0135] Of course, there is no limitation on the specific problems that can be solved by primary exception handling and secondary exception handling.

[0136] Furthermore, before synchronizing the to-be-synchronized data that has passed the data verification into the target data in the target database, the method further includes:

[0137] Simulate data synchronization, synchronize the data to be synchronized to the intermediate target data of the intermediate database, and the intermediate database is generated based on the mapping of the target database;

[0138] Check whether there are any problems with the intermediate target data after synchronization. If there are no problems, synchronize the data to be synchronized that passes the check to the target data in the target database.

[0139] Specifically, in some embodiments of the present application, the verified data to be synchronized is synchronized to the target data in the target database, which can be achieved by mapping the intermediate target data in the intermediate database to the target data in the target database, and the specific implementation of the mapping can be achieved through foreign keys.

[0140] It can be understood that by performing simulated synchronization and checking on the intermediate database, the impact on the target database can be minimized and the risks that may be caused by synchronization errors can be reduced; through simulated synchronization and data checking of the intermediate database, the integrity and consistency of the data to be synchronized are guaranteed, damage or loss of data is avoided, and some possible errors are pre-empted; the existence of the intermediate database can also reduce direct synchronization operations on the target database, effectively reducing the consumption of target database resources, even if errors occur in the data synchronization of the intermediate database, it will not affect the target data, and data synchronization is reversible; performing simulated synchronization and data checking on the intermediate database can make it easier to discover and repair problems that occur during the synchronization process, thereby improving the stability and reliability of data synchronization.

[0141] In computer programming, mapping is often used to describe the process of mapping elements or attributes in one data structure to another data structure.

[0142] Specifically, in some embodiments of the present application, the process of creating an intermediate database through mapping includes: Analyze the target database structure: First, it is necessary to perform a structural analysis on the target database, including information such as tables, columns, indexes, constraints, etc. This can be done by obtaining the database structure information through database management tools or SQL queries. Create an intermediate database: Create a new database in the target system to store the structure and data copied from the target database. Map database structure: Map the table structure, column definition, index, constraint and other information in the target database to the intermediate database, and you can create the same structure in the intermediate database by executing DDL statements. Data mapping: Map the data in the target database to the intermediate database, which can be achieved through ETL tools or writing SQL scripts to accurately copy the data in the source database to the target database. Verification and testing: After the mapping is completed, verification and testing are required to make the structure and data in the intermediate database completely consistent with the target database.

[0143] Furthermore, the method further comprises:

[0144] When multiple data synchronization requests are received at the same time, first determine whether the data synchronization resources of the detection data platform are sufficient. If the data synchronization resources are sufficient, respond to all data synchronization requests at the same time to perform data synchronization processing;

[0145] If the data synchronization resources are insufficient, then check whether there is a priority field in each data synchronization request. If there is a priority field in each data synchronization request, then give priority to processing the data synchronization request with the priority field;

[0146] If there is no priority field in each data synchronization request, synchronization processing is performed according to the existing order in which each data synchronization request is generated;

[0147] When the data synchronization request is a second data synchronization request, data synchronization also needs to be performed on the first data source.

[0148] It can be understood that by judging whether the data synchronization resources of the detection data platform are sufficient, it can be ensured that the data synchronization tasks are fully utilized, and multiple data synchronization requests can be responded to at the same time, which helps to improve the efficiency and response speed of data synchronization; when data synchronization resources are insufficient, the processing priority is determined according to the priority field in each data synchronization request, which can more flexibly meet the priority requirements of different data synchronization tasks and ensure that important data is processed in a timely manner; if there is no priority field in each data synchronization request, the synchronization processing is performed in the existing order of generation, which ensures the sequentiality of data synchronization and avoids possible data confusion or chaos.

[0149] In response to the second data synchronization request, the first data source also needs to be synchronized, which can ensure the integrity and consistency of the data and avoid omissions or errors in the data synchronization process; testing standards play an important role in the method formulation and standard formulation of experimental testing projects. Through secondary data synchronization, laboratory testing standards can be updated in a timely manner, which helps the smooth progress of testing projects.

[0150] The embodiments of the present application have at least the following beneficial effects:

[0151] The embodiment of the present application provides a data synchronization method for a detection data platform, which optimizes the data synchronization method for a detection data platform of a detection enterprise. Specifically, the received data synchronization requests are classified, and differentiated audits are performed on different types of data synchronization requests, thereby enabling refined management of the data synchronization process; the integrity, correctness and security of the synchronized data are improved through data verification and exception prompts; and the generation of a synchronization exception log is helpful to track and analyze problems encountered during the synchronization process, providing a basis for subsequent problem troubleshooting and processing, thereby improving the manageability and traceability of the data synchronization process.

[0152] Example 2

[0153] The present application embodiment provides a detection data management and synchronization implementation system, such as Figure 3 As shown, the implementation system includes:

[0154] A receiving module 1, configured to respond to a received data synchronization request and determine a type of the data synchronization request based on the data synchronization request, wherein the type of the data synchronization request includes a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data;

[0155] The synchronization request review module 2 is used to select different preset review conditions based on different types of data synchronization requests and determine whether the data synchronization request meets the preset review conditions;

[0156] If not, the data synchronization request is returned or cancelled; if compliant, the data source and target data corresponding to the data synchronization request are determined;

[0157] The data synchronization module 3 is used to obtain data from the data source as data to be synchronized by means of data transmission, and to perform data verification on the data to be synchronized; synchronize the data to be synchronized that has passed the data verification to the target data in the target database, the target database includes one or more, and different target databases are associated with each other through key fields;

[0158] The exception handling module 4 is used to perform exception handling according to preset exception handling steps when data synchronization fails.

[0159] The rest is the same as in Example 1 and will not be repeated here.

[0160] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0161] The above serial numbers of the present invention are only for description and do not represent the advantages or disadvantages of the implementation scenarios.

[0162] Disclosed above are only several specific implementation scenarios of the present invention, but the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.

Claims

1. A method for synchronizing data on a detection data platform. It is characterized in that include: In response to the received data synchronization request, determining a type of the data synchronization request based on the data synchronization request, the type of the data synchronization request comprising a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data; Based on the type of the data synchronization request, select a preset review condition, and determine whether the data synchronization request meets the preset review condition; If not, the data synchronization request is returned or cancelled; If yes, determining the source data and target data corresponding to the data synchronization request; Acquire the source data as the data to be synchronized by data transmission, and perform data verification on the data to be synchronized; synchronize the data to be synchronized that passes the data verification to the target data in the target database, the target database includes one or more, and different target databases are associated with each other through key fields; When data synchronization fails, exception handling is performed according to the preset exception handling steps.

2. According to claim 1, a detection data platform data synchronization method, It is characterized in that The process of performing data verification on the data to be synchronized includes: a primary verification involving the data form and a secondary verification involving the data content; If the one-time verification fails, performing one or more preprocessing on the data to be synchronized until the one-time verification passes; The preprocessing includes any one or more of data cleaning, data conversion, and data formatting; When the primary check passes, a secondary check is performed on the data to be synchronized, and the secondary check includes: one or any multiple of a data integrity check, a data accuracy check, a data consistency check, and a data quality check.

3. A method for synchronizing detection data platform data according to claim 2, It is characterized in that The process of determining the type of the data synchronization request based on the data synchronization request includes: Parsing the data synchronization request to extract key data synchronization information, where the key data synchronization information includes one or more of a source data identifier, a target data identifier, synchronization frequency information, and synchronization strategy information; Analyze the source data identifier to obtain first information including data source, property and structure, analyze the target data identifier to obtain second information including data purpose, structure and storage method, and analyze the synchronization frequency and the synchronization strategy information to obtain third information including synchronization type, synchronization priority and synchronization time; Comprehensively analyze any multiple of the first information, the second information, and the third information to determine the type of the data synchronization request.

4. A method for synchronizing detection data platform data according to claim 1, It is characterized in that The method also includes generating a data synchronization request, monitoring a first data source involving laboratory data and a second data source involving industry standard data; If it is monitored that the data of the first data source and the second data source are changed, the changed data are collected to obtain source data; Determine data synchronization information according to the source data, the data synchronization information including target data, synchronization method and synchronization frequency; Verify whether the data synchronization request generation authority is met, and if so, generate a data synchronization request corresponding to the source data.

5. A method for synchronizing detection data platform data according to claim 4, It is characterized in that The monitoring of the first data source is achieved by means of preset trigger events, and when the data of the first data source changes, the insertion, update, and deletion operations of the data are captured; The monitoring of the second data source is achieved by periodically polling the second data source, and data changes are detected by querying and comparing the data before and after the second data source.

6. A method for synchronizing data on a detection data platform according to claim 1, It is characterized in that The source data includes static data and dynamic data; The static data includes: industry testing standard data and laboratory basic data; The dynamic data includes: detection item data; The data synchronization method for static data includes: a full synchronization method, and the data synchronization method for dynamic data includes: an incremental synchronization method and a real-time synchronization method.

7. A method for synchronizing detection data platform data according to claim 1, It is characterized in that The process of handling exceptions according to the preset exception handling steps includes: By setting up scheduled monitoring tasks, we can continuously monitor abnormal situations during data synchronization and scan and capture possible error information in real time. When data synchronization is monitored to be abnormal, a synchronization abnormality log including the error information is generated; Perform an exception handling, and perform one or more data synchronization on the data to be synchronized according to the preset synchronization times and time intervals; If the primary exception handling fails, a secondary exception handling is performed to handle the error corresponding to the error information, and after the handling is completed, the data to be synchronized is synchronized again one or more times; If the secondary exception handling fails, a synchronous exception alarm message is triggered.

8. A method for synchronizing detection data platform according to claim 1, It is characterized in that Before synchronizing the to-be-synchronized data that has passed the data verification into the target data in the target database, the method further includes: Simulate data synchronization, synchronizing the data to be synchronized into intermediate target data of an intermediate database, wherein the intermediate database is generated based on the mapping of the target database; Check whether there is any problem with the intermediate target data after synchronization. If no problem exists, synchronize the to-be-synchronized data that passes the check to the target data in the target database.

9. A method for synchronizing detection data platform data according to claim 1, It is characterized in that The method further includes: When multiple data synchronization requests are received at the same time, first determine whether the data synchronization resources of the detection data platform are sufficient. If the data synchronization resources are sufficient, respond to all the data synchronization requests at the same time to perform data synchronization processing; If the data synchronization resources are insufficient, detecting whether there is a priority field in each of the data synchronization requests; if there is a priority field in each of the data synchronization requests, processing the data synchronization requests with the priority field first; If there is no priority field in each of the data synchronization requests, synchronization processing is performed according to the existing order in which each of the data synchronization requests is generated; When the data synchronization request is a second data synchronization request, data synchronization also needs to be performed on the first data source.

10. A system for implementing detection data management and synchronization, It is characterized in that The implementation system comprises: A receiving module, configured to respond to a received data synchronization request and determine a type of the data synchronization request based on the data synchronization request, wherein the type of the data synchronization request includes a first data synchronization request involving laboratory data and a second data synchronization request involving detection standard data; A synchronization request review module, used to select different preset review conditions based on different types of data synchronization requests, and determine whether the data synchronization request meets the preset review conditions; If not, the data synchronization request is returned or cancelled; if compliant, the data source and target data corresponding to the data synchronization request are determined; A data synchronization module is used to obtain the data source data as the data to be synchronized by means of data transmission, and perform data verification on the data to be synchronized; synchronize the data to be synchronized that passes the data verification to the target data in the target database, wherein the target database includes one or more, and different target databases are associated with each other through key fields; The exception handling module is used to perform exception handling according to preset exception handling steps when data synchronization fails.

Citation Information

Patent Citations

  • Data synchronization method and apparatus, and computer readable storage medium

    CN107679058A

  • Data synchronization method and system

    WO2020140661A1

Cited By

  • Multi-terminal medical data synchronous processing method and device

    CN119170181A

  • Remote database synchronization system and method based on incremental data extraction and verification

    CN120050291A