Data rollback method, electronic device, storage medium

A technology for data rollback and electronic equipment, applied in the field of data management, can solve the problems of long data consumption, large data storage growth, and inability to save, etc., to achieve the effect of fast and convenient rollback processing

Active Publication Date: 2021-03-12
ZHANGYUE TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Only the current data can be stored in the database, and operations such as updating and deleting data cannot be saved
That is, it cannot save the historical data of each data
When operations on historical data are required, historical data cannot be queried
[0004] 2. When the data has multi-level relationships, the data storage will be huge
Especially when the level of the data structure is deep, the growth of data storage is large, and the query of data also takes a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data rollback method, electronic device, storage medium
  • Data rollback method, electronic device, storage medium
  • Data rollback method, electronic device, storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 shows a flow chart of a data rollback method according to Embodiment 1 of the present invention, as figure 1 As shown, the data rollback method specifically includes the following steps:

[0028] Step S101, obtaining the name of the data tree selected by the user fed back by the front-end page, searching for and displaying each node included in the data tree.

[0029] In this embodiment, there is an upper-lower relationship among the data, and the data is stored in the first database in a tree structure. The first database is a tree-structure database, and the zookeeper database is used as an example for illustration, but not limited to the zookeeper database.

[0030] When the user needs to view the data, the name of the data tree selected by the user on the front-end page is obtained first, and each node contained in it is searched according to the name of the data tree. The name of the data tree can use the root node of the data as the name of the data tr...

Embodiment 2

[0045] figure 2 shows a flow chart of a data rollback method according to Embodiment 2 of the present invention, as figure 2 As shown, the data rollback method includes the following steps:

[0046] Step S201, obtaining the name of the data tree selected by the user fed back by the front-end page, searching for and displaying each node included in the data tree.

[0047] This step refers to figure 1 The description of step S101 in the embodiment will not be repeated here.

[0048] Step S202, receiving a user-triggered click operation on any node, searching and displaying the data information of the node from the second database.

[0049] When the user needs to find the detailed data information of any node, the data information of the node can be obtained when a user-triggered click operation on any node is received, and the data information of the node can be fed back on the front-end page. Since the data information of each node is stored in a tree structure in the fir...

Embodiment 3

[0068] Embodiment 3 of the present application provides a non-volatile computer storage medium. The computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the data rollback method in any of the above method embodiments.

[0069] Specifically, the executable instruction can be used to make the processor perform the following operations:

[0070] Obtain the name of the data tree selected by the user for feedback on the front-end page, find and display each node contained in the data tree; receive the query operation triggered by the user on the operation history information of any node, query and display the data tree from the second database The operation history information of the node; wherein, the second database is a relational database, and the data in the second database has a mapping relationship with the data in the first database; according to the rollback operation of any operation history information tri...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data rollback method, electronic equipment, and a storage medium. The method includes: obtaining the name of a data tree selected by a user fed back by a front-end page, searching for and displaying each node contained in the data tree; receiving the user-triggered For the query operation of the operation history information of any node, query and display the operation history information of the node from the second database; according to the rollback operation of any operation history information triggered by the user, use the operation history information to update the node. Use the second database to save the operation history information of the node, which is convenient for users to quickly query the various operation history of the node, understand the change of the node data information, and correct the data information of the node in time according to the operation history information, and correct the error in time. Various problems arising from operation, etc.

Description

technical field [0001] The invention relates to the field of data management, in particular to a data rollback method, electronic equipment and a storage medium. Background technique [0002] When the data has a superior-subordinate relationship, storing the data in a tree structure can more intuitively store the correlation between the data, facilitate the analysis of the data, and make the data storage less redundant and more intuitive. However, storing data in a tree structure also has the following problems: [0003] 1. Only current data can be stored in the database, and operations such as updating and deleting data cannot be saved. That is, it cannot save the historical data of each data. When operations on historical data are required, historical data cannot be queried. [0004] 2. When the data has multi-level relationships, the data storage will be huge. Especially when the level of the data structure is deep, the magnitude of growth of data storage is large, an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/21G06F16/22G06F16/23G06F16/2455G06F16/28G06F11/14
CPCG06F11/1448G06F16/219G06F16/2246G06F16/235G06F16/24553G06F16/284
Inventor 王利超戚磊杨明
Owner ZHANGYUE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products