Business data cold and hot separation processing method and device

By adopting the cold and hot separation processing method of business data in the court system, formulating hot and cold data rules and using verification mechanisms, the problem of data integrity that is difficult to guarantee in the traditional sub-database method has been solved, and data integrity in the data migration process has been achieved. and user personalized operational needs.

CN118585583APending Publication Date: 2024-09-03南京通达海软件有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684995.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The traditional sub-database method lacks targeted rule formulation for case scenarios in the court system, making it difficult to ensure data integrity, especially in province-wide or city-wide case supervision and cross-court operations.

Method used

Adopt the processing method of hot and cold separation of business data, formulate hot and cold data rules, divide the data into cold data and hot data, and use scheduled tasks and verification mechanisms to migrate data between the production database and the historical database to ensure data integrity , and record the migration log.

Benefits of technology

During the data migration and relocation process, the data status is recorded through status flags to ensure data integrity and allow human operations to further ensure data integrity before and after migration.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to the field of data processing, in particular to a business data cold and hot separation processing method and device. The method comprises the following steps: making a cold and hot data rule, and dividing data into cold data and hot data; a timed task mode is used, cases belonging to cold data are obtained in a production library according to cold and hot data rules, the cases belonging to the cold data in the production library are migrated to a historical library, a verification mechanism is used in the migration process to ensure the integrity of the data, and operations on the production library and the historical library are recorded in a migration log; the method is applied to court case data processing, the data state is recorded by using the state flag for different links in the data migration and return process, the original data of the business library or the historical library can be deleted only after the migration or return succeeds and verification is passed, and the data integrity is ensured.
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, and in particular to a method and device for processing hot and cold separation of business data. Background Art

[0002] With the in-depth use of court information technology, more and more data is generated in the court system, and the data pressure of the production database is increasing. Over time, the court system will become slower and slower. In response to this situation, many places use the form of sub-database to reduce the pressure on the production database.

[0003] Although database division can reduce the pressure on production databases, in actual application, the database division rules are not specifically formulated for the characteristic scenarios of court cases. Therefore, after database division, the supervision of cases in the whole province or the whole city or cross-court operations will be greatly restricted. The traditional database division process also lacks a verification mechanism, and the integrity of the data is easily destroyed. Summary of the invention

[0004] To solve the above problems, the present invention provides a method for processing hot and cold separation of business data, comprising the following steps:

[0005] S1: Formulate hot and cold data rules to classify data into cold data and hot data. Cold data refers to data that needs to be stored in the historical database, and hot data refers to data that needs to be stored in the production database.

[0006] S2: Use the scheduled task method to obtain cold data cases in the production database according to the hot and cold data rules, and migrate the cold data cases in the production database to the historical database. During the migration process, a verification mechanism is used to ensure data integrity, and operations on the production database and the historical database are recorded in the migration log.

[0007] S3: According to the user's instructions, data migration is performed from the production database to the historical database, or from the historical database to the production database for specific cases or part of the case information. A verification mechanism is used during the migration process to ensure data integrity.

[0008] Preferably, the hot and cold data rules are that data that meets the following conditions is cold data, otherwise it is hot data: the case has been archived or the case has not been operated on for more than a time threshold or the case has been closed or user personalized rules; wherein the user personalized rules are determined according to the instructions given by the user.

[0009] Preferably, the verification mechanism includes: after data migration, checking whether the migration target is written successfully; if so, deleting the corresponding data at the migration source and recording the success of the migration in the migration log; if the writing fails, rolling back the write operation and recording the failure of the migration in the migration log.

[0010] The present invention also provides a processing device for separating hot and cold business data, comprising the following modules:

[0011] Rule-making module: used to make rules for cold and hot data, and divide data into cold data and hot data. Cold data refers to data that needs to be placed in the historical database, and hot data refers to data that needs to be placed in the production database.

[0012] Periodic migration module: It is used to obtain cold data cases in the production database according to the hot and cold data rules by using the scheduled task method, and migrate the cold data cases in the production database to the historical database. During the migration process, the verification mechanism is used to ensure the integrity of the data. The operations on the production database and the historical database are recorded in the migration log.

[0013] Manual migration module: used to perform data migration from the production database to the historical database, or from the historical database to the production database for specific cases or part of the case information according to the user's instructions. The verification mechanism is used to ensure the integrity of the data during the migration process.

[0014] Preferably, the hot and cold data rules are that data that meets the following conditions is cold data, otherwise it is hot data: the case has been archived or the case has not been operated on for more than a time threshold or the case has been closed or user personalized rules; wherein the user personalized rules are determined according to the instructions given by the user.

[0015] Preferably, the verification mechanism includes: after data migration, checking whether the migration target is written successfully; if so, deleting the corresponding data at the migration source and recording the success of the migration in the migration log; if the writing fails, rolling back the write operation and recording the failure of the migration in the migration log.

[0016] Beneficial effects: The present invention is applied to the processing of court case data. In the process of data migration and re-migration, status flags are used to record data status at different links. After successful migration or re-migration, the original data of the business database or history database can be deleted only after verification, thereby ensuring data integrity. The process of human operation of data migration is allowed to further ensure data integrity before and after migration. DETAILED DESCRIPTION

[0017] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] A method for processing hot and cold separation of business data comprises the following steps:

[0019] S1: Formulate hot and cold data rules to classify data into cold data and hot data. Cold data refers to data that needs to be stored in the historical database, and hot data refers to data that needs to be stored in the production database.

[0020] Specifically, the hot and cold data rules are as follows: data that meets the following conditions is cold data, otherwise it is hot data: the case has been archived or the case has not been operated for a time threshold or the case has been closed or user personalized rules; the user personalized rules are determined according to the instructions given by the user;

[0021] S2: Use the scheduled task method to obtain cold data cases in the production database according to the hot and cold data rules, and migrate the cold data cases in the production database to the historical database. During the migration process, a verification mechanism is used to ensure data integrity, and operations on the production database and the historical database are recorded in the migration log.

[0022] Specifically, the verification mechanism is as follows: after data migration, check whether the migration destination is written successfully. If the writing is successful, delete the corresponding data at the migration source and record the success of this migration in the migration log; if the writing fails, roll back the writing operation and record the failure of this migration in the migration log;

[0023] S3: According to the user's instructions, data migration is performed from the production database to the historical database, or from the historical database to the production database for specific cases or part of the case information. During the migration process, a verification mechanism is used to ensure data integrity.

[0024] The manual data migration function of the user in step S3 can meet the personalized needs of the user, or when the automatic migration fails in step S2, the user can manually process and migrate the data.

[0025] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing cold and hot separation of business data, characterized in that The following steps are involved: S1: Formulate hot and cold data rules to classify data into cold data and hot data. Cold data refers to data that needs to be stored in the historical database, and hot data refers to data that needs to be stored in the production database. S2: Use the scheduled task method to obtain cold data cases in the production database according to the hot and cold data rules, and migrate the cold data cases in the production database to the historical database. During the migration process, a verification mechanism is used to ensure data integrity, and operations on the production database and the historical database are recorded in the migration log. S3: According to the user's instructions, data migration is performed from the production database to the historical database, or from the historical database to the production database for specific cases or part of the case information. A verification mechanism is used during the migration process to ensure data integrity.

2. A method for processing hot and cold separation of business data according to claim 1, characterized in that: The rules for hot and cold data are as follows: data that meets the following conditions is cold data, otherwise it is hot data: the case has been archived or the case has not been operated for a time threshold or the case has been closed or user personalized rules; the user personalized rules are determined according to the instructions given by the user.

3. A method for processing hot and cold separation of business data according to claim 1, characterized in that: The verification mechanism is as follows: after data migration, check whether the migration destination is written successfully. If the writing is successful, delete the corresponding data at the migration source and record the success of the migration in the migration log. If the write operation fails, the write operation is rolled back and the migration failure is recorded in the migration log.

4. A processing device for separating hot and cold business data, characterized in that Includes the following modules: Rule-making module: used to make rules for cold and hot data, and divide data into cold data and hot data. Cold data refers to data that needs to be placed in the historical database, and hot data refers to data that needs to be placed in the production database. Periodic migration module: It is used to obtain cold data cases in the production database according to the hot and cold data rules by using the scheduled task method, and migrate the cold data cases in the production database to the historical database. During the migration process, the verification mechanism is used to ensure the integrity of the data. The operations on the production database and the historical database are recorded in the migration log. Manual migration module: used to perform data migration from the production database to the historical database, or from the historical database to the production database for specific cases or part of the case information according to the user's instructions. The verification mechanism is used to ensure the integrity of the data during the migration process.

5. A processing device for separating hot and cold business data according to claim 4, characterized in that: The rules for hot and cold data are as follows: data that meets the following conditions is cold data, otherwise it is hot data: the case has been archived or the case has not been operated for a time threshold or the case has been closed or user personalized rules; the user personalized rules are determined according to the instructions given by the user.

6. A processing device for separating hot and cold business data according to claim 4, characterized in that: The verification mechanism is as follows: after data migration, check whether the migration destination is written successfully. If the writing is successful, delete the corresponding data at the migration source and record the success of the migration in the migration log. If the write operation fails, the write operation is rolled back and the migration failure is recorded in the migration log.