Data management method, device, equipment and computer-readable storage medium
By uniformly converting data units during data storage and reading, the problem of cumbersome data unit conversion operations in the management platform is solved, and the efficiency of data unit conversion is improved.
Patent Information
- Application Number
- CN202111262851.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-10-28
AI Technical Summary
When the prior art deals with changes in indicator versions in the management platform, the data unit conversion operation process is cumbersome, which affects the efficiency of data reading and display.
By obtaining the current unit and database setting unit of the data to be stored, the data is converted into database setting units, and uniformly converted into target units during reading, simplifying the data storage and reading process.
It realizes unified storage and reading of data units, simplifies the operation process, and improves the efficiency of data unit conversion.
Smart Images

Figure CN113886401B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data management technology, and in particular to a data management method, apparatus, device, and computer-readable storage medium. Background Art
[0002] During the version evolution of managed objects, the units of metrics may be modified, such as capacity changing from GB to TB or response time changing from seconds to milliseconds. Changes in metric units can be considered version changes. The management platform generally handles these version changes for different metrics as follows: It determines the version number of the managed object and handles different versions differently on the management platform. For the initial version, data is displayed in the units of the initial version; for a new version, data is displayed in the units of the new version.
[0003] For information displayed in real time, this approach is fine. However, if the management platform needs to continuously collect and display historical data and current data, it is obviously necessary to display all data in a unified unit for easy reading by users. The general practice is to use the unit of the latest version as the basis, not process the data of the new version, and perform unit conversion on historical data other than the latest version in the database. Although this can ensure that all data is based on the latest version, in actual applications, the amount of historical data in the database is often too large, and for the same type of indicator, the historical data stored at different stages may have different units. When reading and displaying data, it is necessary to calculate the proportional relationship between the unit of each historical data in the database and the unit of the data currently required to be displayed. Then, based on the proportional relationship corresponding to each historical data, each historical data is converted into the data unit currently required to be displayed. This operation process is relatively cumbersome.
[0004] It can be seen that how to simplify the operational process of data unit conversion and improve the efficiency of data unit conversion is a problem that those skilled in the art need to solve. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a data management method, device, equipment and computer-readable storage medium, which can simplify the operational process of data unit conversion and improve the efficiency of data unit conversion.
[0006] To solve the above technical problems, the present invention provides a data management method, including:
[0007] Get the data to be stored;
[0008] According to the current unit of the data to be stored and the database setting unit, the data to be stored is converted into data of the database setting unit, and the data of the database setting unit is stored in the database;
[0009] When a data read instruction carrying a target unit is obtained, the data to be read from the database is uniformly converted into data of the target unit based on the target unit and the database setting unit.
[0010] Optionally, converting the data to be stored into data in a database setting unit according to the current unit of the data to be stored and the database setting unit includes:
[0011] Based on the multiple relationship between the current unit of the data to be stored and the database setting unit, the data to be stored is converted into data of the database setting unit.
[0012] Optionally, before converting the data to be stored into data of the database set unit based on the multiple relationship between the current unit of the data to be stored and the database set unit, the method further includes:
[0013] Determining whether the data to be stored contains new and old unit multiples information; wherein the new and old unit multiples information includes a multiple relationship between the current unit of the data to be stored and the unit set in the database;
[0014] In the case that the data to be stored contains the multiple information of the old and new units, the step of converting the data to be stored into the unit set in the database based on the multiple relationship between the current unit of the data to be stored and the unit set in the database is performed.
[0015] Optionally, it also includes:
[0016] In a case where the data to be stored does not include information on multiples of old and new units, the data to be stored is stored in the database.
[0017] Optionally, the database setting unit includes units corresponding to different data types;
[0018] The storing the data of the database setting unit into the database includes:
[0019] Based on a target data type to which the data of the database setting unit belongs, the data of the database setting unit is stored in an area of the database that matches the target data type.
[0020] Optionally, it also includes:
[0021] When an adjustment instruction carrying a standard unit is obtained, the database setting unit is modified to the standard unit.
[0022] Optionally, after converting the data to be stored into data of a database setting unit according to the current unit of the data to be stored and the database setting unit, and storing the data of the database setting unit in the database, the method further includes:
[0023] Record the current unit corresponding to the latest stored data;
[0024] Saving the correspondence between the current unit and the unit set in the database;
[0025] When a display instruction is obtained, the data to be displayed in the database are uniformly converted into data of the current unit according to the corresponding relationship, and the data of the current unit is displayed.
[0026] The embodiment of the present application further provides a data management device, comprising an acquisition unit, a first conversion unit, a storage unit, and a second conversion unit;
[0027] The acquiring unit is used to acquire the data to be stored;
[0028] The first conversion unit is configured to convert the data to be stored into data in the database setting unit according to the current unit of the data to be stored and the database setting unit;
[0029] The storage unit is used to store the data of the database setting unit into the database;
[0030] The second conversion unit is configured to, when a data read instruction carrying a target unit is obtained, convert the data to be read from the database into data of the target unit based on the target unit and the database setting unit.
[0031] Optionally, the first conversion unit is configured to convert the data to be stored into data of a database set unit based on a multiple relationship between a current unit of the data to be stored and a database set unit.
[0032] Optionally, it further includes a judgment unit;
[0033] The judgment unit is used to judge whether the data to be stored contains new and old unit multiples information; wherein, the new and old unit multiples information includes the multiple relationship between the current unit of the data to be stored and the unit set in the database; when the data to be stored contains new and old unit multiples information, the first conversion unit is triggered to execute the step of converting the data to be stored into data of the database set unit based on the multiple relationship between the current unit of the data to be stored and the database set unit.
[0034] Optionally, the storage unit is further configured to store the data to be stored in the database when the data to be stored does not include information on multiples of new and old units.
[0035] Optionally, the database setting unit includes units corresponding to different data types;
[0036] The storage unit is configured to store the data of the database setting unit in an area of the database that matches the target data type based on the target data type to which the data of the database setting unit belongs.
[0037] Optionally, a modification unit is further included;
[0038] The modification unit is configured to modify the database setting unit to the standard unit when an adjustment instruction carrying the standard unit is obtained.
[0039] Optionally, it further includes a recording unit, a storage unit and a display unit;
[0040] The recording unit is used to record the current unit corresponding to the latest stored data;
[0041] The storage unit is used to store the corresponding relationship between the current unit and the unit set in the database;
[0042] The display unit is configured to, when receiving a display instruction, uniformly convert the data to be displayed in the database into data of the current unit according to the corresponding relationship, and display the data of the current unit.
[0043] The present application also provides a data management device, including:
[0044] Memory for storing computer programs;
[0045] A processor is used to execute the computer program to implement the steps of the above-mentioned data management method.
[0046] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned data management method are implemented.
[0047] As can be seen from the above technical solution, the data to be stored is obtained; based on the current unit of the data to be stored and the database set unit, the data to be stored is converted to the database set unit, and the data in the database set unit is stored in the database. By uniformly converting the data to be stored to the database set unit, it is possible to ensure that data of the same data type stored in the database has the same unit, and the situation where the units of data stored at different stages are inconsistent can be avoided. When a data read instruction carrying a target unit is obtained, since the data of the same data type in the database have the same unit, the data to be read in the database can be uniformly converted to the target unit based on the target unit and the database set unit. In this technical solution, during the data storage phase, the data can be converted to the database set unit based on the current unit of the data and the database set unit, ensuring the uniformity of the units of data of the same data type in the database. Compared with the traditional method of calculating the corresponding conversion ratio for each data to be read and then converting each data to the target unit, when reading data, since the data of the same data type in the database have the same unit, this solution only needs to convert the data to the target unit. This simplifies the operation process of data unit conversion and improves the efficiency of data unit conversion. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] Figure 1 A flowchart of a data management method provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the structure of a data management device provided in an embodiment of the present application;
[0051] Figure 3 A structural diagram of a data management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0053] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not limited to the listed steps or elements and may include steps or elements that are not listed.
[0054] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0055] Next, a data management method provided by an embodiment of the present application is described in detail. Figure 1 A flowchart of a data management method provided in an embodiment of the present application, the method comprising:
[0056] S101: Acquire data to be stored.
[0057] The data management solution provided in the embodiments of this application is applicable to the interaction between managed devices and a management platform. A managed device can be a user's terminal device, through which the user can transmit data to the management platform. For ease of distinction, the data transmitted from the managed device to the management platform can be referred to as data to be stored.
[0058] S102: Convert the data to be stored into data of the database setting unit according to the current unit of the data to be stored and the database setting unit, and store the data of the database setting unit into the database.
[0059] To ensure data is stored in a unified unit, managed devices transmit data to the management platform along with the current unit of the data to be stored. For example, if the data to be stored includes capacity data, the current unit of capacity is terabytes (TB), or if the data to be stored includes response time data, the current unit of response time is milliseconds (ms).
[0060] The management platform records the database setting unit. After receiving the data to be stored, the management platform can convert the data to be stored into the database setting unit based on the current unit of the data to be stored and the database setting unit, thereby storing the data in the database setting unit in the database.
[0061] Considering that in actual applications, data types are diverse and the units corresponding to different data types are different, in the embodiment of the present application, data of the same data type is converted into a unified unit and stored in the database. Therefore, in order to facilitate the distinction between data of different data types, a corresponding identifier can be set for each data type, and the corresponding identifier can be carried in the data to be stored, thereby facilitating the management platform to distinguish data of different data types.
[0062] For different data types, corresponding database setting units can be set. The database setting units corresponding to different data types can be recorded in the management platform. For example, for capacity data, the database setting unit can be gigabytes (GB); for response time, the database setting unit can be seconds (s).
[0063] In practical applications, the data to be stored may be converted into data of the database set unit based on the multiple relationship between the current unit of the data to be stored and the database set unit.
[0064] For example, suppose the data to be stored is capacity data and its data volume is 2TB. This means that the current unit of the data to be stored is TB. If the database is set to GB, the relationship between TB and GB is: 1TB = 1024GB. In this case, 2TB needs to be converted to 2 * 1024 = 2048GB and stored in the database to ensure that the capacity data stored in the database is uniformly stored in GB.
[0065] S103: When a data read instruction carrying a target unit is obtained, the data to be read in the database is uniformly converted into data of the target unit based on the target unit and the database setting unit.
[0066] The target unit refers to the unit of data currently being displayed. For example, if the database is set to GB and the target unit is TB, all capacity data in the database can be divided by 1024 to obtain the capacity data in TB.
[0067] Considering the variety of data types, the database setting unit may include units corresponding to different data types.
[0068] In a specific implementation, to facilitate subsequent reading and retrieval of data, different areas can be divided in the database to store data of different data types. Therefore, when storing data of a set unit of database data into the database, the data of the set unit of database data can be stored in the area of the database that matches the target data type based on the target data type of the data of the set unit of database data.
[0069] As can be seen from the above technical solution, the data to be stored is obtained; based on the current unit of the data to be stored and the database set unit, the data to be stored is converted to the database set unit, and the data in the database set unit is stored in the database. By uniformly converting the data to be stored to the database set unit, it is possible to ensure that data of the same data type stored in the database has the same unit, and the situation where the units of data stored at different stages are inconsistent can be avoided. When a data read instruction carrying a target unit is obtained, since the data of the same data type in the database have the same unit, the data to be read in the database can be uniformly converted to the target unit based on the target unit and the database set unit. In this technical solution, during the data storage phase, the data can be converted to the database set unit based on the current unit of the data and the database set unit, ensuring the uniformity of the units of data of the same data type in the database. Compared with the traditional method of calculating the corresponding conversion ratio for each data to be read and then converting each data to the target unit, when reading data, since the data of the same data type in the database have the same unit, this solution only needs to convert the data to the target unit. This simplifies the operation process of data unit conversion and improves the efficiency of data unit conversion.
[0070] In practical applications, the management platform may receive data to be stored from multiple managed devices. To reduce the management platform's computational workload, the managed devices can include the new and old unit multiples when transmitting the data to be stored to the management platform.
[0071] When the current unit of the data to be stored and the database setting unit are the same, the data to be stored does not need to carry the new and old unit multiples information; when the current unit of the data to be stored and the database setting unit are different, the managed device can calculate the multiple relationship between the current unit of the data to be stored and the database setting unit. This multiple relationship is the new and old unit multiple information. At this time, the data to be stored transmitted by the managed device to the management platform will carry the new and old unit multiples information.
[0072] Accordingly, before converting the data to be stored into data of the database set unit based on the multiple relationship between the current unit of the data to be stored and the database set unit, the management platform can first determine whether the data to be stored contains new and old unit multiple information; wherein, the new and old unit multiple information includes the multiple relationship between the current unit of the data to be stored and the database set unit.
[0073] When the data to be stored contains information on multiples of old and new units, it means that the current unit of the data to be stored is different from the unit set in the database. In order to unify the units of the same data type in the database, it is necessary to execute the step of converting the data to be stored into the unit set in the database based on the multiple relationship between the current unit of the data to be stored and the unit set in the database.
[0074] When the data to be stored does not contain the multiple information of the old and new units, it means that the current unit of the data to be stored is the same as the unit set in the database. In this case, the data to be stored can be directly stored in the database.
[0075] By carrying the new and old unit multiples information in the data to be stored, the management platform can directly rely on the new and old unit multiples information to realize data conversion. The management platform no longer needs to calculate the multiple relationship based on the current unit of the data to be stored and the database setting unit, which effectively reduces the calculation amount of the management platform.
[0076] In actual applications, in order to meet current business needs, the database setting unit can also be adjusted. In a specific implementation, when the management platform obtains an adjustment instruction carrying the standard unit, it changes the database setting unit to the standard unit.
[0077] The standard unit can be a unit set by the user. For example, the standard unit of capacity data can be set to TB, and the standard unit of response time can be set to ms.
[0078] Modifying the database setting unit to the standard unit includes converting all data stored in the database into data corresponding to the standard unit.
[0079] By modifying the database setting units, you can meet current business needs. In actual applications, you can adjust the database setting units to the units that are more suitable for current display, so that large amounts of data read from the database can be displayed directly, further reducing the amount of calculation required for data unit conversion.
[0080] Taking into account that in actual applications, users may not set the units required for data display when reading data from the database, the management platform can record the current units corresponding to the latest stored data; save the correspondence between the current units and the units set in the database; when obtaining the display instructions, the data to be displayed in the database is uniformly converted into data of the current unit based on the correspondence, and the data of the current unit is displayed.
[0081] The current unit corresponding to the latest stored data is closer to the user's current business needs. Therefore, the management platform displays data based on the current unit corresponding to the latest stored data, which can improve the automation level of data display and improve customer satisfaction with reading data.
[0082] Figure 2 A schematic structural diagram of a data management device provided in an embodiment of the present application includes an acquisition unit 21, a first conversion unit 22, a storage unit 23, and a second conversion unit 24;
[0083] An acquisition unit 21 is used to acquire data to be stored;
[0084] The first conversion unit 22 is used to convert the data to be stored into the data of the database setting unit according to the current unit of the data to be stored and the database setting unit;
[0085] The storage unit 23 is used to store the data of the database setting unit into the database;
[0086] The second conversion unit 24 is configured to convert the to-be-read data in the database into data of the target unit based on the target unit and the database setting unit when a data reading instruction carrying the target unit is obtained.
[0087] Optionally, the first conversion unit is configured to convert the data to be stored into data of the database set unit based on a multiple relationship between the current unit of the data to be stored and the database set unit.
[0088] Optionally, it further includes a judgment unit;
[0089] The judgment unit is used to judge whether the data to be stored contains new and old unit multiples information; wherein the new and old unit multiples information includes the multiple relationship between the current unit of the data to be stored and the unit set in the database; when the data to be stored contains new and old unit multiples information, the first conversion unit is triggered to execute the step of converting the data to be stored into data of the database set unit based on the multiple relationship between the current unit of the data to be stored and the database set unit.
[0090] Optionally, the storage unit is further configured to store the data to be stored in the database when the data to be stored does not include information on multiples of the old and new units.
[0091] Optionally, the database setting unit includes units corresponding to different data types;
[0092] The storage unit is used for storing the data of the database setting unit in an area in the database that matches the target data type based on the target data type to which the data of the database setting unit belongs.
[0093] Optionally, a modification unit is further included;
[0094] The modification unit is used to modify the database setting unit to the standard unit when an adjustment instruction carrying the standard unit is obtained.
[0095] Optionally, it further includes a recording unit, a storage unit and a display unit;
[0096] Recording unit, used to record the current unit corresponding to the latest stored data;
[0097] A saving unit is used to save the corresponding relationship between the current unit and the unit set in the database;
[0098] The display unit is used to convert the data to be displayed in the database into the data of the current unit according to the corresponding relationship when obtaining the display instruction, and display the data of the current unit.
[0099] Figure 2 The description of the features in the corresponding embodiment can be found in Figure 1 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.
[0100] As can be seen from the above technical solution, the data to be stored is obtained; based on the current unit of the data to be stored and the database set unit, the data to be stored is converted to the database set unit, and the data in the database set unit is stored in the database. By uniformly converting the data to be stored to the database set unit, it is possible to ensure that data of the same data type stored in the database has the same unit, and the situation where the units of data stored at different stages are inconsistent can be avoided. When a data read instruction carrying a target unit is obtained, since the data of the same data type in the database have the same unit, the data to be read in the database can be uniformly converted to the target unit based on the target unit and the database set unit. In this technical solution, during the data storage phase, the data can be converted to the database set unit based on the current unit of the data and the database set unit, ensuring the uniformity of the units of data of the same data type in the database. Compared with the traditional method of calculating the corresponding conversion ratio for each data to be read and then converting each data to the target unit, when reading data, since the data of the same data type in the database have the same unit, this solution only needs to convert the data to the target unit. This simplifies the operation process of data unit conversion and improves the efficiency of data unit conversion.
[0101] Figure 3 A structural diagram of a data management device provided in an embodiment of the present application, such as Figure 3 As shown, the data management device includes: a memory 20 for storing computer programs;
[0102] The processor 21 is configured to implement the steps of the data management method of the above embodiment when executing a computer program.
[0103] The data management device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0104] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0105] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the data management method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to the current unit of the data to be stored and the database setting unit, the data of the database setting unit, etc.
[0106] In some embodiments, the data management device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0107] Those skilled in the art will understand that Figure 3The structure shown in the figure does not constitute a limitation on the data management device, and may include more or fewer components than shown in the figure.
[0108] It is understandable that if the data management method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium and executes all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program code.
[0109] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned data management method are implemented.
[0110] The functions of the various functional modules of the computer-readable storage medium described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment and will not be repeated here.
[0111] The above describes in detail a data management method, apparatus, device, and computer-readable storage medium provided in the embodiments of the present application. The various embodiments are described in a progressive manner in the specification, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between the various embodiments can be referenced to each other. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0112] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0113] The above is a detailed introduction to a data management method, device, equipment and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
Claims
1. A data management method, characterized in that: include: Acquire data to be stored; wherein the data to be stored is capacity data or response time data of different historical versions and different units; Determine whether the data to be stored contains new and old unit multiples information; wherein the new and old unit multiples information includes the multiple relationship between the current unit of the data to be stored and the unit set in the database; If the data to be stored contains information on multiples of old and new units, converting the data to be stored into data in the unit set in the database based on the multiple relationship between the current unit of the data to be stored and the unit set in the database; Based on the multiple relationship between the current unit of the data to be stored and the unit set in the database, the data to be stored is converted into data of the unit set in the database, and the data of the unit set in the database is stored in the database; the database setting unit includes units corresponding to different data types; Record the current unit corresponding to the latest stored data; save the correspondence between the current unit and the unit set in the database; when a display instruction is obtained, convert the data to be displayed in the database into data of the current unit according to the correspondence, and display the data of the current unit; When a data read instruction carrying a target unit is obtained, the data to be read from the database is uniformly converted into data of the target unit based on the target unit and the database setting unit; The storing the data of the database setting unit into the database includes: Based on a target data type to which the data of the database setting unit belongs, the data of the database setting unit is stored in an area of the database that matches the target data type.
2. The data management method according to claim 1, characterized in that: Also includes: In a case where the data to be stored does not include information on multiples of old and new units, the data to be stored is stored in the database.
3. The data management method according to claim 1, characterized in that: Also includes: When an adjustment instruction carrying a standard unit is obtained, the database setting unit is modified to the standard unit.
4. A data management device, characterized in that: comprising an acquisition unit, a first conversion unit, a storage unit, and a second conversion unit; The acquisition unit is used to acquire the data to be stored; wherein the data to be stored is capacity data or response time data of different historical versions and different units; The first conversion unit is configured to convert the data to be stored into data in a database setting unit according to the current unit of the data to be stored and the database setting unit; The storage unit is used to store the data of the database setting unit in the database; the database setting unit includes units corresponding to different data types; The second conversion unit is configured to, upon obtaining a data read instruction carrying a target unit, uniformly convert the data to be read from the database into data of the target unit based on the target unit and the database setting unit; The first conversion unit is specifically configured to convert the data to be stored into data of the database setting unit based on a multiple relationship between the current unit of the data to be stored and the database setting unit; The data management device is further configured to determine whether the data to be stored contains information on multiples of old and new units; wherein the information on multiples of old and new units includes a multiple relationship between a current unit of the data to be stored and a unit set in the database; if the data to be stored contains information on multiples of old and new units, the step of converting the data to be stored into data in the unit set in the database based on the multiple relationship between the current unit of the data to be stored and the unit set in the database is executed; The data management device is further configured to record the current unit corresponding to the most recently stored data; store the correspondence between the current unit and the unit set in the database; and upon receiving a display instruction, uniformly convert the data to be displayed in the database into data of the current unit according to the correspondence, and display the data of the current unit. The storage unit is specifically configured to store the data of the database setting unit in an area in the database that matches the target data type based on the target data type to which the data of the database setting unit belongs.
5. A data management device, characterized in that: include: memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the data management method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the data management method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Data interaction method and device
CN110008222A
Data exchange method and device between databases
CN110096541A
Data display method and device, server, terminal equipment and readable storage medium
CN110888931A