A data warehouse for storing critical data
Obtaining the importance attributes of data through data interception and analysis units, combined with distributed storage terminals for storage analysis and distribution, solves the problem of being unable to distinguish data importance and storage methods in the existing technology, and realizes intelligent data storage.
Patent Information
- Application Number
- CN202111425280.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-11-26
AI Technical Summary
Existing data storage technology cannot determine the importance of data transmitted within the company, and different storage methods are used based on the importance.
Obtain the target data through the data interception unit, use the data analysis unit to connect with the company's intranet to obtain relevant attributes, calculate the actual required value Sj, and transfer it to the distributed data storage end, and perform storage analysis and distributed storage based on the actual required value. Specific steps include obtaining the number of carbon copies and review level values, calculating the actual required value Sj, and combining the microcontroller and storage branch unit to perform storage partitioning and allocation.
It realizes intelligent differentiation of data importance and different processing methods. It is simple, effective, easy to use, and can intelligently store data according to the importance of the data.
Smart Images

Figure CN114116871B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of data storage, in particular to a data warehouse for storing key data. Background Art
[0002] The patent with publication number CN1568512 discloses a data storage driver for allocating an automatic data storage library for a received request. When a driver request is received when all drivers in a driver pool are allocated, a driver resource provider suspends the installation of any portable data storage box related to the request, and releases the suspension when the driver is allocated. A spare driver is provided outside the driver pool. A spare driver can be allocated in response to a request, and a message indicating the use of the spare data storage driver is delivered. The delivered message can include a notification that an action can be taken to permanently transfer the spare data storage driver to the driver pool. Moreover, a driver image provider for a virtualization system for an automatic data storage library provides an image of a fixed plurality of virtual data storage drivers with a fixed identifier to a host application. At any time, the driver resource provider allocates an arbitrary number "m" of the driver pool of "n" drivers to the driver image provider, and "n"-"m" of the driver pool are released and can be used for allocation. The driver resource provider responds to a triggering event requesting a driver, and one of the "n"-"m" drivers in the driver pool is dedicated to the virtual driver. The driver image provider characterizes and guides the communication between the host and the dedicated driver as a fixed virtual driver; and characterizes the virtual driver as "not ready" to the requesting host application before the driver is dedicated.
[0003] However, this storage cannot determine the importance of data transmitted within the company, and cannot store data of different importance in different ways; based on this, a solution is provided. Summary of the invention
[0004] The object of the present invention is to provide a data warehouse for storing key data.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A data warehouse for storing key data, comprising a data interception unit, a data analysis unit, and a distributed data storage terminal;
[0007] The data interception unit is used to obtain target data, which is the information content that the user needs to store in the data warehouse;
[0008] The data interception unit is used to transmit the target data to the data analysis unit. The data analysis unit is connected to the company's intranet to obtain the relevant attributes of the corresponding target data and obtain the actual required value Sj of the target data;
[0009] The data analysis unit is used to transmit the target data and its corresponding actual required value Sj to the distributed data storage end;
[0010] The distributed data storage end receives the target data and its corresponding actual required value Sj, performs storage analysis on the target data and its corresponding actual required value Sj, and completes the storage of the target data in the manner of storage analysis.
[0011] Furthermore, the specific method of obtaining relevant attributes is:
[0012] Step 1: First, obtain the target data to be stored;
[0013] Step 2: Then, the number of copies Cs and the review level G of the target data are obtained with the help of the content;
[0014] Step 3: Calculate the actual required value Sj based on the review level value G and the number of copies Cs. The specific calculation formula is:
[0015] Sj = 0.452*G + 0.548*Cs;
[0016] Here, 0.452 and 0.548 are the preset weights;
[0017] Step 4: Get the actual required value Sj of the target data.
[0018] Furthermore, the specific method for obtaining the number of copies and the review level value in step 2 is:
[0019] S1: Get the corresponding target data, the number of people sent to the recipient in the company's intranet, and mark the number as the copy number Cs;
[0020] S2: After that, the company's organizational structure is obtained, and the corresponding positions are divided into levels according to the levels of the company's organizational structure. Then, numerical values are assigned in order from low to high, and the values increase in sequence starting from 1, and the values are marked as hierarchical values;
[0021] S3: Then get the level values of all received objects and mark them as C i , i = 1, ..., n; then the review level value G is calculated according to the level value, and the specific calculation formula is:
[0022]
[0023] Where α is the preset weight, which aims to amplify the impact of the level on the final result, where 1<α≤2.5;
[0024] S4: Get the review level value G and the number of copies Cs of the target data.
[0025] Furthermore, the distributed data storage end includes a microcontroller and a plurality of storage branch units; the storage branch unit is the corresponding memory;
[0026] The microcontroller receives the target data and its corresponding actual value Sj transmitted by the data analysis unit, and performs storage analysis on it in combination with several storage branch units. The specific storage analysis method is as follows:
[0027] SS1: Get the target data and its corresponding actual value Sj; synchronously get the number of storage branch units and mark it as the storage number; and number the storage branch units in sequence, with the number marked as the identification code of the storage branch unit;
[0028] SS2: After that, Sj is obtained and compared with X1 and X2 to generate a concrete storage signal, a binary storage signal and an item storage signal;
[0029] SS3: When a concrete storage signal is generated, the actual size of the target data is automatically obtained, and it is evenly divided into branch files corresponding to the number of storages, and the branch files are marked with identification codes according to the order in the target data;
[0030] SS4: Store each branch file in the branch file with the same identification code in order according to the identification code;
[0031] SS5: When a binary storage signal is generated, the actual size of the target data is automatically obtained and divided according to a preset single value, which is the data size of each branch file set by the administrator;
[0032] SS6: Divide the target data by the preset single value, and mark the corresponding quotient as the partition value. When the remainder exceeds half of the preset single value, increase the partition value by one, and mark the remaining content as a single branch file;
[0033] SS7: Get several branch files, number them according to the sequence of target data, and mark the numbers as partition numbers;
[0034] SS8: When the partition number is less than or equal to the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number;
[0035] When the partition number is greater than the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number, and then the remaining partition numbers are placed in the storage branch units corresponding to the identification codes from large to small in order to complete the data storage;
[0036] SS9: When a sub-item storage signal is generated, the target data is automatically divided into several branch files for storage, and the files are numbered in sequence according to the content of the target data to obtain equal division numbers;
[0037] SS10: After that, the suffixes of the branch files are uniformly modified to reverse order, and a corresponding relationship between the equal semicolon and the identification code is established to obtain a combination code of the secondary distribution code and the equal semicolon;
[0038] SS11: Store the branch file in the corresponding storage branch unit according to the secondary allocation code in the combination code;
[0039] SS12: Data storage is completed.
[0040] Furthermore, the process of comparing Sj in step SS2 is:
[0041] When Sj<X1, a concrete storage signal is generated;
[0042] When X1≤Sj≤X2, a binary storage signal is generated;
[0043] When Sj>X2, a sub-item storage signal is generated.
[0044] Furthermore, in step SS6, if the remainder does not exceed half of the preset single value, the specific value of the partition value is not changed, and the remaining content is merged into the last branch file; the order of the branch files here is arranged according to the actual order of the target data.
[0045] Furthermore, the corresponding relationship in step SS10 is specifically:
[0046] Get the number of characters in all branch files, and add secondary allocation codes that are consistent with the range of the identification code in descending order of the number of characters. Here, the identification code is assigned to the secondary allocation code in descending order of the number of characters.
[0047] The secondary distribution code is combined with the equal-separation sign, with the equal-separation sign in front and the secondary distribution code in the back, and a distinguishing code is added in the middle to obtain a combination code.
[0048] Beneficial effects of the present invention:
[0049] The present invention obtains target data through a data interception unit, and the target data is the information content that the user needs to store in the data warehouse; then the data analysis unit is used to communicate with the company's intranet to obtain the relevant attributes of the corresponding target data and obtain the actual required value Sj of the target data; the data analysis unit is used to transmit the target data and its corresponding actual required value Sj to a distributed data storage end; finally, the distributed data storage end is used to receive the target data and its corresponding actual required value Sj, and the target data and its corresponding actual required value Sj are stored and analyzed, and the target data is stored in a storage and analysis manner.
[0050] The importance of data can be intelligently distinguished, and different processing methods are given according to the importance. The invention is simple, effective, and easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0052] Figure 1 It is a system block diagram of the present invention. DETAILED DESCRIPTION
[0053] like Figure 1 As shown, a data warehouse for storing key data includes a data interception unit, a data analysis unit, and a distributed data storage terminal;
[0054] The data interception unit is used to obtain target data, which is the information content that the user needs to store in the data warehouse;
[0055] The data interception unit is used to transmit the target data to the data analysis unit. The data analysis unit is connected to the company's intranet to obtain the relevant attributes of the corresponding target data. The specific method of obtaining the relevant attributes is:
[0056] Step 1: First, obtain the target data to be stored;
[0057] Step 2: Then, the number of copies Cs and the review level G of the target data are obtained with the help of the content; the specific method of obtaining the number of copies and the review level is:
[0058] S1: Get the corresponding target data, the number of people sent to the recipient in the company's intranet, and mark the number as the copy number Cs;
[0059] S2: After that, the company's organizational structure is obtained, and the corresponding positions are divided into levels according to the levels of the company's organizational structure. Then, numerical values are assigned in order from low to high, starting from 1 and increasing in sequence, and the values are marked as level values. Here, for example, when the company has five levels, the level value of the employee corresponding to the lowest level is 1, and the level value corresponding to the highest level is 5;
[0060] S3: Then get the level values of all received objects and mark them as C i , i = 1, ..., n; then the review level value G is calculated according to the level value, and the specific calculation formula is:
[0061]
[0062] Where α is the preset weight, which aims to amplify the impact of the level on the final result, where 1<α≤2.5;
[0063] S4: Get the review level G and the number of copies Cs of the target data;
[0064] Step 3: Calculate the actual required value Sj based on the review level value G and the number of copies Cs. The specific calculation formula is:
[0065] Sj = 0.452*G + 0.548*Cs;
[0066] Here, 0.452 and 0.548 are preset weights, which can be modified adaptively by the administrator;
[0067] Step 4: Get the actual value Sj of the target data;
[0068] The data analysis unit is used to transmit the target data and its corresponding actual required value Sj to the distributed data storage end;
[0069] The distributed data storage end includes a microcontroller and a plurality of storage branch units; the storage branch unit is a corresponding memory, and the specific number can be set to five, or other, according to the specific needs of the management personnel;
[0070] The microcontroller receives the target data and its corresponding actual value Sj transmitted by the data analysis unit, and performs storage analysis on it in combination with several storage branch units. The specific storage analysis method is as follows:
[0071] SS1: Get the target data and its corresponding actual value Sj; synchronously get the number of storage branch units and mark it as the storage number; and number the storage branch units in sequence, with the number marked as the identification code of the storage branch unit;
[0072] SS2: Then get Sj and compare it with X1 and X2.
[0073] When Sj<X1, a concrete storage signal is generated;
[0074] When X1≤Sj≤X2, a binary storage signal is generated;
[0075] When Sj>X2, a sub-item storage signal is generated;
[0076] SS3: When a concrete storage signal is generated, the actual size of the target data is automatically obtained, and it is evenly divided into branch files corresponding to the number of storages, and the branch files are marked with identification codes according to the order in the target data;
[0077] SS4: Store each branch file in the branch file with the same identification code in order according to the identification code;
[0078] SS5: When a binary storage signal is generated, the actual size of the target data is automatically obtained and divided according to a preset single value, which is the data size of each branch file set by the administrator;
[0079] SS6: Divide the target data by the preset single value, and mark the corresponding quotient as the partition value. When the remainder exceeds half of the preset single value, increase the partition value by one, and mark the remaining content as a single branch file;
[0080] If the remainder does not exceed half of the preset single value, the specific value of the partition value will not be changed, and the remaining content will be merged into the last branch file; the order of the branch files here is arranged according to the actual order of the target data;
[0081] SS7: Get several branch files, number them according to the sequence of target data, and mark the numbers as partition numbers;
[0082] SS8: When the partition number is less than or equal to the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number;
[0083] When the partition number is greater than the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number, and then the remaining partition numbers are placed in the storage branch units corresponding to the identification codes from large to small in order to complete the data storage;
[0084] SS9: When a sub-item storage signal is generated, the target data is automatically divided into several branch files for storage, and the files are numbered in sequence according to the content of the target data to obtain equal division numbers;
[0085] SS10: After that, the suffixes of the branch files are uniformly modified to reverse order, and the corresponding relationship between the semicolon and the identification code is established. The specific corresponding relationship is:
[0086] Get the number of characters in all branch files, and add secondary allocation codes that are consistent with the identification code range in descending order of the number of characters. Here, the identification codes are assigned to the secondary allocation codes in descending order of the number of characters. For example, the character with the largest number of characters is marked as the smallest number in the identification code, and so on.
[0087] Combine the secondary distribution code with the equal sign, with the equal sign in front and the secondary distribution code in the back, and add a distinguishing code in the middle to obtain a combined code;
[0088] SS11: Store the branch file in the corresponding storage branch unit according to the secondary allocation code in the combination code;
[0089] SS12: Data storage is completed.
[0090] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. A data warehouse for storing key data, characterized in that: It includes a data interception unit, a data analysis unit and a distributed data storage terminal; The data interception unit is used to obtain target data, which is the information content that the user needs to store in the data warehouse; The data interception unit is used to transmit the target data to the data analysis unit. The data analysis unit is connected to the company's intranet to obtain the relevant attributes of the corresponding target data and obtain the actual required value Sj of the target data; The data analysis unit is used to transmit the target data and its corresponding actual required value Sj to the distributed data storage end; The distributed data storage terminal receives the target data and its corresponding actual required value Sj, performs storage analysis on the target data and its corresponding actual required value Sj, and completes the storage of the target data in the storage analysis manner; The specific way to obtain relevant attributes is: Step 1: First, obtain the target data to be stored; Step 2: Then, the number of copies Cs and the review level G of the target data are obtained with the help of the content; Step 3: Calculate the actual required value Sj based on the review level value G and the number of copies Cs. The specific calculation formula is: Sj = 0.452*G + 0.548*Cs; 0.452 and 0.548 are the preset weights; Step 4: Get the actual value Sj of the target data; The distributed data storage end includes a microcontroller and a plurality of storage branch units; the storage branch unit is the corresponding memory; The microcontroller receives the target data and its corresponding actual required value Sj transmitted by the data analysis unit, and stores and analyzes it in combination with several storage branch units; The specific storage analysis method is as follows: SS1: Get the target data and its corresponding actual value Sj; synchronously get the number of storage branch units and mark it as the storage number; and number the storage branch units in sequence, with the number marked as the identification code of the storage branch unit; SS2: After that, Sj is obtained and compared with X1 and X2 to generate a concrete storage signal, a binary storage signal and an item storage signal; SS3: When a concrete storage signal is generated, the actual size of the target data is automatically obtained, and it is evenly divided into branch files corresponding to the number of storages, and the branch files are marked with identification codes according to the order in the target data; SS4: Store each branch file in the branch file with the same identification code in order according to the identification code; SS5: When a binary storage signal is generated, the actual size of the target data is automatically obtained and divided according to a preset single value, which is the data size of each branch file set by the administrator; SS6: Divide the target data by the preset single value, and mark the corresponding quotient as the partition value. When the remainder exceeds half of the preset single value, increase the partition value by one, and mark the remaining content as a single branch file; SS7: Get several branch files, number them according to the sequence of target data, and mark the numbers as partition numbers; SS8: When the partition number is less than or equal to the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number; When the partition number is greater than the storage number, the corresponding branch file is automatically stored in the storage branch unit consistent with the identification code according to the partition number, and then the remaining partition numbers are placed in the storage branch units corresponding to the identification codes from large to small in order to complete the data storage; SS9: When a sub-item storage signal is generated, the target data is automatically divided into several branch files for storage, and the files are numbered in sequence according to the content of the target data to obtain equal division numbers; SS10: After that, the suffixes of the branch files are uniformly modified to reverse order, and a corresponding relationship between the equal semicolon and the identification code is established to obtain a combination code of the secondary distribution code and the equal semicolon; SS11: Store the branch file in the corresponding storage branch unit according to the secondary allocation code in the combination code; SS12: Data storage is completed.
2. A data warehouse for storing key data according to claim 1, characterized in that: The specific method for obtaining the number of copies and review level values in step 2 is: S1: Get the corresponding target data, the number of people sent to the recipient in the company's intranet, and mark the number as the copy number Cs; S2: After that, the company's organizational structure is obtained, and the corresponding positions are divided into levels according to the levels of the company's organizational structure. Then, numerical values are assigned in order from low to high, and the values increase in sequence starting from 1, and the values are marked as hierarchical values; S3: Then get the level values of all received objects and mark them as C i , i = 1, ..., n; then the review level value G is calculated according to the level value, and the specific calculation formula is: Where α is the preset weight, where 1<α≤2.5; S4: Get the review level value G and the number of copies Cs of the target data.
3. A data warehouse for storing key data according to claim 1, characterized in that: The process of comparing Sj in step SS2 is: When Sj<X1, a concrete storage signal is generated; When X1≤Sj≤X2, a binary storage signal is generated; When Sj>X2, a sub-item storage signal is generated.
4. A data warehouse for storing key data according to claim 1, characterized in that: In step SS6, if the remainder does not exceed half of the preset single value, the specific value of the partition value is not changed, and the remaining content is merged into the last branch file; the order of the branch files here is arranged according to the actual order of the target data.
5. A data warehouse for storing key data according to claim 1, characterized in that: The corresponding relationship in step SS10 is specifically: Get the number of characters in all branch files, and add secondary allocation codes that are consistent with the range of identification codes in descending order of the number of characters. Here, the identification codes are assigned to the secondary allocation codes in descending order of the number of characters. The secondary distribution code is combined with the equal-separation sign, with the equal-separation sign in front and the secondary distribution code in the back, and a distinguishing code is added in the middle to obtain a combination code.
Citation Information
Patent Citations
Data processing method and system, computer equipment and storage medium
CN112613792A
Processing of performance data and log data from an information technology environment by using diverse data stores
US20170169082A1
