Data resource efficient configuration database system based on block chain technology
By introducing blockchain technology into the database system, building an efficient database system for data resource allocation is solved, and the problem of inefficiency of traditional database systems in cross-organization and cross-platform data sharing and configuration scenarios is achieved, efficient data retrieval and storage resource utilization are achieved.
Patent Information
- Application Number
- CN202510256471.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-06-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional database systems have data island problems in cross-organization and cross-platform data sharing and configuration scenarios, which are inefficient and costly, and cannot respond to users' massive data retrieval needs in a timely manner.
The database system is efficiently configured with data resources based on blockchain technology, and through data storage modules, resource management modules, index query modules and patrol inspection modules, a hybrid storage architecture and dynamic optimization mechanism are realized to improve data retrieval efficiency.
Through a hybrid storage architecture and dynamic scheduling engine, the blockchain storage load is reduced, the storage resource utilization rate is optimized, the redundant overhead is reduced, data retrieval efficiency is improved, and the user's data needs can be responded to timely.
Smart Images

Figure CN120196613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical digital data processing, and more particularly to a database system for efficient allocation of data resources based on blockchain technology. Background Art
[0002] With the explosive growth of data resources, traditional database systems have gradually revealed significant defects in cross-organization and cross-platform data sharing and configuration scenarios. First, the centralized storage architecture leads to the problem of data islands: the data formats and permission policies between different institutions are incompatible, and the circulation of resources depends on third-party intermediaries, resulting in low efficiency and high costs. The retrieval of massive data depends on a centralized index, the response speed is limited by the performance of a single point, and there is a lack of a dynamic optimization mechanism, making it difficult to meet the business requirements of high concurrency and strong real-time performance.
[0003] Many database systems have been developed. After a large amount of retrieval and reference, it is found that existing database systems such as the system disclosed in the publication number CN118331942A. These system methods generally determine the required number of containers by according to the resource-related information of each plugin package and the resource capacity limit of a single container; then analyze the code files included in each plugin package to calculate the similarity rate between each pair of plugin packages; thus, the resource reuse matrix corresponding to each plugin package can be determined according to the similarity rate between each pair of plugin packages and the resource-related information of each plugin package; furthermore, each plugin package can be allocated to the corresponding container according to the resource reuse matrix and the allocation rules. However, when processing massive data content, the retrieval efficiency of this system will decrease, and it cannot respond to users' data requirements in a timely manner. Summary of the Invention
[0004] The purpose of the present invention is to propose a database system for efficient allocation of data resources based on blockchain technology in view of the existing deficiencies.
[0005] The present invention adopts the following technical solutions:
[0006] A database system for efficient allocation of data resources based on blockchain technology includes a data storage module, a resource management module, an index query module, and a patrol inspection module;
[0007] The data storage module is used to store data information, the resource management module is used to control and manage the resource configuration process, the index query module is used to query resource content, and the patrol inspection module is used to perform security checks on the resource content;
[0008] The data storage module includes an on-chain storage unit, an off-chain storage unit, and a storage control unit. The on-chain storage unit stores summary information based on the blockchain. The off-chain storage unit is used to store the original resources. The storage control unit is used to control the data storage process;
[0009] The resource management module includes a resource registration unit, a dual classification unit, and a storage configuration unit. The resource registration unit is used to register the resource content to be stored. The dual classification unit is used to classify the registered content. The storage configuration unit is used to configure the storage space for the resource content;
[0010] The index query module includes a task management unit, a cross-index unit, and a task interaction unit. The task management unit is used to manage resource query tasks. The cross-index unit indexes the resource content based on the query task. The task interaction unit delivers relevant information based on the index result;
[0011] The patrol inspection module includes a status monitoring unit, a calculation verification unit, and a data repair unit. The status monitoring unit is used to monitor the interaction status of the resource content. The calculation verification unit is used to verify the correctness of the resource content. The data repair unit is used to repair the damaged resource content.
[0012] Further, the on-chain storage unit includes a blockchain interface processor, a hash generation processor, and a source data anchoring processor. The blockchain interface processor is used to connect to the blockchain platform. The hash generation processor is used to perform hash processing on the resource content to obtain summary information. The source data anchoring processor is used to write the summary information into the blockchain.
[0013] Further, the process of the system performing storage configuration on the resource content includes the following steps:
[0014] S1. The user registers the source data through the resource registration unit;
[0015] S2. The metadata classification processor classifies the source data;
[0016] S3. The hash generation processor performs hash processing on the source data to obtain a summary;
[0017] S4. The source data anchoring processor is used to write the summary information into the blockchain and return the summary information to the dual classification processor;
[0018] S5. The summary classification processor classifies the summary information;
[0019] S6. The storage configuration unit processes to obtain the storage configuration;
[0020] S7. Save the source data as resource content to the off-chain storage unit.
[0021] Further, the cross-index unit includes an index execution processor, an index acceleration processor, and an index cache processor. The index execution processor is used to execute index instructions. The index acceleration processor is used to accelerate different index instructions of the same query task. The index cache processor is used to save the index results within a fixed time for all index instructions to use.
[0022] The acceleration process of the index acceleration processor includes the following steps:
[0023] S21. Wait for an index instruction to detect associated information.
[0024] S22. Return the position information of the detection point, called the target point.
[0025] S23. Obtain another index instruction to be accelerated, called the target index instruction.
[0026] S24. Determine the jump point based on the target point and the current detection point of the target index instruction.
[0027] S25. Accelerate the target index instruction to the jump point and then continue to execute.
[0028] Further, the status monitoring unit includes an interaction trigger processor, an information statistics processor, and a content selection processor. The interaction trigger processor is used to trigger the interaction operation of the resource content. The information statistics processor is used to count the interaction times of the resource content. The content selection processor is used to select the resource content that needs to be verified.
[0029] The content selection processor calculates the verification index P of the resource content according to the following formula:
[0030]
[0031] where n is the interaction times of the resource content, and t(i) is the time difference from the i-th interaction to the present.
[0032] The content selection processor sorts according to the verification index from large to small and then outputs the verification.
[0033] The beneficial effects achieved by the present invention are:
[0034] This system improves efficiency through a hybrid storage architecture: by storing key metadata on-chain and original data in off-chain distributed storage, it significantly reduces the blockchain storage load while ensuring data credibility. Combining with the dynamic scheduling engine of the storage control unit, it automatically checks data according to the access frequency, optimizes the utilization rate of storage resources, and reduces redundant overhead.
[0035] To enable a further understanding of the features and technical content of the present invention, please refer to the following detailed description of the present invention and the attached drawings. However, the provided drawings are only for reference and illustration, and are not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the overall structural framework of the present invention;
[0037] Figure 2 It is a schematic diagram of the composition of the data storage module of the present invention;
[0038] Figure 3 It is a schematic diagram of the composition of the resource management module of the present invention;
[0039] Figure 4 It is a schematic diagram of the composition of the index query module of the present invention;
[0040] Figure 5 It is a schematic diagram of the composition of the patrol inspection module of the present invention;
[0041] Figure 6 It is a comparison table of the effect data between the present invention and a general system. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following are specific embodiments to illustrate the implementation manners of the present invention. Those skilled in the art can understand the advantages and effects of the present invention from the content disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and various details in this specification can also be modified and changed based on different viewpoints and applications without departing from the spirit of the present invention. Additionally, the attached drawings of the present invention are only simple schematic illustrations and are not drawn according to actual sizes, which is stated in advance. The following embodiments will further detail the related technical content of the present invention, but the disclosed content is not intended to limit the protection scope of the present invention.
[0043] Embodiment 1.
[0044] This embodiment provides an efficient data resource allocation database system based on blockchain technology, combined with Figure 1 , including a data storage module, a resource management module, an index query module, and a patrol inspection module;
[0045] The data storage module is used to store data information, the resource management module is used to control and manage the resource configuration process, the index query module is used to query resource content, and the patrol inspection module is used to perform security checks on resource content;
[0046] The data storage module includes an on-chain storage unit, an off-chain storage unit, and a storage control unit. The on-chain storage unit stores summary information based on the blockchain. The off-chain storage unit is used to store the original resources. The storage control unit is used to control the data storage process;
[0047] The resource management module includes a resource registration unit, a dual classification unit, and a storage configuration unit. The resource registration unit is used to register the resource content to be stored. The dual classification unit is used to classify the registered content. The storage configuration unit is used to configure the storage space for the resource content;
[0048] The index query module includes a task management unit, a cross-index unit, and a task interaction unit. The task management unit is used to manage resource query tasks. The cross-index unit indexes the resource content based on the query task. The task interaction unit delivers relevant information based on the index result;
[0049] The patrol inspection module includes a status monitoring unit, a calculation verification unit, and a data repair unit. The status monitoring unit is used to monitor the interaction status of the resource content. The calculation verification unit is used to verify the correctness of the resource content. The data repair unit is used to repair the damaged resource content.
[0050] The on-chain storage unit includes a blockchain interface processor, a hash generation processor, and a source data anchoring processor. The blockchain interface processor is used to connect to the blockchain platform. The hash generation processor is used to perform hash processing on the resource content to obtain summary information. The source data anchoring processor is used to write the summary information into the blockchain.
[0051] The process of the system configuring the storage for the resource content includes the following steps:
[0052] S1. The user registers the source data through the resource registration unit;
[0053] S2. The metadata classification processor classifies the source data;
[0054] S3. The hash generation processor performs hash processing on the source data to obtain a summary;
[0055] S4. The source data anchoring processor is used to write the summary information into the blockchain and return the summary information to the dual classification processor;
[0056] S5. The summary classification processor classifies the summary information;
[0057] S6. The storage configuration unit processes to obtain the storage configuration;
[0058] S7. Save the source data as the resource content to the off-chain storage unit.
[0059] The cross-index unit includes an index execution processor, an index acceleration processor, and an index cache processor. The index execution processor is used to execute index instructions. The index acceleration processor is used to accelerate different index instructions for the same query task. The index cache processor is used to save the index results within a fixed time for all index instructions to use;
[0060] The acceleration process of the index acceleration processor includes the following steps:
[0061] S21. Wait for an index instruction to detect associated information;
[0062] S22. Return the position information of the detection point, which is called the target point;
[0063] S23. Obtain another index instruction that needs to be accelerated, which is called the target index instruction;
[0064] S24. Determine a jump point based on the target point and the current detection point of the target index instruction;
[0065] S25. Accelerate the target index instruction to the jump point and then continue to execute.
[0066] The status monitoring unit includes an interaction trigger processor, an information statistics processor, and a content selection processor. The interaction trigger processor is used to trigger the interaction operation of resource content. The information statistics processor is used to count the interaction times of resource content. The content selection processor is used to select the resource content that needs to be verified;
[0067] The content selection processor calculates the verification index P of the resource content according to the following formula:
[0068]
[0069] where n is the interaction times of this resource content, and t(i) is the time difference from the i-th interaction to the present;
[0070] The content selection processor outputs the verification after sorting the verification indexes from large to small.
[0071] Embodiment 2.
[0072] This embodiment includes all the contents of Embodiment 1 and provides an efficient configuration database system for data resources based on blockchain technology, including a data storage module, a resource management module, an index query module, and a patrol inspection module;
[0073] The data storage module is used to store data information, the resource management module is used to control and manage the resource configuration process, the index query module is used to query resource content, and the patrol inspection module is used to perform security inspections on resource content;
[0074] Combined with Figure 2 , the data storage module includes an on-chain storage unit, an off-chain storage unit, and a storage control unit. The on-chain storage unit stores summary information based on the blockchain, the off-chain storage unit is used to store original resources, and the storage control unit is used to control the data storage process;
[0075] Combined with Figure 3 , the resource management module includes a resource registration unit, a dual classification unit, and a storage configuration unit. The resource registration unit is used to register the resource content to be stored, the dual classification unit is used to classify the registered content, and the storage configuration unit is used to configure the storage space for the resource content;
[0076] Combined with Figure 4 , the index query module includes a task management unit, a cross-index unit, and a task interaction unit. The task management unit is used to manage resource query tasks, the cross-index unit indexes the resource content based on the query tasks, and the task interaction unit delivers relevant information based on the index results;
[0077] Combined with Figure 5 , the patrol inspection module includes a status monitoring unit, a calculation verification unit, and a data repair unit. The status monitoring unit is used to monitor the interaction status of resource content, the calculation verification unit is used to verify the correctness of resource content, and the data repair unit is used to repair damaged resource content;
[0078] The on-chain storage unit includes a blockchain interface processor, a hash generation processor, and a source data anchoring processor. The blockchain interface processor is used to connect to the blockchain platform, the hash generation processor is used to perform hash processing on the resource content to obtain summary information, and the source data anchoring processor is used to write the summary information into the blockchain;
[0079] The off-chain storage unit includes a resource storage register, a region management processor, and an exclusive verification processor. The resource storage register is used to provide storage space to store resource data, the region management processor is used to divide and manage the storage space, and the exclusive verification processor is used to perform exclusive identity verification on the operators of the storage space;
[0080] The dedicated information register of the storage control unit, the data reading processor, and the storage editing processor. The dedicated information register is used to store dedicated identity information. The data reading processor is used to directly read the content in the resource storage register. The storage editing processor is used to edit and process the information in the resource storage register;
[0081] The off-chain storage unit is only connected to the storage control unit;
[0082] The resource registration unit includes a metadata template generation processor, a digital signature verification processor, and a log tracking processor. The metadata template generation processor is used to provide standardized fields for users to fill in and generate metadata. The digital signature verification processor is used to verify the user's digital signature to ensure a legal identity. The log tracking processor is used to generate registration logs for information tracking;
[0083] The dual classification unit includes a source data caching processor, a source data classification processor, and a summary classification processor. The source data caching processor is used to temporarily save the metadata set that the user needs to store. The metadata classification processor is used to classify the source data. The summary classification processor is used to classify the summary information of the source data;
[0084] The storage configuration unit includes an information integration processor, a smart contract configurator, and a configuration execution processor. The information integration processor is used to integrate the classification information. The smart contract configurator processes the integrated classification information through built-in configuration rules to obtain a storage configuration. The configuration execution processor is used to execute the storage configuration and save the source data to the off-chain storage unit;
[0085] The process of the system for storing and configuring resource content includes the following steps:
[0086] S1. The user registers the source data through the resource registration unit;
[0087] S2. The metadata classification processor classifies the source data;
[0088] S3. The hash generation processor performs a hash process on the source data to obtain a summary;
[0089] S4. The source data anchoring processor is used to write the summary information into the blockchain and return the summary information to the dual classification processor;
[0090] S5. The summary classification processor classifies the summary information;
[0091] S6. The storage configuration unit processes to obtain a storage configuration;
[0092] S7. Save the source data as resource content to the off-chain storage unit;
[0093] The task management unit includes a task receiving processor, a query request parser, and a task queue monitor. The task receiving processor is used to receive the user's query task. The query request parser is used to parse the query task and output an index instruction. The task queue monitor is used to monitor the completion status of the query task;
[0094] The cross-index unit includes an index execution processor, an index acceleration processor, and an index cache processor. The index execution processor is used to execute the index instruction. The index acceleration processor is used to accelerate different index instructions of the same query task. The index cache processor is used to save the index results within a fixed time for all index instructions to use;
[0095] The acceleration process of the index acceleration processor includes the following steps:
[0096] S21. Wait for an index instruction to detect associated information;
[0097] S22. Return the detection point position information, called the target point;
[0098] S23. Obtain another index instruction that needs to be accelerated, called the target index instruction;
[0099] S24. Determine the jump point based on the target point and the current detection point of the target index instruction;
[0100] S25. Accelerate the target index instruction to the jump point and then continue to execute;
[0101] The task interaction unit includes a data acquisition processor, a result feedback processor, and a task cancellation processor. The data acquisition processor obtains the data content based on the index result. The result feedback processor is used to feedback the result to the corresponding user. The task cancellation processor is used to cancel the query task in the queue;
[0102] The status monitoring unit includes an interaction trigger processor, an information statistics processor, and a content selection processor. The interaction trigger processor is used to trigger the interaction operation of the resource content. The information statistics processor is used to count the interaction times of the resource content. The content selection processor is used to select the resource content that needs to be verified;
[0103] The content selection processor calculates the verification index P of the resource content according to the following formula:
[0104]
[0105] Among them, n is the number of interactions of the resource content, and t(i) is the time difference from the present at the i-th interaction;
[0106] The content selection processor outputs the verification after sorting according to the verification index from large to small;
[0107] The calculation verification unit includes a hash calculation processor, a block positioning processor, and a digest verification processor. The hash calculation processor is used to calculate the hash value of the resource content. The block positioning processor is used to position the block to obtain the corresponding digest. The digest verification processor is used to proofread the hash value and the digest;
[0108] The data repair unit includes a traceability positioning processor, a backup overwrite processor, and a repair verification processor. The traceability positioning processor is used to locate the time point of data tampering. The backup overwrite processor is used to overwrite the latest data before this time point to the tampered storage point. The repair verification processor is used to verify the newly overwritten data with the digest;
[0109] The i appearing in the above text is an ordinal number used to represent the serial number and has no actual meaning.
[0110] Some code information of this system is as follows:
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] The content disclosed above is only the preferred and feasible embodiment of the present invention, and does not limit the protection scope of the present invention. Therefore, all equivalent technical changes made by using the content of the specification and drawings of the present invention are included in the protection scope of the present invention. In addition, the elements therein can be updated with the development of technology.
Claims
1. A data resource efficient configuration database system based on blockchain technology, characterized in that: It includes data storage module, resource management module, index query module and patrol inspection module; The data storage module is used to store data information, the resource management module is used to control and manage the resource configuration process, the index query module is used to query resource content, and the patrol inspection module is used to perform security inspection on resource content; The data storage module includes an on-chain storage unit, an off-chain storage unit and a storage control unit. The on-chain storage unit stores summary information based on the blockchain, the off-chain storage unit is used to store original resources, and the storage control unit is used to control the storage process of data; The resource management module includes a resource registration unit, a dual classification unit and a storage configuration unit, wherein the resource registration unit is used to register resource content that needs to be stored, the dual classification unit is used to classify the registered content, and the storage configuration unit is used to configure the storage space of the resource content; The index query module includes a task management unit, a cross-index unit and a task interaction unit. The task management unit is used to manage resource query tasks. The cross-index unit indexes resource content based on query tasks. The task interaction unit delivers relevant information based on index results. The patrol inspection module includes a status monitoring unit, a calculation verification unit and a data repair unit. The status monitoring unit is used to monitor the interactive status of resource content, the calculation verification unit is used to verify the correctness of resource content, and the data repair unit is used to repair damaged resource content.
2. A data resource efficient configuration database system based on blockchain technology as claimed in claim 1, characterized in that: The on-chain storage unit includes a blockchain interface processor, a hash generation processor and a source data anchor processor, and the blockchain interface processor is used to connect to the blockchain platform, the hash generation processor is used to perform hash processing on the resource content to obtain summary information, and the source data anchor processor is used to write the summary information into the blockchain.
3. A data resource efficient configuration database system based on blockchain technology as claimed in claim 2, characterized in that: The process of storing and configuring resource content by the system includes the following steps: S1. The user registers source data through the resource registration unit; S2, the metadata classification processor classifies the source data; S3, the hash generation processor performs hash processing on the source data to obtain a summary; S4, the source data anchoring processor is used to write the summary information into the blockchain and return the summary information to the dual classification processor; S5, the summary classification processor classifies the summary information; S6, the storage configuration unit processes to obtain storage configuration; S7. Save the source data as resource content to an off-chain storage unit.
4. A data resource efficient configuration database system based on blockchain technology as claimed in claim 3, characterized in that: The cross-index unit includes an index execution processor, an index acceleration processor and an index cache processor, wherein the index execution processor is used to execute index instructions, the index acceleration processor is used to accelerate the processing of different index instructions of the same query task, and the index cache processor is used to save the index results within a fixed time for use by all index instructions; The acceleration process of the index acceleration processor includes the following steps: S21, waiting for an index instruction to detect associated information; S22, returning the position information of the detection point, which is called the target point; S23, obtaining another index instruction that needs to be accelerated, called the target index instruction; S24, determining a jump point based on the target point and the current detection point of the target index instruction; S25, accelerating the target index instruction to the jump point and continuing execution.
5. A data resource efficient configuration database system based on blockchain technology as claimed in claim 4, characterized in that: The state monitoring unit includes an interaction triggering processor, an information statistics processor and a content selection processor, wherein the interaction triggering processor is used to trigger the interaction operation of the resource content, the information statistics processor is used to count the number of interactions of the resource content, and the content selection processor is used to select the resource content that needs to be verified; The content selection processor calculates the verification index P of the resource content according to the following formula: Where n is the number of interactions of the resource content, and t(i) is the time difference between the i-th interaction and the present; The content selection processor outputs the verification after sorting the verification indexes from large to small.
Citation Information
Patent Citations
Resource configuration method and database change management system
CN118331942A