CN111638904A - Data configuration restoration method and device and readable storage medium - Google Patents

Data configuration restoration method and device and readable storage medium Download PDF

Info

Publication number
CN111638904A
CN111638904A CN202010395070.7A CN202010395070A CN111638904A CN 111638904 A CN111638904 A CN 111638904A CN 202010395070 A CN202010395070 A CN 202010395070A CN 111638904 A CN111638904 A CN 111638904A
Authority
CN
China
Prior art keywords
data configuration
content
version number
data
target
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.)
Granted
Application number
CN202010395070.7A
Other languages
Chinese (zh)
Other versions
CN111638904B (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.)
Beike Technology Co Ltd
Original Assignee
Beike Technology Co Ltd
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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202010395070.7A priority Critical patent/CN111638904B/en
Publication of CN111638904A publication Critical patent/CN111638904A/en
Application granted granted Critical
Publication of CN111638904B publication Critical patent/CN111638904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a data configuration restoration method, a data configuration restoration device and a readable storage medium. Acquiring a target version number according to a first preset operation of a user, wherein the target version number is a version number corresponding to the data configuration to be restored; calling restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number; and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoration content. By means of the version number and the first change content, the current data configuration can be restored to the data configuration corresponding to the required target version number, and the editing is continued, so that the technical problem that the data configuration needs to be edited again in each time in the prior art is solved.

Description

Data configuration restoration method and device and readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for restoring data configuration, and a readable storage medium.
Background
Currently, data configuration is a data application mode that configures data nodes according to a predetermined logic sequence, and some of the data nodes may also be assigned with values, and this data configuration application mode is applied in various fields. For example, in an online service platform, service nodes are often represented by data nodes, and a predetermined logic sequence represents a logic sequence and a relationship between the service nodes, but since the service nodes may change according to different application scenarios, data configuration often needs to be modified, and editing needs to be performed again even if the change is small, which results in a large amount of repetitive work.
The inventor finds that at least the following problems exist in the prior art, and the whole data configuration needs to be edited again due to the change of the data configuration part, so that a great deal of repeated work is caused.
Disclosure of Invention
The application provides a method for restoring data configuration, which aims to return the current data configuration to the data configuration corresponding to a required target version number through the version number and the first change content, and continue editing, thereby avoiding the need of editing the data configuration again each time in the prior art.
The method comprises the following steps:
storing data configuration according to a first preset mode and recording a version number and first change content generated corresponding to each time of data configuration storage, wherein the version number is a corresponding identifier of each time of data configuration storage and is used for calling the corresponding data configuration and the first change content, the first change content is a difference content between the current storage and the previous data configuration storage, and the data configuration is configured according to a preset logic sequence through data nodes;
acquiring a target version number according to a first preset operation, wherein the target version number is a version number corresponding to the data configuration to be restored;
calling restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number;
and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoration content.
Optionally, before the step of storing the data configuration according to a first predetermined manner and recording a version number and first change content generated corresponding to each time of storing the data configuration, where the version number is a corresponding identifier of each time of storing the data configuration and is used to call the corresponding data configuration and the first change content, the first change content is a content that is different between the current storing and the previous storing of the data configuration, and the data configuration is configured by the data node according to a predetermined logic sequence, the method further includes:
marking data nodes in the data configuration according to a second preset mode and recording second change content corresponding to each mark, wherein the second change content is the difference content between the currently marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second change content;
acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
calling the second change content according to the target mark;
and restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content.
Optionally, the data configuration corresponding to the target version number is restored to the current data configuration according to the restored content, and the current data configuration is gradually restored to the data configuration corresponding to the target version number according to the first changed content in the restored content in the saving sequence.
Optionally, after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content, the method further includes:
and according to the second change content, gradually reshaping the data configuration corresponding to the target mark according to the preset logic sequence to obtain the current data configuration.
Optionally, the first changed content and/or the second changed content include a new data node and an updated data node, and the predetermined logic sequence is edited.
The present application further provides a data configuration restoring apparatus, which includes:
the data configuration management module is used for storing the data configuration according to a first preset mode and recording a version number and first change content generated corresponding to each data configuration storage, wherein the version number is a corresponding identifier of each data configuration storage and is used for calling the corresponding data configuration and the first change content, the first change content is the difference content between the current data configuration storage and the previous data configuration storage, and the data configuration is configured according to a preset logic sequence through data nodes;
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target version number according to a first preset operation of a user, and the target version number is a version number corresponding to the data configuration to be restored;
the calling module is used for calling the restored content according to the target version number, wherein the restored content at least comprises first changed content corresponding to all version numbers from the current version number to the target version number;
and the restoring module is used for restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
Optionally, the apparatus further comprises:
the marking module is used for marking the data nodes in the data configuration according to a second preset mode and recording second change content corresponding to each mark, wherein the second change content is the difference content between the currently marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second change content;
the acquisition module is used for acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
the calling module is further used for calling the second change content according to the target mark;
the restoration module is further configured to restore the current data configuration to the data configuration corresponding to the target mark according to the second change content.
Optionally, the apparatus comprises:
the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restored content, and gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changed content in the restored content in the saving order.
The present application further provides an electronic device, which includes: a processor and a memory;
the memory stores an application program executable by the processor for causing the processor to perform any of the steps of the data configuration restoration method.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method of restoring a data configuration.
As can be seen from the above, based on the above embodiment, the current data configuration can be restored to the required data configuration through the version number and the first change content, or the mark and the second change content, and the editing is continued, so that the technical problem in the prior art that the data configuration needs to be edited again each time is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a diagram of a data framework for data configuration in a real estate transaction system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data framework for data configuration in a real estate transaction system according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a data configuration recovery method flow 100 according to the present application;
FIG. 4 is a schematic diagram of a data configuration recovery method flow 200 according to the present application;
FIG. 5 is a schematic diagram of a data structure logical relationship of a data configuration restoration method according to the present application;
FIG. 6 is a block diagram of a data sub-table apparatus according to an embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Taking house transaction service as an example, in the data configuration process, data nodes are equivalent to service nodes, the data nodes are structured according to a preset logic sequence, the preset logic sequence is equivalent to the logic sequence and relationship among the service nodes, and as house transaction is influenced by factors such as policies of various cities, the service nodes in house transaction processes of various cities are different, the preset logic sequence of the service nodes and the acquisition information of corresponding assignments of various cities are different, and even names defined for the service nodes with the same meaning are different. Fig. 1 is a schematic diagram of a data framework in which data configuration is applied to a real estate transaction system according to an embodiment of the present application, and fig. 2 is a schematic diagram of a data framework in which data configuration is applied to a real estate transaction system according to another embodiment of the present application. As shown in FIGS. 1 and 2, Shenzhen requires full spare parts to be registered, while Lanzhou requires the survey results to be registered. The business nodes configured according to the example data of Shenzhen and Lanzhou are different. Each service node may also be assigned, for example, where an assignment is understood to be the filling of the service node with the contents of the registered spare parts or the results of the registered mapping. For another example, the whole money transaction process does not need a bank loan buying room, and does not need to apply for a bank loan and the service node in the bank loan-putting link. The above example of banking loan illustrates that the predetermined logical order exists between the service nodes in addition to the service nodes. In summary, the complexity of the service system is known, the service systems in different regions have the same part and also have different parts, but research and development personnel need to perform data configuration again each time the research and development personnel perform data configuration of the service system, and when the service nodes are numerous, the research and development efficiency is extremely low.
Fig. 3 is a schematic diagram of a flow 100 of a data configuration restoration method according to the present application. As shown in fig. 3, in an embodiment, the present application provides a method for restoring a data configuration, where the method includes:
s101, storing data configuration according to a first preset mode and recording a version number and first change content generated corresponding to each data configuration, wherein the version number is a corresponding identifier of each data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is the difference content between the current data configuration and the previous data configuration, and the data configuration is configured according to a preset logic sequence through data nodes;
in this step, a specific embodiment of generating the first modified content corresponding to the version number by storing the data configuration is provided. It should be noted that the first predetermined manner in this step may be understood as a manner of saving the data configuration, it should be noted that the saving operation herein does not necessarily generate the version number and the first change content of the corresponding data configuration each time the data configuration is saved, and different saving policies may be selected for saving according to the first predetermined manner, for example, the version number and the first change content are generated only for a single saving, and the like. If the first saving is carried out, the default first change content is the data configuration saved for the first time. If the data configuration is stored for multiple times, multiple data configurations are stored, and the corresponding version number and the first change content are generated for each data configuration. It should be noted that there is a default storage order for the time between storage, and the first change can be understood as the difference between two adjacent storage data configurations.
S102, acquiring a target version number according to a first preset operation, wherein the target version number is a version number corresponding to the data configuration to be restored;
in this step, a specific implementation is provided for obtaining the target version number through the first predetermined operation by the user, where the target version number is a data configuration state to which the user desires to restore the data configuration. According to the previous step, it can be seen that a corresponding version number is obtained after each storage, and the version number corresponding to the data configuration to be restored, namely the target version number, is selected from the version numbers. It should be noted that the data configuration to be restored mentioned in this step is a data configuration corresponding to one of the version numbers in the previous data configuration process, and data configurations that have not been saved cannot be restored.
S103, calling reduction content according to the target version number, wherein the reduction content at least comprises the first change content corresponding to all version numbers from the current version number to the target version number;
in this step, a specific step of calling the restored content by a target version number is provided, and the restored content at least includes the first changed content corresponding to all version numbers from the current version number to the target version number. As described above, there is also a default order between the storages, and the first modified content is a content that is different between the current storage and the previous storage, and therefore the first modified content can only provide a content that is different between data arrangements in two adjacent storages, but it is obvious that the target version number and the current version number may be stored twice adjacent to each other, or may be stored several times apart from each other, and therefore the restored content here needs to include at least the first modified content corresponding to all the version numbers between the current version number and the target version number.
And S104, restoring the current data configuration to the data configuration corresponding to the target version number according to the restoration content.
In this step, a method for restoring the current data configuration to the data configuration corresponding to the target version number is provided, and since the restored content has the first change content corresponding to all version numbers between the current version number and the target version number, the current data configuration can be restored to the data configuration corresponding to the target version number.
In this embodiment, a data configuration is first saved according to the first predetermined manner, the version number and the first change content are correspondingly generated each time the data configuration is saved, and the background saves the data configuration saved this time, the corresponding version number, and the first change content. The storage may be performed once or multiple times. In the case of single saving, there are two possibilities, the first is that there is already one existing data configuration, and the first change content saved this time can be understood as the difference content between the data configuration at this time and the already existing data configuration. The second possibility is that the aforementioned saving this time is the first saving, and then the data configuration at this time is the first change content. Then, the target version number is obtained according to the first predetermined operation of the user, where the first predetermined operation may be understood that the user inputs the target version number, or selects an option corresponding to the target version from a selection menu of the version number, and the target version number is a version number corresponding to the configuration of the data to be restored. And calling the restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number. And restoring the current data configuration to the data configuration corresponding to the target version number according to the restoration content.
Fig. 4 is a schematic diagram of a flow 200 of a data configuration restoration method according to the present application. As shown in fig. 4, in an embodiment, before the step of saving the data configuration according to a first predetermined manner and recording a version number and a first change content generated corresponding to each saved data configuration, where the version number is a corresponding identifier of each saved data configuration and used for calling the corresponding data configuration and the first change content, the first change content is a content of distinction between the saved data configuration and the saved data configuration at the previous time, and the data configuration is configured by the data node in a predetermined logical order, the method further includes:
s201, marking data nodes in data configuration according to a second preset mode and recording second change content corresponding to each mark, wherein the second change content is the difference content between the currently marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second change content;
in this step, the data node of the data configuration is marked, and as described above, the data node of the data configuration corresponds to the service node, so that marking the data node can be understood as marking the service node. The second predetermined manner may be understood as selectively marking the data nodes in a manner, such as marking the data nodes at intervals, and so forth. It should be noted that the interval mark is only an example of the second predetermined mode, and is not a specific limitation of the second predetermined mode. The marking in this step may be understood as marking a tag on each data node selected by the second predetermined manner. The second changed content is a content that is different between the currently marked data configuration and the initial data configuration, where the initial data configuration includes two cases, one case is a newly created data configuration, and the initial data configuration may be understood as empty, and the other case is more general, and a loaded data configuration is to be subsequently edited based on the data configuration, and the data configuration may be understood as the initial data configuration.
S202, acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
in this step, a specific implementation manner is provided for the user to obtain the target mark through the second predetermined operation, where the second predetermined operation may be understood as the user selecting a mark corresponding to the data configuration desired to be obtained from the marks. Because each of the data nodes selected according to the second predetermined manner is marked, each of the data nodes may obtain a corresponding mark for calling the second changed content.
S203, calling the second change content according to the target mark;
in this step, a specific embodiment is provided in which the second changed content is called by the target mark.
And S204, restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content.
In this step, the current data configuration may be restored to the data configuration corresponding to the target mark according to the second change content.
In this embodiment, a specific way of implementing restoration by marking the data node is provided. Marking the data nodes of the data configuration according to a second predetermined manner, which may be understood as marking the data nodes with a tag. And saving the difference between the currently marked data configuration and the data configuration based on the initial editing, namely the second change content, wherein the initial editing data configuration is the initial data configuration. And finally, restoring the current data configuration according to the second change content. It should be noted that, compared to the previous embodiment that uses the version number for restoring, the first modified content and the second modified content have substantial differences, the first modified content is the difference of the data configuration between two adjacent storage, and the second modified content is the difference of the current mark data configuration and the initial data configuration.
In an embodiment, the data configuration corresponding to the target version number that is restored from the current data configuration according to the restoration content is configured to gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first change content in the restoration content in the storage order.
In this embodiment, a specific manner of restoring is provided, so that a developer can know how a current data configuration is gradually edited from a data configuration corresponding to a tag, and then gradually presents according to the restored content, because the restored content is first changed content corresponding to all corresponding tags, the first changed content in each step can provide data support for gradual restoring.
In an embodiment, after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content, the method further includes:
and according to the second change content, gradually reshaping the data configuration corresponding to the target mark according to the preset logic sequence to obtain the current data configuration.
A specific implementation of reshaping the current data configuration is provided in this example. It should be noted that, because the second changed content is a differentiated content based on the initial data configuration, the data configuration corresponding to the target mark may be gradually reshaped, and the current data configuration is finally obtained.
In an embodiment, the first changed content and/or the second changed content includes a new data node and an updated data node, and the predetermined logical sequence is edited.
In this embodiment, specific modified contents of the first modified contents and/or the second modified contents are provided, and the first modified contents and the second modified contents may include newly added data nodes and updated data nodes according to the operation of data configuration, and the predetermined logical order is edited.
In addition, the method steps described in this application may be implemented by hardware, for example, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, embedded microcontrollers, and the like, in addition to data processing programs. Such hardware capable of implementing the methods described herein may also constitute the present application.
The flowchart and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments disclosed herein. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments and/or claims of the present application may be combined and/or coupled in various ways, all of which fall within the scope of the present disclosure, without departing from the spirit and teachings of the present application.
The principles and embodiments of the present invention are explained herein using specific examples, which are provided only to help understanding the method and the core idea of the present invention, and are not intended to limit the present application. It will be appreciated by those skilled in the art that changes may be made in this embodiment and its broader aspects and without departing from the principles, spirit and scope of the invention, and that all such modifications, equivalents, improvements and equivalents as may be included within the scope of the invention are intended to be protected by the claims.
Basic principle and working process:
the data processing flow of the present application is further described below by taking the Shenzhen merchant lending transaction flow as an example. It should be noted that this example is only for better explaining the data processing procedure of the present invention, and is not a specific limitation to the present application.
Fig. 5 is a schematic diagram of a data structure logical relationship of a data configuration restoration method according to the present application. As shown in fig. 5, the diagram is a schematic data configuration diagram of a Shenzhen merchant lending transaction process, the service nodes corresponding to the data nodes in fig. 5 are respectively statement auditing, face signing, spare part registration, loan approving, web signing, tax payment, passing, new real estate property right obtaining, mortgage sending, other property right giving, paying and final settlement, and the service nodes are configured according to a predetermined logic sequence, that is, sequentially connected with the architecture.
In fig. 5, dashed lines represent saving operations, and the service nodes having the report auditing and label in the dashed line frame saved for the first time should be pointed out that, in addition to including the service nodes, the predetermined logical sequence between the service nodes should be saved, and in the following discussion, the record, whether saved or marked, includes the service nodes and the predetermined logical sequence between the service nodes. The dashed frame saved for the second time includes the service nodes with complete registered spare parts and the credit in addition to the service nodes corresponding to the statement review and the previous statement, and the first change content saved for the second time, that is, the service nodes with complete registered spare parts and the credit in batch.
If we restore the current data configuration saved for the second time to the data configuration saved for the first time, obviously, the registered spare parts and the batch credits (i.e. the first change contents corresponding to the second time) in the current data configuration saved for the second time are deleted, and the data configuration corresponding to the first time can be obtained. It should be noted that the first changed content at this time is the restored content, the recorded content after the first saving includes the version number, that is, version 1 in the figure and the first changed content, and since the data configuration is null before the current saving, the first changed content is the service node for the ticket audit and the face label.
If the network sign and the tax payment service node are saved for three times, namely, the third saving in the graph is carried out, the corresponding first change content is saved for the third time as the network sign and the tax payment service node, if the first change content is to be restored to the first saved content, the first change content corresponding to the third time and the second time is needed to be saved for the third time, the first change content is the restored content for the two times, and the current data configuration is restored to the first saved data configuration through the two times of gradual deletion. The version numbers in fig. 5 may be understood as being unique and used to call up the corresponding first alteration content.
The method of restoring using the flag is different from the method of restoring by the version number, and one initial data configuration, that is, a portion in the corresponding solid frame, is recorded when the flag is saved. Since the mark restoration is not necessarily started from the time of new creation, if it is, the initial data configuration can be understood as empty. As shown in fig. 5, the TAG1 is a first TAG, and may be understood as a TAG for marking the service node that receives the new real estate ticket, and defines one of the initial data configurations for the data configuration before marking in addition to the TAG, and shows the content of the initial data configuration, and the change content of the first TAG is the service node that receives the new real estate ticket. When marking is performed for the second time, namely marking is performed on the service node of the end table, the corresponding second change content is the difference content between the service node of the end table and the initial data configuration. Data reshaping from the initial data configuration to the current data configuration is possible just as the second change content comprises all of the service nodes of the initial data configuration to the current data configuration and the corresponding predetermined logical order.
FIG. 6 is a block diagram of a data sub-table apparatus according to an embodiment. As shown in fig. 5, the present application further provides a data configuration restoring apparatus, including:
the storage module 101 is configured to store the data configuration according to a first predetermined manner and record a version number and a first change content generated corresponding to each time of storing the data configuration, where the version number is a corresponding identifier of each time of storing the data configuration and is used to call the corresponding data configuration and the first change content, the first change content is a content that is different between the current storage and the previous storage of the data configuration, and the data configuration is configured according to a predetermined logic sequence through a data node;
an obtaining module 102, configured to obtain a target version number according to a first predetermined operation of a user, where the target version number is a version number corresponding to a configuration of data to be restored;
a calling module 103, configured to call, according to the target version number, restored content, where the restored content at least includes first changed content corresponding to all version numbers from a current version number to the target version number;
and the restoring module 104 is configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restoration content.
In one embodiment, the apparatus comprises:
the marking module 105 is configured to mark data nodes in the data configuration according to a second predetermined manner and record second change content corresponding to each mark, where the second change content is a difference content between the currently marked data configuration and the initial data configuration, and the mark is used to call the corresponding second change content;
the obtaining module 101 is configured to obtain a target mark according to a second predetermined operation of a user, where the target mark is a mark corresponding to data configuration to be restored;
the calling module 102 is further configured to call the second changed content according to the target mark;
the restoring module 103 is further configured to restore the current data configuration to the data configuration corresponding to the target mark according to the second change content.
In one embodiment, the present application further provides an electronic device, including: a processor and a memory;
the memory stores an application program executable by the processor for causing the processor to perform any of the steps of the data configuration restoration method.
In an embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is configured to implement the steps of the data configuration restoration method when executed by a processor.
In practical applications, the computer readable medium may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer readable storage medium carries one or more programs which, when executed, implement the described data sorting apparatus to perform a data sorting method.
According to embodiments disclosed herein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example and without limitation: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, without limiting the scope of the present disclosure. In the embodiments disclosed herein, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for restoring a data configuration, the method comprising:
storing data configuration according to a first preset mode and recording a version number and first change content generated corresponding to each time of data configuration storage, wherein the version number is a corresponding identifier of each time of data configuration storage and is used for calling the corresponding data configuration and the first change content, the first change content is a difference content between the current storage and the previous data configuration storage, and the data configuration is configured according to a preset logic sequence through data nodes;
acquiring a target version number according to a first preset operation, wherein the target version number is a version number corresponding to the data configuration to be restored;
calling restored content according to the target version number, wherein the restored content at least comprises the first changed content corresponding to all version numbers from the current version number to the target version number;
and restoring the current data configuration to the data configuration corresponding to the target version number according to the restoration content.
2. The method according to claim 1, wherein the data configuration is saved according to a first predetermined manner, and a version number and a first change content generated corresponding to each saved data configuration are recorded, wherein the version number is a corresponding identifier of each saved data configuration and is used for calling the corresponding data configuration and the first change content, the first change content is a content that is different between the current saved data configuration and the previous saved data configuration, and before the step of configuring the data configuration according to a predetermined logic sequence through the data nodes, the method further comprises:
marking data nodes in the data configuration according to a second preset mode and recording second change content corresponding to each mark, wherein the second change content is the difference content between the currently marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second change content;
acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
calling the second change content according to the target mark;
and restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content.
3. The method according to claim 1, wherein the data configuration corresponding to the target version number is configured to gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first change content in the restore content.
4. The method according to claim 2, wherein after the step of restoring the current data configuration to the data configuration corresponding to the target mark according to the second change content, the method further comprises:
and according to the second change content, gradually reshaping the data configuration corresponding to the target mark according to the preset logic sequence to obtain the current data configuration.
5. The method according to claim 2, wherein the first changed content and/or the second changed content includes a new data node and an updated data node, and the predetermined logical order is edited.
6. A data configuration recovery apparatus, comprising:
the data configuration management module is used for storing the data configuration according to a first preset mode and recording a version number and first change content generated corresponding to each data configuration storage, wherein the version number is a corresponding identifier of each data configuration storage and is used for calling the corresponding data configuration and the first change content, the first change content is the difference content between the current data configuration storage and the previous data configuration storage, and the data configuration is configured according to a preset logic sequence through data nodes;
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target version number according to a first preset operation of a user, and the target version number is a version number corresponding to the data configuration to be restored;
the calling module is used for calling the restored content according to the target version number, wherein the restored content at least comprises first changed content corresponding to all version numbers from the current version number to the target version number;
and the restoring module is used for restoring the current data configuration to the data configuration corresponding to the target version number according to the restoring content.
7. The data structure recovery apparatus of claim 6, further comprising:
the marking module is used for marking the data nodes in the data configuration according to a second preset mode and recording second change content corresponding to each mark, wherein the second change content is the difference content between the currently marked data configuration and the initial data configuration, and the mark is used for calling the corresponding second change content;
the acquisition module is used for acquiring a target mark according to a second preset operation of a user, wherein the target mark is a mark corresponding to the data configuration to be restored;
the calling module is further used for calling the second change content according to the target mark;
the restoration module is further configured to restore the current data configuration to the data configuration corresponding to the target mark according to the second change content.
8. The data structure recovery apparatus of claim 6, wherein the apparatus comprises:
the restoring module is further configured to restore the current data configuration to the data configuration corresponding to the target version number according to the restored content, and gradually restore the current data configuration to the data configuration corresponding to the target version number according to the first changed content in the restored content in the saving order.
9. An electronic device, characterized in that the electronic device comprises: a processor and a memory;
the memory stores an application program executable by the processor for causing the processor to perform the steps of the data configuration restoration method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method for restoring a data configuration according to any one of claims 1 to 5.
CN202010395070.7A 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium Active CN111638904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010395070.7A CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010395070.7A CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111638904A true CN111638904A (en) 2020-09-08
CN111638904B CN111638904B (en) 2023-12-22

Family

ID=72332738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010395070.7A Active CN111638904B (en) 2020-05-11 2020-05-11 Data configuration restoration method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111638904B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036656A1 (en) * 2004-08-12 2006-02-16 National Instruments Corporation Automatic versioning and data mutation of user-defined data types
CN101056303A (en) * 2007-05-31 2007-10-17 威盛电子股份有限公司 Configurable network interface with horizontal tree structure, its display method and node processing method
CN107220142A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Perform the method and device of data recovery operation
CN107967188A (en) * 2016-10-18 2018-04-27 腾讯科技(深圳)有限公司 Treating method and apparatus in data storage
CN108073656A (en) * 2016-11-17 2018-05-25 杭州华为数字技术有限公司 A kind of method of data synchronization and relevant device
CN108255925A (en) * 2017-11-10 2018-07-06 平安普惠企业管理有限公司 A kind of display methods and its terminal of data list structure alteration
EP3416055A1 (en) * 2017-06-14 2018-12-19 Beijing Xiaomi Mobile Software Co., Ltd. Method, device, electric device and computer-readable storage medium for updating page
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109299194A (en) * 2018-09-25 2019-02-01 平安科技(深圳)有限公司 Multi-edition data memory management method and device, electronic equipment, storage medium
CN109492200A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 Cooperated documents restoring method, device, storage medium and electronic equipment
CN109582381A (en) * 2018-10-12 2019-04-05 中国建设银行股份有限公司 File type configuration information synchronization system, method and storage medium
CN110750267A (en) * 2019-09-26 2020-02-04 浙江大搜车软件技术有限公司 Service information updating method and device, computer equipment and storage medium
US20200050652A1 (en) * 2016-11-07 2020-02-13 Tencent Technology (Shenzhen) Company Limited Method for compiling page data, method, device and storage medium for page rendering
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
US20200133527A1 (en) * 2018-10-24 2020-04-30 EMC IP Holding Company LLC Versioning a configuration of data storage equipment
CN111125057A (en) * 2019-12-05 2020-05-08 江苏苏宁物流有限公司 Service request processing method and device and computer system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060036656A1 (en) * 2004-08-12 2006-02-16 National Instruments Corporation Automatic versioning and data mutation of user-defined data types
CN101056303A (en) * 2007-05-31 2007-10-17 威盛电子股份有限公司 Configurable network interface with horizontal tree structure, its display method and node processing method
CN107220142A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 Perform the method and device of data recovery operation
CN107967188A (en) * 2016-10-18 2018-04-27 腾讯科技(深圳)有限公司 Treating method and apparatus in data storage
US20200050652A1 (en) * 2016-11-07 2020-02-13 Tencent Technology (Shenzhen) Company Limited Method for compiling page data, method, device and storage medium for page rendering
CN108073656A (en) * 2016-11-17 2018-05-25 杭州华为数字技术有限公司 A kind of method of data synchronization and relevant device
EP3416055A1 (en) * 2017-06-14 2018-12-19 Beijing Xiaomi Mobile Software Co., Ltd. Method, device, electric device and computer-readable storage medium for updating page
CN108255925A (en) * 2017-11-10 2018-07-06 平安普惠企业管理有限公司 A kind of display methods and its terminal of data list structure alteration
CN109299194A (en) * 2018-09-25 2019-02-01 平安科技(深圳)有限公司 Multi-edition data memory management method and device, electronic equipment, storage medium
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109582381A (en) * 2018-10-12 2019-04-05 中国建设银行股份有限公司 File type configuration information synchronization system, method and storage medium
US20200133527A1 (en) * 2018-10-24 2020-04-30 EMC IP Holding Company LLC Versioning a configuration of data storage equipment
CN109492200A (en) * 2018-10-26 2019-03-19 天津字节跳动科技有限公司 Cooperated documents restoring method, device, storage medium and electronic equipment
CN110750267A (en) * 2019-09-26 2020-02-04 浙江大搜车软件技术有限公司 Service information updating method and device, computer equipment and storage medium
CN110968363A (en) * 2019-11-22 2020-04-07 贝壳技术有限公司 Data configuration synchronization method and device, electronic equipment and readable storage medium
CN111125057A (en) * 2019-12-05 2020-05-08 江苏苏宁物流有限公司 Service request processing method and device and computer system

Also Published As

Publication number Publication date
CN111638904B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN100470492C (en) Generating an optimized database restore plan
US7653613B1 (en) Method and apparatus for facilitating simultaneous modifications to financial-data by multiple users
CN111931172B (en) Financial system business process abnormality early warning method and device
CN105447734B (en) Order information processing method and system
CN106951345A (en) A kind of conformance test method and device of magnetic disk of virtual machine data
CN107291950B (en) Form data updating method and device and computer equipment
CN110990396A (en) Data storage method, device and storage medium
CN112269850A (en) Geographic data processing method and device, electronic equipment and storage medium
CN104363112A (en) Parameter management method and parameter management device
CN108572888B (en) Disk snapshot creating method and disk snapshot creating device
CN115049365A (en) Application commissioning information processing method and device and computer equipment
CN104699790A (en) Bank data relationship building method and device
CN111142975B (en) State machine persistence method and state machine persistence system
CN116910034A (en) Data migration method, device, equipment and readable storage medium
CN111638904A (en) Data configuration restoration method and device and readable storage medium
Annett Working with Legacy Systems: A practical guide to looking after and maintaining the systems we inherit
CN111090451A (en) Service configuration method, device and storage medium
CN116127932A (en) Business report generation method, equipment and medium
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN111857670B (en) Application architecture determining method and device
CN110532533B (en) Form precision collocation method, device, computer equipment and storage medium
CN110968363A (en) Data configuration synchronization method and device, electronic equipment and readable storage medium
CN109697216B (en) Clearing transaction information processing method, device and system
CN110221952B (en) Service data processing method and device and service data processing system
US20220270191A1 (en) System for automatically splitting smart contract

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