CN116842029B - Asset management method, device, computer equipment and storage medium - Google Patents

Asset management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116842029B
CN116842029B CN202311119770.3A CN202311119770A CN116842029B CN 116842029 B CN116842029 B CN 116842029B CN 202311119770 A CN202311119770 A CN 202311119770A CN 116842029 B CN116842029 B CN 116842029B
Authority
CN
China
Prior art keywords
data
asset
stored
nodes
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311119770.3A
Other languages
Chinese (zh)
Other versions
CN116842029A (en
Inventor
钟炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN202311119770.3A priority Critical patent/CN116842029B/en
Publication of CN116842029A publication Critical patent/CN116842029A/en
Application granted granted Critical
Publication of CN116842029B publication Critical patent/CN116842029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Abstract

The present application relates to the field of computer technologies, and in particular, to an asset management method, apparatus, computer device, and storage medium, including: s1, acquiring asset data to be stored, and judging whether the asset data is changed data or not; s2, if the data is changed, executing the steps S3-S4, and if the data is not changed, executing the steps S5-S6; s3, updating asset data stored on the storage node according to the change data and generating a change record; s4, selecting a plurality of record nodes, and storing the change record in the selected plurality of record nodes; s5, establishing time association between the asset data to be stored and the asset data; s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored in the selected record nodes; s7, receiving an asset data query instruction, acquiring data and returning to a query end. The application stores the change record in the record node, does not need to draw the whole network during inquiry, optimizes the inquiry process and improves the network response speed.

Description

Asset management method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an asset management method, apparatus, computer device, and storage medium.
Background
The traditional digital assets basically adopt centralized management, upload data to a central server for storage, and when the data are required to be called, corresponding data can be obtained from the central server after authentication. One disadvantage of this approach is high data concentration, which may lead to loss of data and low data security when the server fails. To this end, the prior art provides a solution for distributed storage of digital assets using blockchain technology. Blockchain technology can solve the above problems, but blockchain technology also has its own problems: because of the distributed storage of the data, the data is called by the whole network, so that the response speed of conventional data inquiry and check functions is low, and the occupied amount of resources is large.
How to optimize the storage of digital assets in a blockchain network, and reduce the resource occupation of the storage network, thereby facilitating the management of data is a problem to be solved.
Disclosure of Invention
Based on this, it is necessary to provide an asset management method, apparatus, computer device and storage medium to solve the problems presented in the background art, in view of the above-described problems.
The embodiment of the application is realized in such a way that an asset management method comprises the following steps:
s1, acquiring asset data to be stored, and judging whether the asset data to be stored is changed data or not;
s2, if the asset data to be stored is changed data, executing the steps S3-S4, and if the asset data to be stored is not changed data, executing the steps S5-S6;
s3, updating the asset data stored on the storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data;
s4, selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
s5, establishing time association between the asset data to be stored and the asset data stored on the current storage node;
s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
s7, receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction, and returning to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
In one embodiment, the present application provides an asset management device comprising:
the acquisition module is used for acquiring the asset data to be stored and judging whether the asset data to be stored is changed data or not;
the change data processing module is used for executing the following steps if the asset data to be stored is change data: updating asset data stored on a storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data; selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
the non-change data processing module is used for executing the following steps if the asset data to be stored are non-change data: establishing time association between the asset data to be stored and the asset data stored on the current storage node; selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
the receiving module is used for receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction and returning the data to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
In one embodiment, the present application provides a computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the asset management method described above.
In one embodiment, the present application provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, where the computer program when executed by a processor causes the processor to perform the steps of the asset management method described above.
Compared with the prior art, the application has the following beneficial effects: when the data is to be changed, a change record is generated and is independently stored in the record node, so that the record node only stores information for describing the basic state of the asset data, and when the asset data is to be queried, the data can be returned only from the record node if the query is simple. Most of the asset data inquiry in the realization belongs to the simple inquiry, so that most of the data request and return processes can be simplified, and complex coordination of multiple storage nodes is not needed to call the asset data for return; meanwhile, because the core content of the asset data is not involved, complex identity verification is not needed, the data return speed can be improved, and the disturbance of the query function on the whole network is reduced.
Drawings
FIG. 1 is a flow diagram of asset management in one embodiment;
FIG. 2 is a block diagram of an asset device in one embodiment;
FIG. 3 is a block diagram of the internal architecture of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
As shown in fig. 1, in one embodiment, an asset management method is provided, which may specifically include the following steps:
s1, acquiring asset data to be stored, and judging whether the asset data to be stored is changed data or not;
s2, if the asset data to be stored is changed data, executing the steps S3-S4, and if the asset data to be stored is not changed data, executing the steps S5-S6;
s3, updating the asset data stored on the storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data;
s4, selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
s5, establishing time association between the asset data to be stored and the asset data stored on the current storage node;
s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
s7, receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction, and returning to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
In the application, the asset data to be stored is the data related to the existing certain asset data uploaded by the management node, and can be specifically the data generated in the asset circulation process such as the change data, or the data related to the core content of the asset data, and the data related to the core content of the asset data can be processed by adopting a conventional storage mode, but the data has little data in the whole life cycle of the asset data, and the application only focuses on the processing of the change data.
In the present application, two different processing methods are adopted for the changed data and the non-changed data. For the change data, after corresponding operation is carried out on the stored asset data, the asset data is updated, a change record is generated after the update, and the change record is independently stored in a record node, so that a query result can be independently obtained from the record node during query; for non-change data, by establishing time association and then storing the non-change data, later change record data can be obtained from the record node, and information related to the asset data entity can be obtained.
In the application, based on the processing, the record node can be used for storing the data which can be disclosed such as change records and the like, and the storage node with the core asset data stored at the rear end is not required to be disturbed when the data is queried, so that the later data query process is simplified.
Compared with the prior art, the application has the following beneficial effects: when the data is to be changed, a change record is generated and is independently stored in the record node, so that the record node only stores information for describing the basic state of the asset data, and when the asset data is to be queried, the data can be returned only from the record node if the query is simple. Most of the asset data inquiry in the realization belongs to the simple inquiry, so that most of the data request and return processes can be simplified, and complex coordination of multiple storage nodes is not needed to call the asset data for return; meanwhile, because the core content of the asset data is not involved, complex identity verification is not needed, the data return speed can be improved, and the disturbance of the query function on the whole network is reduced.
In one embodiment, the determining whether the asset data to be stored is change data includes:
performing type analysis on the asset data to be stored;
if the asset data to be stored is a data packet, the asset data to be stored is non-changed data;
and if the asset data to be stored is not a data packet and comprises an operation object and an operation mode, the asset data to be stored is changed data.
In the application, the asset data to be stored can be divided into non-changed data of data packet type, and comprises operation objects and operations, and different processing modes are adopted for the two types of data.
In one embodiment, the updating the asset data stored on the storage node according to the change data, generating a change record according to the difference before and after the update of the asset data, includes:
acquiring an operation object and an operation mode contained in the change data;
randomly selecting m storage nodes from all storage nodes, and issuing the change data to the selected m storage nodes to enable the selected storage nodes to synchronously execute the change data at a preset moment so as to execute a corresponding operation mode on an operation object in the change data, thereby generating a new block and storing the new block;
comparing the latest two blocks to determine difference data;
determining a change project according to the project of the asset data to which the difference data belongs;
obtaining a change record according to the current state of the change item;
where m > n/2, n is the total number of storage nodes storing asset data.
In the present application, a new block is generated and stored according to a consensus algorithm, which is a basic process of a blockchain technique, and the present application is not particularly limited thereto.
In the application, the latest two blocks are subjected to data comparison according to the sequence generated by each block, the difference data is found, the item to which the difference data belongs can be obtained for the item to which the change data aims, the current state of the change item can be obtained from the change record, and the change record comprises the states before and after the change of the item. In the application, m is more than n/2, and the condition that the data is updated and authenticated by an identifiable algorithm can be met, so that the data is updated smoothly, the process relates to the processes of identity verification and the like, and the application belongs to the content of the conventional prior art and is not repeated.
In one embodiment, the selecting a plurality of record nodes from the non-storage nodes, and storing the change record in the selected plurality of record nodes in a distributed manner includes:
selecting a plurality of nodes from the non-storage nodes as recording nodes;
and storing the change record packaging generation block in a plurality of selected record nodes, wherein each record node stores identical data.
In the application, the distributed storage is adopted to ensure the safety of the data. Unlike available technology, the present application has no data storage in distributed network, and the distributed network is divided into storage network and record network.
In one embodiment, the establishing the time association between the asset data to be stored and the asset data stored on the current storage node includes:
acquiring the latest state of the current asset data from any one storage node and the last change time of the asset data;
generating a state record data packet according to the latest state of the asset data, and stamping a time stamp for the state record data packet according to the last change time of the asset data;
and packaging the obtained state record data packet and the non-change data to be stored to generate a block.
In the present application, as for non-changed data, recorded data for recording a change in status of asset data is generated in the above-described manner, and it is to be understood that the change in status herein is not equal to a change in data, which is a change in the content of the original item, and the change in status belongs to a change in the item category level, for example, a latest settlement record, an fund-raising record, or the like of securities, and does not belong to a record of a change in the content of the original item.
In one embodiment, the selecting a plurality of record nodes from the non-storage nodes, and distributing the asset data to be stored after the time association is established in the selected plurality of record nodes includes:
selecting a plurality of nodes from the non-storage nodes as recording nodes;
and storing the change record packaging generation block in a plurality of selected record nodes, wherein each record node stores identical data.
In the application, the storage process of the selected node serving as the record node and the selected node serving as the storage node is the same, which is the basic operation of the prior blockchain technology when data is initially stored, and the application is not particularly limited.
In one embodiment, the acquiring data from the storage node and/or the recording node according to the asset data query instruction and returning to the query end includes:
acquiring an asset data query instruction, and analyzing the asset data query instruction to obtain a query object and query content;
determining a corresponding storage node and a corresponding recording node according to the query object;
selecting any storage node and/or any recording node according to the query content;
request data from the selected storage node and/or recording node and return to the querying end.
In the application, a storage node or a record node is selected according to the query content to query, when the query content only relates to the record data, the data can be requested from the record node only and returned to the query end, and when the data of a deep level such as project change of the asset data is related, the storage node and the record node need to jointly return the required data.
As shown in fig. 2, in one embodiment, there is provided an asset management device comprising:
the acquisition module is used for acquiring the asset data to be stored and judging whether the asset data to be stored is changed data or not;
the change data processing module is used for executing the following steps if the asset data to be stored is change data: updating asset data stored on a storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data; selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
the non-change data processing module is used for executing the following steps if the asset data to be stored are non-change data: establishing time association between the asset data to be stored and the asset data stored on the current storage node; selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
the receiving module is used for receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction and returning the data to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
In the present application, each module of the asset management device is modularized in the asset management method provided by the present application, and for a specific explanation of each module, please refer to the content of the method section of the present application, and this embodiment will not be repeated.
FIG. 3 illustrates an internal block diagram of a computer device in one embodiment. As shown in fig. 3, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program, where the computer program when executed by the processor may cause the processor to implement the asset management method provided by the embodiment of the present application. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the asset management method provided by the embodiments of the present application. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the asset management device provided by embodiments of the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 3. The memory of the computer device may store various program modules constituting the asset management device, such as the acquisition module, the modified data processing module, the non-modified data processing module, and the receiving module shown in fig. 2. The computer program constituted by the respective program modules causes the processor to execute the steps in the asset management method of the respective embodiments of the present application described in the present specification.
In one embodiment, a computer device is presented, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, acquiring asset data to be stored, and judging whether the asset data to be stored is changed data or not;
s2, if the asset data to be stored is changed data, executing the steps S3-S4, and if the asset data to be stored is not changed data, executing the steps S5-S6;
s3, updating the asset data stored on the storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data;
s4, selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
s5, establishing time association between the asset data to be stored and the asset data stored on the current storage node;
s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
s7, receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction, and returning to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor causes the processor to perform the steps of:
s1, acquiring asset data to be stored, and judging whether the asset data to be stored is changed data or not;
s2, if the asset data to be stored is changed data, executing the steps S3-S4, and if the asset data to be stored is not changed data, executing the steps S5-S6;
s3, updating the asset data stored on the storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data;
s4, selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
s5, establishing time association between the asset data to be stored and the asset data stored on the current storage node;
s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
s7, receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction, and returning to a query end;
wherein the total number of recording nodes is smaller than the total number of storage nodes.
It should be understood that, although the steps in the flowcharts of the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application.

Claims (9)

1. An asset management method, the asset management method comprising:
s1, acquiring asset data to be stored, and judging whether the asset data to be stored is changed data or not;
s2, if the asset data to be stored is changed data, executing the steps S3-S4, and if the asset data to be stored is not changed data, executing the steps S5-S6;
s3, updating the asset data stored on the storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data;
s4, selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
s5, establishing time association between the asset data to be stored and the asset data stored on the current storage node;
s6, selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
s7, receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction, and returning to a query end;
wherein the total number of the record nodes is smaller than the total number of the storage nodes;
the updating the asset data stored on the storage node according to the change data, generating a change record according to the difference before and after the update of the asset data, includes:
acquiring an operation object and an operation mode contained in the change data;
randomly selecting m storage nodes from all storage nodes, and issuing the change data to the selected m storage nodes to enable the selected storage nodes to synchronously execute the change data at a preset moment so as to execute a corresponding operation mode on an operation object in the change data, thereby generating a new block and storing the new block;
comparing the latest two blocks to determine difference data;
determining a change project according to the project of the asset data to which the difference data belongs;
obtaining a change record according to the current state of the change item;
where m > n/2, n is the total number of storage nodes storing asset data.
2. The asset management method according to claim 1, wherein the determining whether the asset data to be stored is change data comprises:
performing type analysis on the asset data to be stored;
if the asset data to be stored is a data packet, the asset data to be stored is non-changed data;
and if the asset data to be stored is not a data packet and comprises an operation object and an operation mode, the asset data to be stored is changed data.
3. The asset management method according to claim 1, wherein the selecting a plurality of record nodes from the non-storage nodes, and the change record is stored in a distributed manner in the selected plurality of record nodes, comprises:
selecting a plurality of nodes from the non-storage nodes as recording nodes;
and storing the change record packaging generation block in a plurality of selected record nodes, wherein each record node stores identical data.
4. The asset management method of claim 1, wherein said associating the asset data to be stored with asset data stored on a current storage node comprises:
acquiring the latest state of the current asset data from any one storage node and the last change time of the asset data;
generating a state record data packet according to the latest state of the asset data, and stamping a time stamp for the state record data packet according to the last change time of the asset data;
and packaging the obtained state record data packet and the non-change data to be stored to generate a block.
5. The asset management method according to claim 1, wherein selecting a plurality of recording nodes from the non-storage nodes, and storing the asset data to be stored after the time association is distributed in the selected plurality of recording nodes, comprises:
selecting a plurality of nodes from the non-storage nodes as recording nodes;
and storing the change record packaging generation block in a plurality of selected record nodes, wherein each record node stores identical data.
6. The asset management method according to claim 1, wherein the acquiring data from the storage node and/or the recording node according to the asset data query instruction and returning to the query terminal comprises:
acquiring an asset data query instruction, and analyzing the asset data query instruction to obtain a query object and query content;
determining a corresponding storage node and a corresponding recording node according to the query object;
selecting any storage node and/or any recording node according to the query content;
request data from the selected storage node and/or recording node and return to the querying end.
7. An asset management device, the asset management device comprising:
the acquisition module is used for acquiring the asset data to be stored and judging whether the asset data to be stored is changed data or not;
the change data processing module is used for executing the following steps if the asset data to be stored is change data: updating asset data stored on a storage node according to the change data, and generating a change record according to the difference before and after the update of the asset data; selecting a plurality of record nodes from the non-storage nodes, and storing the change records in the selected plurality of record nodes in a distributed mode;
the non-change data processing module is used for executing the following steps if the asset data to be stored are non-change data: establishing time association between the asset data to be stored and the asset data stored on the current storage node; selecting a plurality of record nodes from the non-storage nodes, and storing the asset data to be stored after time association is established in the selected plurality of record nodes in a distributed mode;
the receiving module is used for receiving an asset data query instruction, acquiring data from a storage node and/or a recording node according to the asset data query instruction and returning the data to a query end;
wherein the total number of the record nodes is smaller than the total number of the storage nodes;
the updating the asset data stored on the storage node according to the change data, generating a change record according to the difference before and after the update of the asset data, includes:
acquiring an operation object and an operation mode contained in the change data;
randomly selecting m storage nodes from all storage nodes, and issuing the change data to the selected m storage nodes to enable the selected storage nodes to synchronously execute the change data at a preset moment so as to execute a corresponding operation mode on an operation object in the change data, thereby generating a new block and storing the new block;
comparing the latest two blocks to determine difference data;
determining a change project according to the project of the asset data to which the difference data belongs;
obtaining a change record according to the current state of the change item;
where m > n/2, n is the total number of storage nodes storing asset data.
8. A computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the asset management method of any of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the asset management method of any of claims 1 to 6.
CN202311119770.3A 2023-09-01 2023-09-01 Asset management method, device, computer equipment and storage medium Active CN116842029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311119770.3A CN116842029B (en) 2023-09-01 2023-09-01 Asset management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311119770.3A CN116842029B (en) 2023-09-01 2023-09-01 Asset management method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116842029A CN116842029A (en) 2023-10-03
CN116842029B true CN116842029B (en) 2023-11-17

Family

ID=88172857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311119770.3A Active CN116842029B (en) 2023-09-01 2023-09-01 Asset management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116842029B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473334A (en) * 2013-09-18 2013-12-25 浙江中控技术股份有限公司 Data storage method, inquiry method and system
CN107220271A (en) * 2016-12-14 2017-09-29 郑州祺石信息技术有限公司 A kind of method and system of distributed digital resource storage processing and management
CN108764899A (en) * 2018-04-27 2018-11-06 广州西麦科技股份有限公司 Digital asset management method, apparatus based on system for cloud computing and storage device
CN109241211A (en) * 2018-07-09 2019-01-18 中科遥感科技集团有限公司 Remote Sensing Image Spatial Information Storage Management Method Based on Distributed Database
CN109271115A (en) * 2018-10-11 2019-01-25 重庆晨鲸科技有限公司 Store sharing method, device, block chain distributed network topology
CN110222529A (en) * 2019-05-21 2019-09-10 平安普惠企业管理有限公司 Assets management method, electronic equipment and computer storage medium based on alliance's chain
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
CN112187900A (en) * 2020-09-18 2021-01-05 中国科学院计算技术研究所 DNS data updating method and system based on block chain shared cache
CN112559625A (en) * 2020-12-09 2021-03-26 国网安徽省电力有限公司物资分公司 Power business material information storage system and method based on block chain
CN113301390A (en) * 2021-05-21 2021-08-24 北京达佳互联信息技术有限公司 Data processing method and device for calling virtual resources and server
CN114004600A (en) * 2021-11-09 2022-02-01 中国联合网络通信集团有限公司 Service change method and device, electronic equipment and storage medium
CN114079660A (en) * 2021-09-28 2022-02-22 中诚区块链研究院(南京)有限公司 High-performance distributed storage area data, timestamp, cross-link communication and data cooperation method
CN116150205A (en) * 2022-12-29 2023-05-23 东软集团股份有限公司 Storage method, query method and related products of change data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480441B2 (en) * 2001-12-20 2009-01-20 Thomson Licensing Method for seamless real-time splitting and concatenating of a data stream
US10007582B2 (en) * 2016-09-27 2018-06-26 International Business Machines Corporation Rebuild rollback support in distributed SDS systems
US11922326B2 (en) * 2021-09-02 2024-03-05 Backoffice Associates, Llc Data management suggestions from knowledge graph actions

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473334A (en) * 2013-09-18 2013-12-25 浙江中控技术股份有限公司 Data storage method, inquiry method and system
CN107220271A (en) * 2016-12-14 2017-09-29 郑州祺石信息技术有限公司 A kind of method and system of distributed digital resource storage processing and management
CN108764899A (en) * 2018-04-27 2018-11-06 广州西麦科技股份有限公司 Digital asset management method, apparatus based on system for cloud computing and storage device
CN109241211A (en) * 2018-07-09 2019-01-18 中科遥感科技集团有限公司 Remote Sensing Image Spatial Information Storage Management Method Based on Distributed Database
CN109271115A (en) * 2018-10-11 2019-01-25 重庆晨鲸科技有限公司 Store sharing method, device, block chain distributed network topology
CN110222529A (en) * 2019-05-21 2019-09-10 平安普惠企业管理有限公司 Assets management method, electronic equipment and computer storage medium based on alliance's chain
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
CN112187900A (en) * 2020-09-18 2021-01-05 中国科学院计算技术研究所 DNS data updating method and system based on block chain shared cache
CN112559625A (en) * 2020-12-09 2021-03-26 国网安徽省电力有限公司物资分公司 Power business material information storage system and method based on block chain
CN113301390A (en) * 2021-05-21 2021-08-24 北京达佳互联信息技术有限公司 Data processing method and device for calling virtual resources and server
CN114079660A (en) * 2021-09-28 2022-02-22 中诚区块链研究院(南京)有限公司 High-performance distributed storage area data, timestamp, cross-link communication and data cooperation method
CN114004600A (en) * 2021-11-09 2022-02-01 中国联合网络通信集团有限公司 Service change method and device, electronic equipment and storage medium
CN116150205A (en) * 2022-12-29 2023-05-23 东软集团股份有限公司 Storage method, query method and related products of change data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
数据库共享存储集群中缓存融合技术测试方法;吕韬 等;工业技术创新;第第8卷卷(第第4期期);60-66 *

Also Published As

Publication number Publication date
CN116842029A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN110647582B (en) Method, device, storage medium and computer equipment for block chain network consensus verification
CN111177302B (en) Service bill processing method, device, computer equipment and storage medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN111400246A (en) Asynchronous file importing method and device, computer equipment and storage medium
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN113271364B (en) Sharing system, method, computer device and storage medium of service arrangement data
CN112134707B (en) Concurrent access method and device for multiple KERBEROS clusters
CN116842029B (en) Asset management method, device, computer equipment and storage medium
CN111190742B (en) Resource coordination method, device, computer equipment and storage medium
CN112015819A (en) Data updating method, device, equipment and medium for distributed graph database
CN116578410A (en) Resource management method, device, computer equipment and storage medium
CN112559290B (en) Service call monitoring method, device, computer equipment and storage medium
CN111857662B (en) Programming method for describing specific constitution of object based on MAP and interface
CN111522873B (en) Block generation method, device, computer equipment and storage medium
CN114710441B (en) Link aggregation method, system, computer equipment and storage medium
CN116662453B (en) Digital asset storage method based on block chain
CN111008131B (en) Automated testing method, apparatus, computer device and storage medium
CN116976969A (en) Rights issuing method, device, rights platform server and storage medium
CN114168533B (en) Snapshot query method and device, computer equipment and storage medium
CN112860755B (en) Service identifier generation method, device, computer equipment and medium
CN111158701B (en) Library module issuing method, device, equipment and storage medium
CN111813842B (en) Data processing method, device, system, equipment and storage medium
CN116614513A (en) Block chain data migration method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant