Data storage methods, devices, electronic equipment and storage media

By extracting the target data business characteristics from the bank's data system, generating processing links, and storing data processing information, the problems of low storage efficiency and high resource consumption in the bank's data system are solved, achieving more efficient data storage and retrieval.

CN117194425BActive Publication Date: 2026-11-10CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311153070.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2026-11-10
Estimated Expiration
2043-09-07

AI Technical Summary

Technical Problem

The storage efficiency of complex data in bank data systems is low, and the storage resource consumption is large, resulting in huge resource and management pressure.

Method used

By extracting the business characteristics of the target data, decomposing it into basic data and processing links, generating data processing information, and storing only this information to achieve the storage of the target data.

Benefits of technology

It improves data storage efficiency, reduces storage resource consumption, enhances data retrieval performance, and lowers maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117194425B_ABST
    Figure CN117194425B_ABST
Patent Text Reader

Abstract

This application provides a data storage method, apparatus, electronic device, and storage medium. The method involves acquiring target data to be stored and extracting its business characteristics. Based on these business characteristics, data processing information corresponding to the target data is obtained. This data processing information represents the processing chain that generates the target data by processing the basic data corresponding to the business characteristics. The data processing information is stored in a target location corresponding to the target data. This target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device. By extracting business characteristics and decomposing the target data into basic data and data processing information representing the processing chain that generates the target data by processing the basic data, and then storing only the data processing information, the purpose of storing the target data can be achieved. This improves data storage efficiency, reduces storage resource consumption, and enhances the data retrieval performance of the bank's data system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of financial systems, particularly to the field of customer service operations in financial systems, and specifically to a data storage method, apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, with the continuous growth of various financial businesses, banks' data systems store a large amount of business data. This includes basic business data such as transaction records and business processing records, as well as complex composite data generated based on basic business data, such as credit assessment records and risk exposure assessment records.

[0003] In existing technologies, when storing composite data, bank data systems typically store the entire composite data directly in the database.

[0004] The inventors discovered that existing solutions lead to problems such as low data storage efficiency and high storage resource consumption in bank data systems, putting enormous pressure on the resources and management of these systems. Summary of the Invention

[0005] This application provides a data storage method, apparatus, electronic device, and storage medium to solve the problems of low data storage efficiency and large storage resource consumption in existing bank data systems.

[0006] In a first aspect, this application provides a data storage method, comprising: acquiring target data to be stored and extracting business features of the target data; obtaining data processing information corresponding to the target data based on the business features, wherein the data processing information represents a processing chain for generating the target data by processing basic data corresponding to the business features; and storing the data processing information in a target location corresponding to the target data, wherein the target location is used to enable the terminal device to obtain the target data after being accessed by a terminal device.

[0007] In one possible design, obtaining data processing information corresponding to the target data based on the business characteristics includes: obtaining a processing level based on the business characteristics, wherein the processing level represents the link length of the processing link; and generating data processing information corresponding to the target data based on the processing level.

[0008] In one possible design, the processing level is obtained based on the business characteristics, including: determining first access restriction information for the target data based on the business characteristics, wherein the first access restriction information represents the shortest time interval between two requests for the target data by the terminal device; and obtaining the processing level based on the first access restriction information.

[0009] In one possible design, the processing link includes at least two link nodes, each representing a processing step that generates target data based on the basic data. Generating data processing information corresponding to the target data according to the processing level includes: acquiring a basic processing link, which is a set of all possible processing links that generate the target data solely from the basic data; determining at least one target link node from the basic processing link according to the processing level; acquiring intermediate layer data corresponding to the target link node, where the intermediate layer data is the output result of the processing step corresponding to the target link node; and generating the data processing information based on the intermediate layer data and remaining link nodes, where the remaining link nodes are the link nodes following the target link node in the basic processing link.

[0010] In one possible design, the method further includes: determining the encryption of the intermediate layer data based on the business characteristics of the target data to obtain encrypted intermediate layer data; the step of generating the data processing information based on the intermediate layer data and the remaining link nodes includes: generating the data processing information based on the encrypted intermediate layer data and the remaining link nodes.

[0011] In one possible design, the data processing information includes a first information item and a second information item, wherein the first information item represents the link nodes constituting the processing link, and the second information item represents the execution order among the link nodes; storing the data processing information to the target location corresponding to the target data includes: storing the first information item and the second information item to the first target location and the second target location corresponding to the target data, respectively.

[0012] In one possible design, extracting the business characteristics of the target data includes: parsing the target data and extracting a first data field of the target data; and obtaining the business characteristics of the target data based on the first data field, wherein the first data field represents at least one of the following: data access level, data business type, and business risk level.

[0013] Secondly, this application provides a data storage device, comprising:

[0014] The acquisition module is used to acquire the target data to be stored and extract the business features of the target data;

[0015] The processing module is used to obtain data processing information corresponding to the target data based on the business characteristics, wherein the data processing information represents the processing chain of generating the target data by processing the basic data corresponding to the business characteristics.

[0016] A storage module is used to store the data processing information to a target location corresponding to the target data. The target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device.

[0017] Thirdly, embodiments of this application provide an electronic device, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, causing the at least one processor to perform the data storage method described in the first aspect and various possible designs of the first aspect.

[0018] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the data storage method described in the first aspect and various possible designs of the first aspect.

[0019] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the data storage method described in the first aspect and various possible designs of the first aspect.

[0020] The data storage method, apparatus, electronic device, and storage medium provided in this application acquire target data to be stored and extract the business characteristics of the target data; based on the business characteristics, obtain data processing information corresponding to the target data, wherein the data processing information represents the processing chain for generating the target data by processing the basic data corresponding to the business characteristics; and store the data processing information in a target location corresponding to the target data, the target location being used to enable the terminal device to obtain the target data after being accessed by the terminal device. By extracting business characteristics and decomposing the target data into basic data and data processing information representing the processing chain for generating the target data by processing the basic data, and then storing only the data processing information, the purpose of storing the target data can be achieved, thereby improving data storage efficiency, reducing storage resource consumption, improving the data reading performance of the bank data system, and reducing data maintenance costs. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0022] Figure 1 An application scenario diagram of a data storage method provided in an embodiment of this application;

[0023] Figure 2 Flowchart of the data storage method provided in the embodiments of this application Figure 1 ;

[0024] Figure 3 for Figure 2 A flowchart illustrating the specific implementation of step S101 in the illustrated embodiment;

[0025] Figure 4 for Figure 2 A flowchart illustrating the specific implementation of step S102 in the illustrated embodiment;

[0026] Figure 5 This is a schematic diagram of a processing link for generating target data from basic data, provided by an embodiment of the present disclosure.

[0027] Figure 6 A schematic diagram illustrating a target data reading process provided in an embodiment of this disclosure;

[0028] Figure 7 Flowchart of the data storage method provided in the embodiments of this application Figure 2 ;

[0029] Figure 8 A schematic diagram of a target link node provided in an embodiment of this disclosure;

[0030] Figure 9 A schematic diagram of the structure of the data storage device provided in the embodiments of this application;

[0031] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0032] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0034] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0035] The application scenarios in which this application is applied will be introduced first below. Figure 1 This is an application scenario diagram of a data storage method provided in an embodiment of this application. For example... Figure 1 As shown, the data storage method provided in this application embodiment can be applied to bank data systems for customer service, and more specifically, to application scenarios where data is stored within a bank data system. The executing entity in this embodiment can be a data processing server corresponding to the bank data system, or other electronic devices that perform similar functions. (Reference) Figure 1 As shown, the data processing server communicates with the terminal device to obtain composite data. The terminal device is operated by bank employees, and the composite data can be generated by the terminal device based on specific indicators and algorithms to achieve functional data for purposes such as risk assessment and trend prediction. Subsequently, the data processing server stores the aforementioned business data and functional data uniformly in a database for storage and management. This database can be deployed on the data processing server or on other storage media; examples are not provided here.

[0036] In existing technologies, when storing complex data, bank data systems typically store the entire complex data directly in the database. The inventors discovered that this approach leads to low data storage efficiency and high storage resource consumption in bank data systems, placing significant pressure on their resources and management.

[0037] To address the aforementioned technical problems, this application proposes the following technical concept: By extracting business characteristics and decomposing the target data into basic data and representation data processing information representing the processing chain of the target data through data processing of the basic data, and then storing only the data processing information, the purpose of storing the target data can be achieved, thereby improving data storage efficiency, reducing storage resource consumption, improving the data reading performance of the bank's data system, and reducing data maintenance costs, thus solving the aforementioned technical problems.

[0038] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0039] This application provides a data storage method. Figure 2 Flowchart of the data storage method provided in the embodiments of this application Figure 1 .like Figure 2As shown, the data storage method includes:

[0040] Step S101: Obtain the target data to be stored and extract the business characteristics of the target data.

[0041] For example, refer to Figure 1 The illustrated application scenario diagram shows that the data storage method provided in this application embodiment can be executed by a data processing server. The data processing server receives target data sent by other servers or terminal devices and processes it. This target data is composite data to be stored in the database; that is, the target data is data obtained after processing (operation, filtering, merging, etc.) multiple basic data. The specific method by which the data processing server processes the target data includes extracting the business characteristics of the target data. Business characteristics are used to characterize the specific financial business corresponding to the target data. For example, if the target data is data used to assess the value of specific goods, the specific financial business corresponding to the target data is futures trading, risk assessment, etc. Therefore, exemplarily, the business characteristic of the target data can be a feature identifier composed of multiple characters, which represents a specific financial business; the business characteristic can also be a string or matrix, which represents a non-specific financial business. The aforementioned non-specific financial business can be a cross-combination of multiple existing, defined financial businesses, which will not be elaborated further here.

[0042] Furthermore, the business characteristics of the target data can be obtained through the data identifier or attribute information of the target data. Specifically, the target data can be implemented in the form of a data file. That is, after receiving the data file corresponding to the target data, the data processing server uses preset rules to map based on the name of the data file or the file attributes of the data file to obtain the business characteristics of the target data. In another possible implementation, after obtaining the target data, the data processing server parses the target data to obtain the business characteristics of the target data.

[0043] For example, such as Figure 3 As shown, the specific implementation of step S101 includes:

[0044] Step S1011: Parse the target data and extract the first data field of the target data.

[0045] Step S1012: Based on the first data field, obtain the business characteristics of the target data.

[0046] For example, the target data consists of multiple data fields. Based on preset parsing rules for the target data, the target data is parsed to determine and extract the content of the first data field. Then, based on the first data field, the business characteristics of the target data are obtained. The first data field may include one or more data fields. When the first data field includes multiple data fields, the business characteristics of the target data are jointly determined based on the content of these multiple data fields.

[0047] Furthermore, in one possible implementation, when the first data field is a single data field, it includes a feature identifier representing a business characteristic. This feature identifier allows the determination (generation) of the corresponding business characteristic. For details, please refer to the previous embodiments for an explanation of the business characteristic implementation; specific examples will not be repeated here. In another possible implementation, when the first data field includes multiple data fields of the target data, the field content corresponding to each data field is extracted separately, and then the field content is combined to obtain the data characteristic of the target data. For example, the field content corresponding to the first data field includes at least one of the following: data access level, data business type, and business risk level. More specifically, for example, based on [data access level = 1, data business type = 2], business characteristic A is obtained; based on [data access level = 4, data business type = 2, business risk level = 1], business characteristic B is obtained.

[0048] Step S102: Based on the business characteristics, obtain the data processing information corresponding to the target data. The data processing information represents the processing chain of generating the target data by processing the basic data corresponding to the business characteristics.

[0049] For example, after obtaining the business characteristics of the target data, a corresponding processing strategy is selected based on these characteristics to process the target data, thereby obtaining the data processing information corresponding to the target data. For instance, when the business characteristic is A, the target data is processed using processing strategy method_1 to obtain data processing information Info_1; when the business characteristic is B, the target data is processed using processing strategy method_2 to obtain data processing information Info_2.

[0050] The data processing information represents the processing chain that processes basic data corresponding to business characteristics to generate target data. Basic data refers to fundamental business data, such as transaction volume data and transaction record data. This basic data can be pre-stored in the bank's data system, which updates and records this data according to preset update rules. The processing chain refers to a collection of multiple ordered processing steps. After processing the basic data through the processing chain represented by the data processing information, the target data can be obtained. The processing chain can be identified by a data sequence, which stores functional interface identifiers, method identifiers, or function identifiers. When a processing chain is triggered, the corresponding functional interface, method, or function corresponding to the identifier in the data sequence is called to implement the corresponding processing steps. The process of processing basic data through the processing chain represented by the data processing information is equivalent to recreating the target data generation process. Since the processing chain (data sequence) does not contain actual numerical data and its data volume is very small, storing the processing chain can effectively reduce storage space usage.

[0051] In one possible implementation, such as Figure 4 As shown, the specific implementation steps of step S102 include:

[0052] Step S1021: Based on the business characteristics, obtain the processing level, which represents the link length of the processing link.

[0053] Step S1022: Generate data processing information corresponding to the target data according to the processing level.

[0054] For example, a processing link includes at least two link nodes, each representing a processing step to obtain target data based on base data. In the process of generating target data from base data, there may be multiple different processing links. The link length represents the number of steps involved in processing the base data; a longer link length indicates more processing steps, and vice versa. Figure 5 This is a schematic diagram of a processing link for generating target data from basic data, provided by an embodiment of this disclosure. Figure 5As shown, for target data A, it needs to be generated using basic data A, basic data B, and basic data C. The specific processing chains include processing chain_1 and processing chain_2 (shown as chain_1 and chain_2 in the diagram). Processing chain_1 corresponds to three link nodes P1, P2, and P3; processing chain_2 corresponds to two link nodes P2 and P3. That is, the link length of processing chain_1 is 3, and the link length of processing chain_2 is 2. After obtaining the business characteristics of the target data, the corresponding processing level, i.e., the link length, is determined based on these characteristics. For example, when the business characteristic of the target data is A, the corresponding processing level is determined to be 2, thus determining the corresponding data processing information as processing chain_2.

[0055] Regarding the above steps, generally speaking, the shorter the processing link length, the higher the efficiency of generating target data based on data processing information; that is, the higher the efficiency of retrieving target data from the database after the target data (data processing information) is stored. However, in the financial system field and in financial data processing application scenarios, different basic data may have different confidentiality levels and access permissions, and business characteristics are related to access permissions. Therefore, to ensure that the target data can be reconstructed based on data processing information, this embodiment obtains a matching processing level representing the link length of the processing link through business characteristics, and then generates the corresponding processing link based on this processing level. Considering access permissions, the shortest link length, i.e., the data processing information, is obtained. This ensures data security and data storage efficiency.

[0056] Step S103: Store the data processing information in the target location corresponding to the target data. The target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device.

[0057] For example, after obtaining the data processing information, the data processing information is stored in the target location corresponding to the target data. For instance, the target location is the storage address or index of the database. Based on the data identifier of the target data, a storage address is generated or an index table is created, realizing the mapping between the data identifier of the target data and the storage location of the data processing information, thereby achieving the storage of the target data. Subsequently, when other terminal devices or servers need to retrieve the target data from the database, they search based on the data identifier of the target data, determine the corresponding target location, and send an access request. Based on this access request, the server triggers the data processing information, that is, executes the processing chain corresponding to the data processing information, generates the target data based on the basic data, and sends it to the sender of the access request, thereby achieving the purpose of data retrieval.

[0058] Figure 6This is a schematic diagram of a target data reading process provided in an embodiment of the present disclosure, such as... Figure 6 As shown, when a terminal device needs to obtain target data, it sends an access request for the target data to the data processing server. The access request contains the data identifier com_data_1 of the target data a. Based on the data identifier com_data_1, the data processing server retrieves the corresponding data processing information info_1 from the database, and sends a basic data request to the basic data server based on the data processing information info_1, obtaining the corresponding basic data Data_1, Data_2, and Data_3 (shown as [Data_1, Data_2, Data_3] in the diagram). Then, the data processing server reconstructs the Data_1, Data_2, and Data_3 data based on the data processing information info_1 and the corresponding basic data to obtain the target data, and sends the target data to the terminal device.

[0059] In another possible implementation, after the terminal device sends an access request for the target data to the data processing server, the data processing server can directly return the corresponding data processing information to the terminal device, and the terminal device can then perform the steps of accessing the basic data server and restoring the target data to obtain the target data. The specific implementation can be set according to needs, and no specific restrictions are imposed here.

[0060] The process of generating and storing data processing information described above is equivalent to compressing the target data, which logically decomposes the target data into basic data and data processing information. Since the basic data can be reused for different target data, and the space occupied by the data processing information is very small, it can reduce the storage resource occupation of composite data (target data) and improve the data storage efficiency of the bank's data system.

[0061] In this embodiment, target data to be stored is acquired, and its business characteristics are extracted. Based on these business characteristics, data processing information corresponding to the target data is obtained. This data processing information represents the processing chain that generates the target data by processing the basic data corresponding to the business characteristics. The data processing information is stored in the target location corresponding to the target data. This target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device. By extracting business characteristics and decomposing the target data into basic data and data processing information representing the processing chain that generates the target data by processing the basic data, and then storing only the data processing information, the purpose of storing the target data can be achieved. This improves data storage efficiency, reduces storage resource consumption, improves the data reading performance of the bank's data system, and reduces data maintenance costs.

[0062] Figure 7Flowchart of the data storage method provided in the embodiments of this application Figure 2 .like Figure 7 As shown, this data storage method includes the following steps:

[0063] Step S201: Obtain the target data to be stored and extract the business characteristics of the target data.

[0064] Step S202: Based on the business characteristics, determine the first access restriction information of the target data. The first access restriction information represents the shortest time interval between two requests for the target data by the terminal device.

[0065] Step S203: Obtain the processing level based on the first access restriction information.

[0066] For example, after extracting the business characteristics of the target data, one possible implementation is to first determine the shortest time interval between two requests for the target data by the terminal device based on these business characteristics, i.e., the first access restriction information. Specifically, in the financial system field and financial data processing application scenarios, to ensure the stability and security of the bank data system, the access frequency of target data with different business characteristics is usually restricted, which is the shortest time interval between two requests for the target data by the terminal device. For example, for frequently used target data with low access requirements and low security levels, a shorter minimum time interval is corresponding to it, such as 5 seconds, meaning it can be accessed once every 5 seconds. For infrequently used target data with high security levels, a longer minimum time interval is corresponding to it, such as 30 seconds. Based on the previous embodiments, the processing level represents the length of the processing link. A higher processing level (longer processing link) results in more processing steps and a longer processing time. During the process of reading the target data, when the data processing server restores the target data based on the above processing link (data processing information), it faces the problem of how to allocate computing resources. That is, the higher the processing level of the processing link, the less storage and retrieval of basic data can be (see reference). Figure 6 As shown in the diagram, the increase in link nodes increases the overhead of computing resources. In this embodiment, to address this issue, the corresponding processing level is determined based on the first access restriction information and the shortest time interval represented by the first access restriction information. When the shortest time interval corresponding to the target data is long, a higher processing level can be used to generate the processing link, thereby reducing the storage and retrieval overhead of the basic data and intermediate layer data (described in subsequent embodiments); while when the shortest time interval corresponding to the target data is short, a lower processing level can be used to generate the processing link, thereby reducing the consumption of computing resources and reducing the lag during data access.

[0067] Step S204: Obtain the basic processing links. The basic processing links are the set of all possible processing links that generate target data from basic data.

[0068] Step S205: Based on the processing level, determine at least one target link node from the basic processing link.

[0069] Step S206: Obtain the intermediate layer data corresponding to the target link node. The intermediate layer data is the output result of the processing step corresponding to the target link node.

[0070] For example, after determining the processing level, the pre-generated basic processing links are first obtained. These basic processing links are the set of all possible processing links that generate the target data solely from the basic data. Figure 6 The examples shown in the embodiment are sets of processing chains chain_1 and chain_2. It can be understood that any other processing chains that can obtain the target data using only the basic data are also included in the basic processing chains. Then, based on the processing levels determined in the previous steps, the target chain nodes are determined. Figure 8 This is a schematic diagram of a target link node provided in an embodiment of the present disclosure, such as... Figure 8 As shown, exemplarily, in this embodiment, the processing level is the number of nodes from the end of the basic processing link to the target link node. The higher the processing level, the farther the target link node is from the end of the processing link. Based on the previous steps, the processing level is 3. Therefore, the third-to-last link node P1 in the basic processing link is determined as the target link node. Furthermore, the figure also shows that when the processing level is 2, the target link node is link node P2, and when the processing level is 1, the target link node is link node P3. Next, the intermediate layer data corresponding to the target link node is obtained. The intermediate layer data is the output result of the processing step corresponding to the target link node; that is, the intermediate layer data is pre-generated data. Then, based on the intermediate layer data and the remaining link nodes, data processing information is generated.

[0071] In this embodiment, a target link node is determined by the processing level. Then, the intermediate layer data corresponding to the target link node and the remaining link nodes are used to generate data processing information. When restoring the target data in the subsequent process (the process of reading the target data from the database), the target data is restored starting from the intermediate layer data. This is equivalent to using the intermediate layer data as the basic data and executing the processing link generated by the remaining link nodes, thereby shortening the length of the processing link, reducing the computing resource overhead of the data processing server, reducing query time, and improving query efficiency.

[0072] Optionally, after step S206, the method further includes:

[0073] Step S207: Based on the business characteristics of the target data, determine the encryption of the intermediate layer data to obtain the encrypted intermediate layer data.

[0074] Step S208: Generate data processing information based on the encrypted intermediate layer data and the remaining link nodes. The data processing information includes a first information item and a second information item. The remaining link nodes are the link nodes after the target link node in the basic processing link.

[0075] For example, after obtaining the intermediate layer data, an encryption algorithm can be determined based on the business characteristics of the target data to encrypt the intermediate layer data. Since the intermediate layer data needs to be stored in the database as part of the data processing information, encrypting it to generate encrypted intermediate layer data, and then generating data processing information based on the encrypted intermediate layer data, can improve the security of the data processing information. Even if the contents of the database are read without authorization, the final target data cannot be restored.

[0076] Step S209: Store the first information item and the second information item in the first target position and the second target position corresponding to the target data, respectively.

[0077] Further, exemplarily, the data processing information includes a first information item and a second information item, wherein the first information item represents the link nodes constituting the processing link, and the second information item represents the execution order between the link nodes. After the data processing information is generated, the first and second information items constituting the data processing information are stored independently, thereby further improving the security of the target data. This ensures that even if the first and second information items are obtained separately under unauthorized requests, the target data cannot be recovered, thereby further improving data security.

[0078] Figure 9 This is a schematic diagram of the data storage device provided in an embodiment of this application. Figure 9 As shown, the data storage device 3 includes:

[0079] The acquisition module 31 is used to acquire the target data to be stored and extract the business characteristics of the target data;

[0080] Processing module 32 is used to obtain data processing information corresponding to target data based on business characteristics. The data processing information represents the processing chain of generating target data by processing the basic data corresponding to the business characteristics.

[0081] The storage module 33 is used to store data processing information to the target location corresponding to the target data. The target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device.

[0082] In some possible embodiments, the processing module 32 is specifically used to: obtain a processing level based on business characteristics, wherein the processing level represents the link length of the processing link; and generate data processing information corresponding to the target data based on the processing level.

[0083] In some possible embodiments, when the processing module 32 obtains the processing level based on the business characteristics, it is specifically used to: determine the first access restriction information of the target data based on the business characteristics, wherein the first access restriction information represents the shortest time interval between two requests for the target data by the terminal device; and obtain the processing level based on the first access restriction information.

[0084] In some possible embodiments, the processing link includes at least two link nodes, each representing a processing step that generates target data based on basic data. When generating data processing information corresponding to the target data according to the processing level, the processing module 32 specifically performs the following: acquiring the basic processing link, which is a set of all possible processing links that generate target data solely from basic data; determining at least one target link node from the basic processing link according to the processing level; acquiring intermediate layer data corresponding to the target link node, where the intermediate layer data is the output result of the processing step corresponding to the target link node; and generating data processing information based on the intermediate layer data and the remaining link nodes, where the remaining link nodes are link nodes following the target link node in the basic processing link.

[0085] In some possible embodiments, the processing module 32 is further configured to: determine the encryption of intermediate layer data based on the business characteristics of the target data, and obtain encrypted intermediate layer data; when the processing module 32 generates data processing information based on the intermediate layer data and the remaining link nodes, it is specifically configured to: generate data processing information based on the encrypted intermediate layer data and the remaining link nodes.

[0086] In some possible embodiments, the data processing information includes a first information item and a second information item, wherein the first information item represents the link nodes constituting the processing link, and the second information item represents the execution order between the link nodes; the storage module 33 is specifically used to: store the first information item and the second information item to the first target location and the second target location corresponding to the target data, respectively.

[0087] In some possible embodiments, when the acquisition module 31 extracts the business characteristics of the target data, it is specifically used to: parse the target data and extract the first data field of the target data; and obtain the business characteristics of the target data based on the first data field, wherein the first data field represents at least one of the following: data access level, data business type, and business risk level.

[0088] The data storage device 3 provided in this application embodiment can be used to execute the technical solution of the data storage method in the above embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0089] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. For example, processing module 32 can be a separate processing element, or it can be integrated into a chip in the above device. Alternatively, it can be stored as program code in the memory of the above device, and its functions can be called and executed by a processing element of the device. The implementation of other modules is similar. Moreover, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through the integrated logic circuits in the hardware of the processor element or through software instructions.

[0090] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device may include: transceiver 121, processor 122, and memory 123.

[0091] Processor 122 executes computer execution instructions stored in memory, causing processor 122 to perform the scheme in the above embodiments. Processor 122 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0092] The memory 123 is connected to the processor 122 via the system bus and completes communication between them. The memory 123 is used to store computer program instructions.

[0093] Transceiver 121 can be used to obtain the task to be run and its configuration information.

[0094] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. Transceivers are used to enable communication between database access devices and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory.

[0095] The electronic device provided in this application embodiment may be the data processing server or terminal device described in the above embodiments.

[0096] This application also provides a chip for executing instructions, which is used to execute the data storage method described in the above embodiments.

[0097] This application also provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the data storage method described in the above embodiments.

[0098] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when the at least one processor executes the computer program, it can implement the technical solution of the data storage method in the above embodiments.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0100] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0101] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0102] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0103] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0104] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0105] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0106] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0107] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. The processor and storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic control unit or main control device.

[0108] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data storage method, characterized in that, include: Obtain the target data to be stored, and extract the business characteristics of the target data; Based on the business characteristics, a first access restriction information for the target data is determined. The first access restriction information represents the shortest time interval between two requests for the target data by the terminal device. The shortest time interval is related to the security level of the target data. The shortest time interval for target data with a higher security level is longer than the shortest time interval for target data with a lower security level. Based on the first access restriction information, a processing level is obtained, wherein the processing level represents the link length of the processing link; the link length of the processing link represents the number of steps to process the basic data, and the longer the link length, the more steps are taken; the shortest time interval is proportional to the processing level. According to the processing level, data processing information corresponding to the target data is generated, wherein the data processing information represents the processing link for generating the target data by processing the basic data corresponding to the business feature; the data processing information includes a first information item and a second information item, wherein the first information item represents the link node constituting the processing link, and the second information item represents the execution order between each link node. The data processing information is stored in the target location corresponding to the target data. The target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device. The step of storing the data processing information in the target location corresponding to the target data includes: storing the first information item and the second information item in the first target location and the second target location corresponding to the target data, respectively. The processing link includes at least two link nodes, each link node representing a processing step for obtaining target data based on the basic data; generating data processing information corresponding to the target data according to the processing hierarchy includes: Obtain the basic processing chain, which is a set of all possible processing chains that generate the target data solely from the basic data; Based on the processing level, at least one target link node is determined from the basic processing link; the processing level is the number of nodes from the end of the basic processing link to the target link node. The higher the processing level, the closer the target link node is to the end of the processing link. Obtain the intermediate layer data corresponding to the target link node, wherein the intermediate layer data is the output result of the processing steps corresponding to the target link node; Based on the business characteristics of the target data, the encryption of the intermediate layer data is determined, and encrypted intermediate layer data is obtained; The data processing information is generated based on the encrypted intermediate layer data and the remaining link nodes, wherein the remaining link nodes are the link nodes after the target link node in the basic processing link; the intermediate layer data is used as the basic data to execute the processing link generated by the remaining link nodes when restoring the target data.

2. The method according to claim 1, characterized in that, The business features for extracting the target data include: Parse the target data and extract the first data field of the target data; Based on the first data field, the business characteristics of the target data are obtained, wherein the first data field represents at least one of the following: Data access level, data service type, and business risk level.

3. A data storage device, characterized in that, include: The acquisition module is used to acquire the target data to be stored and extract the business features of the target data; The processing module is configured to determine first access restriction information of the target data based on the business characteristics, wherein the first access restriction information represents the shortest time interval between two requests for the target data by the terminal device; Based on the first access restriction information, a processing level is obtained, wherein the processing level represents the link length of the processing link; the link length of the processing link represents the number of steps to process the basic data, and the longer the link length, the more steps are taken; the shortest time interval is proportional to the processing level. According to the processing level, data processing information corresponding to the target data is generated, wherein the data processing information represents the processing link for generating the target data by processing the basic data corresponding to the business feature; the data processing information includes a first information item and a second information item, wherein the first information item represents the link node constituting the processing link, and the second information item represents the execution order between each link node. A storage module is used to store the data processing information to a target location corresponding to the target data, wherein the target location is used to enable the terminal device to obtain the target data after being accessed by the terminal device; The storage module is specifically used to store the first information item and the second information item to the first target location and the second target location corresponding to the target data, respectively. The processing link includes at least two link nodes, and each link node represents a processing step that obtains target data based on the basic data. The processing module is specifically used to obtain the basic processing links, which are a set of all possible processing links for generating the target data solely from the basic data; Based on the processing level, at least one target link node is determined from the basic processing link; the processing level is the number of nodes from the end of the basic processing link to the target link node. The higher the processing level, the closer the target link node is to the end of the processing link. Obtain the intermediate layer data corresponding to the target link node, wherein the intermediate layer data is the output result of the processing steps corresponding to the target link node; Based on the business characteristics of the target data, the encryption of the intermediate layer data is determined, and encrypted intermediate layer data is obtained; The data processing information is generated based on the encrypted intermediate layer data and the remaining link nodes, wherein the remaining link nodes are the link nodes after the target link node in the basic processing link; the intermediate layer data is used as the basic data to execute the processing link generated by the remaining link nodes when restoring the target data.

4. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-2.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-2.

6. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-2.

Citation Information

Patent Citations

  • Data storage method and device, electronic equipment and storage medium

    CN112948396A

  • Data processing method and device

    CN115168413A