Data storage method, device and equipment, computer storage medium and program product
By extracting the feature vector sequence of enterprise management data, constructing a feature trend diagram and calculating feature parameters, the problem of low data query efficiency in the existing technology is solved, fast query and classified storage of data are realized, and query efficiency is improved.
Patent Information
- Application Number
- CN202410871647.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, due to the unified storage of data in enterprise data management, all data needs to be traversed during query, making it impossible to achieve fast query.
By obtaining the data generated in the enterprise management process, extracting feature vectors to generate feature vector sequences, constructing feature trend maps, calculating feature parameters, and partitioning and storing the data according to the feature parameters, thereby achieving fast query.
Construct a feature trend diagram through the feature vector sequence to intuitively represent the change trend of data features, calculate the feature parameters to quantify the change value of data features, realize rapid classification and partition storage of data, and improve the efficiency of data query.
Smart Images

Figure CN118626683A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of big data edge computing technology, and in particular, relates to a data storage method, device, equipment, computer storage medium, and program product. Background Art
[0002] Enterprise data plays a vital role in enterprises and is related to various aspects of enterprise decision-making and business analysis. At present, with the development of information technology in recent years, massive data has also been generated in enterprise management.
[0003] In the prior art, for enterprise data management, most enterprises have established enterprise data management platforms to centrally manage and store data of various projects, and realize flexible query, analysis and visualization of enterprise data. However, the existing methods store a large amount of data in a storage space when managing data. When querying or using specified data, it is often necessary to traverse all the data in the storage space, resulting in the inability to quickly query the data. Summary of the invention
[0004] The embodiments of the present application provide a data storage method, device, equipment, computer storage medium, and program product to solve the problem that the prior art stores data in a unified manner and cannot realize fast data query.
[0005] In a first aspect, an embodiment of the present application provides a data storage method, the method comprising:
[0006] Acquire data generated during enterprise management;
[0007] Extracting feature vectors of data to generate feature vector sequences;
[0008] A characteristic trend graph is constructed according to the characteristic vector sequence and the slope, number of fluctuation points and length of the characteristic trend graph are obtained, wherein the characteristic trend graph is a line graph constructed by the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph.
[0009] Determine the characteristic parameters according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameters. The characteristic parameters are the quantitative scoring values corresponding to the changes in data characteristics.
[0010] The data is partitioned and stored according to the characteristic parameters corresponding to the data.
[0011] In a second aspect, an embodiment of the present application provides a data storage device, the device comprising:
[0012] The acquisition module is used to obtain the data generated in the enterprise management process;
[0013] An extraction module, used for extracting feature vectors of data to generate feature vector sequences;
[0014] A construction module is used to construct a characteristic trend graph according to a characteristic vector sequence and obtain the slope, number of fluctuation points and length of the characteristic trend graph, wherein the characteristic trend graph is a line graph of the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph.
[0015] A determination module is used to determine characteristic parameters according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameters. The characteristic parameters are quantitative scoring values corresponding to the changes in data characteristics.
[0016] The storage module is used to store the data in partitions according to the characteristic parameters corresponding to the data.
[0017] In a third aspect, an embodiment of the present application provides a data storage device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the data storage method of the first aspect is implemented.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the data storage method of the first aspect is implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data storage method of the first aspect.
[0020] The embodiments of the present application provide a data storage method, apparatus, device, computer storage medium, and program product, which acquire data generated in the process of enterprise management and extract feature vectors to generate feature vector sequences, so as to extract key features in the data, construct a feature trend graph based on the feature vector sequence, and determine feature parameters according to the relationship between the slope, number of fluctuation points, length, and feature parameters of the feature trend graph. By constructing the feature trend graph, the changing trend of data features can be intuitively represented, and the changing values of data features can be quantified by calculating the feature parameters. By determining the feature parameters, the associated data can be classified, and the data can be partitioned and stored according to the feature parameters corresponding to the data. Data with similar feature parameters can be stored in the same partition, and various types of data can be partitioned and stored, thereby realizing fast data query. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 It is a flowchart of a data storage method provided in an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of a characteristic trend diagram provided in an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of the structure of a data storage device provided in an embodiment of the present application;
[0025] Figure 4 It is a structural schematic diagram of a data storage device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0028] In the prior art, when storing data, a large database is often set up to store massive data exclusively, and all data is uniformly stored in the database. Although this data storage method can meet the high storage requirements of massive data through a large database, as the amount of data increases and the types of data become more diverse, it takes longer and longer to complete the query of data.
[0029] In order to solve the problems of the prior art, the embodiments of the present application provide a data storage method, device, equipment, computer storage medium, and program product, which obtain data generated in the enterprise management process and extract feature vectors to generate feature vector sequences, which can extract key features in the data, construct a feature trend graph based on the feature vector sequence, and determine the feature parameters according to the slope, number of fluctuation points, length and relationship of the feature parameters of the feature trend graph. By constructing the feature trend graph, the changing trend of data features can be intuitively represented, and the feature parameters are calculated to quantify the changing values of data features. By determining the feature parameters, the associated data can be classified, and the data can be partitioned and stored according to the feature parameters corresponding to the data. Data with similar feature parameters are stored in the same partition, and various types of data are partitioned and stored, thereby realizing fast data query.
[0030] The following first provides an example of a system framework to which the data storage method provided in the embodiments of the present application can be applied.
[0031] The system framework may include: a data confirmation end, a feature analysis end, a classification processing end, a database, a load testing end and a data reprocessing end. The data confirmation end is electrically connected to the feature analysis end input node, the feature analysis end is electrically connected to the classification processing end input node, the classification processing end is electrically connected to the database and the load testing end input node respectively, wherein the load testing end is electrically connected to the data reprocessing end input node, the data reprocessing end is bidirectionally connected to the database, and the database is electrically connected to the load testing end input node.
[0032] The following is an introduction to the data storage method provided in the embodiments of the present application.
[0033] Figure 1 A schematic diagram of a data storage method according to an embodiment of the present application is shown. Figure 1 As shown, the method may include the following steps: S101 to S105.
[0034] S101, obtaining data generated in the process of enterprise management.
[0035] In some embodiments, the data types generated during the enterprise management process may include bag-of-words data, numerical data, image data, and time series data, etc. The data can be automatically recorded and generated through preset systems and applications, and the corresponding data can be obtained by accessing the databases or interfaces of these systems and applications.
[0036] S102, extracting feature vectors of data to generate a feature vector sequence.
[0037] In some embodiments, the feature data existing in the data are arranged one by one in order to form a feature data sequence, and then the feature data in the feature data sequence is input into a processing model, the corresponding feature vector is output, and a feature vector sequence is generated, wherein the processing model can be a model preset in advance for different types of data.
[0038] By extracting feature vectors, the most important feature information in the data is obtained and the data dimension is reduced, which helps to simplify the data analysis process. At the same time, a feature vector sequence is generated, which retains the sequential relationship between the features.
[0039] S103, construct a characteristic trend graph according to the characteristic vector sequence and obtain the slope, number of fluctuation points and length of the characteristic trend graph, wherein the characteristic trend graph is a line graph formed by the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph.
[0040] Among them, since a vector is a directed line segment with size and direction, a feature vector sequence composed of multiple feature vectors can be constructed into a feature trend graph. By constructing the feature vector sequence into a feature trend graph, it is helpful to understand the changing trend of the feature.
[0041] S104, determining characteristic parameters according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameters, where the characteristic parameters are quantitative scoring values corresponding to the changes in data characteristics.
[0042] Among them, the slope is the sum of the slopes of each eigenvector, which represents the speed of change of the data feature. The fluctuation point is the point where the trends of the two groups of line segments are opposite. The number of fluctuation points can represent the degree of fluctuation of the feature change. The length of the feature trend graph is the total length of all line segments within the feature trend graph, which represents the amplitude of the feature change.
[0043] By calculating the characteristic parameters through the slope, number of fluctuation points and length of the characteristic trend graph, quantitative scoring of data characteristic changes can help analyze the similarities and correlations between data features.
[0044] S105, partitioning and storing the data according to the characteristic parameters corresponding to the data.
[0045] The data storage method of the embodiment of the present application can extract key features from the data by acquiring data generated in the enterprise management process and extracting feature vectors to generate feature vector sequences, construct a feature trend graph based on the feature vector sequence, and determine feature parameters based on the slope of the feature trend graph, the number of fluctuation points, the length and the relationship between the feature parameters. By constructing the feature trend graph, the changing trend of data features can be intuitively represented, and the feature parameters are calculated to quantify the changing values of data features. By determining the feature parameters, related data can be classified, and the data can be partitioned and stored according to the feature parameters corresponding to the data. Data with similar feature parameters are stored in the same partition, and various types of data are partitioned and stored, thereby realizing fast data query.
[0046] The specific implementation methods of the above steps are introduced below.
[0047] In some embodiments, when extracting the feature vector of the data in step S102, it can be extracted by a pre-set feature extraction model, including:
[0048] Use the bag-of-words model to extract feature vectors for bag-of-words data, assigning weights to each word by considering its importance in the entire corpus;
[0049] The feature vector of numerical data is extracted using the original numerical feature model. The original numerical value can be directly used as a dimension of the vector for representation. For numerical data with different numerical ranges, normalization processing can be performed to scale them to a uniform range.
[0050] Use the image feature extraction model to extract the feature vector of the image data. The image feature extraction model can use feature extraction algorithms such as SIFT, HOG, CNN, etc. to extract the feature vector representation of the image;
[0051] Using the statistical feature model to extract the feature vector of time series data, various statistical features such as mean, variance, maximum, minimum, etc. can be selected as the dimension of the vector according to the time interval.
[0052] Presetting different feature extraction models to extract features for different types of data can better capture the characteristics of the data and improve the accuracy of feature labels.
[0053] In some embodiments, in step S103, constructing a feature trend graph according to the feature vector sequence includes:
[0054] Establish a two-dimensional coordinate system and merge the starting point of the initial feature vector in the feature vector sequence with the origin;
[0055] According to the vector sequence, the starting point of each feature vector is merged and connected with the end point of the previous feature vector in turn until the feature trend graph is constructed.
[0056] Among them, the characteristic trend diagram is as follows Figure 2 As shown, since the feature vector is a line segment with size and direction, it can be connected to form a feature trend graph, where the horizontal axis represents the time or the order of data points, and the vertical axis represents the feature value.
[0057] By connecting the feature vectors into a feature trend graph, the relative positions and relationships between the features are intuitively displayed, making the relationship between the features easier to understand and explain, which helps to analyze the changing trends of the features.
[0058] In some embodiments, in step S104, the relationship between the slope, the number of fluctuation points, the length and the characteristic parameter of the characteristic trend graph is:
[0059]
[0060] Among them, BZ is the characteristic parameter of the data, T1 is the slope of the characteristic trend graph, T2 is the number of fluctuation points of the characteristic trend graph, T3 is the length of the characteristic trend graph, and C1, C2 and C3 are preset fixed coefficient factors.
[0061] By calculating the characteristic parameters based on the slope, number of fluctuation points and length of the characteristic trend graph, we can quantitatively analyze the changes in data characteristics. Smaller characteristic parameters mean smaller changes in data characteristics. By comparing the values of data characteristic parameters, we can analyze the correlation between data.
[0062] In some embodiments, in step S105, storing the data in partitions according to the characteristic parameters corresponding to the data includes:
[0063] Determine a target characteristic parameter interval in a preset characteristic parameter interval to which the characteristic parameter corresponding to the data belongs;
[0064] Store the data in the storage partition of the target feature parameter range.
[0065] By determining the target feature parameter interval corresponding to the data, the data can be classified. Data with similar feature parameters have a certain correlation. Storing data with similar feature parameters in the same partition can facilitate data management and retrieval and avoid traversal of the entire database.
[0066] In some embodiments, the interval parameter of the preset interval is X1, the first group of intervals of the preset feature parameter intervals is (0, X1], the second group of intervals is (X1, 2X1], the third group of intervals is (2X1, 3X1], and so on. Each preset feature parameter interval corresponds to a storage partition in the database, and the corresponding data is stored in the storage partition of the target feature parameter interval.
[0067] In some embodiments, after storing the data in the storage partition of the target feature parameter interval, the method further includes:
[0068] Calculate the mean of the characteristic parameters of the data in each storage partition corresponding to the preset characteristic parameter interval respectively;
[0069] Determine whether the mean value of the characteristic parameter of the data in each storage partition is greater than the set threshold value of the corresponding storage partition;
[0070] When the mean value of the characteristic parameter of the target storage partition is greater than the set threshold, the data with the smallest characteristic parameter in the target storage partition is merged into the previous partition, and the data with the largest characteristic parameter in the target storage partition is merged into the next partition, where the target storage partition is any partition in each storage partition.
[0071] By calculating the mean of the characteristic parameters of the data in the storage partition and adjusting the data in the partition, the data in each storage partition is averaged, so that there is no excessive or insufficient data stored in each partition, and the data query speed is prevented from being slowed down due to excessive partition data.
[0072] In some embodiments, after partitioning and storing the data according to the characteristic parameters corresponding to the data, the method further includes:
[0073] Establish a quick search channel corresponding to each partition;
[0074] Get the query rate range corresponding to each quick search channel;
[0075] Compare the overlap between each query rate interval and the preset standard parameter interval respectively;
[0076] When the overlap is less than the set threshold, the data in the corresponding partition will be compressed.
[0077] When the difference between the characteristic parameters in the storage partition is too large, the search channel will not respond in time, and the extraction strategy or method will need to be switched back and forth, affecting the query rate. Therefore, recompressing the data in the storage partition whose query rate interval of the fast search channel does not meet the set threshold can ensure the query efficiency of the search channel.
[0078] In some embodiments, when obtaining the corresponding query rate range of the quick search channel, the corresponding data in the corresponding storage partition is simultaneously extracted by performing load test query processing, and the query rate of the corresponding quick search channel is recorded, the maximum and minimum values of the query rate are confirmed, and the query rate range of the corresponding quick search channel is constructed.
[0079] In some embodiments, when the overlap is less than a set threshold, data in the corresponding partition is compressed, including:
[0080] When the overlap is less than the set threshold, the data in the partition is compressed in the order of the characteristic parameters from small to large;
[0081] Each time a compression process of a data is completed, the query rate range of the fast search channel of the partition where the compressed data is located is obtained;
[0082] Compare the obtained query rate interval with the preset standard parameter interval for overlap;
[0083] When the overlap between the obtained query rate interval and the preset parameter interval is not less than the set threshold, the compression processing of the data in the partition is stopped.
[0084] Business data with smaller characteristic parameters are selected for compression, ensuring that such characteristic parameters can be decompressed faster during subsequent searches, without affecting the normal use of operators, while ensuring search efficiency.
[0085] In some embodiments, a threshold value for the degree of overlap is set to 80%. When the query rate interval of the quick search channel overlaps with the preset standard parameter interval by less than 80%, the data with the smallest characteristic parameter in this storage space is compressed. After the processing is completed, the query rate interval is obtained again and the degree of overlap is re-compared. When the degree of overlap still does not meet the set threshold, the second to last data in terms of the value of the characteristic parameter is compressed and the above operation is repeated until the degree of overlap is not less than 80%.
[0086] Figure 3 Schematic diagram of a data storage device provided in an embodiment of the present application. Figure 3 As shown, the device may include an acquisition module 301 , an extraction module 302 , a construction module 303 , a determination module 304 and a storage module 305 .
[0087] The acquisition module 301 is used to acquire data generated during the enterprise management process;
[0088] An extraction module 302 is used to extract feature vectors of data to generate feature vector sequences;
[0089] Construction module 303 is used to construct a characteristic trend graph according to the characteristic vector sequence and obtain the slope, number of fluctuation points and length of the characteristic trend graph, wherein the characteristic trend graph is a line graph of the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph.
[0090] A determination module 304 is used to determine a characteristic parameter according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameter, where the characteristic parameter is a quantitative score value corresponding to the change of the data characteristic;
[0091] The storage module 305 is used to store the data in partitions according to the characteristic parameters corresponding to the data.
[0092] In some embodiments, the construction module is further used to establish a two-dimensional coordinate system and merge the starting point of the initial feature vector in the feature vector sequence with the origin;
[0093] The construction module is also used to merge and connect the starting point of each feature vector with the end point of the previous feature vector in turn according to the vector sequence until the feature trend graph is constructed.
[0094] In some embodiments, when the determination module is used to determine the characteristic parameters according to the relationship between the slope, the number of fluctuation points, the length and the characteristic parameters of the characteristic trend graph, the relationship between the slope, the number of fluctuation points, the length and the characteristic parameters of the characteristic trend graph is:
[0095]
[0096] Among them, BZ is the characteristic parameter of the data, T1 is the slope of the characteristic trend graph, T2 is the number of fluctuation points of the characteristic trend graph, T3 is the length of the characteristic trend graph, and C1, C2 and C3 are preset fixed coefficient factors.
[0097] In some embodiments, the determination module is further used to determine a target characteristic parameter interval in a preset characteristic parameter interval to which the characteristic parameter corresponding to the data belongs;
[0098] The storage module is also used to store the data into a storage partition of the target characteristic parameter interval.
[0099] In some embodiments, the determination module is further used to respectively calculate the characteristic parameter mean of the data in each storage partition corresponding to the preset characteristic parameter interval;
[0100] The determination module is also used to determine whether the mean value of the characteristic parameter of the data in each storage partition is greater than a set threshold value of the corresponding storage partition;
[0101] The storage module is also used to merge the data with the smallest characteristic parameter in the target storage partition into the previous partition and merge the data with the largest characteristic parameter in the target storage partition into the next partition when the mean value of the characteristic parameter of the target storage partition is greater than a set threshold, wherein the target storage partition is any partition in each storage partition.
[0102] In some embodiments, the construction module is further used to respectively establish a fast search channel corresponding to each partition;
[0103] The acquisition module is also used to obtain the query rate interval corresponding to each fast search channel;
[0104] The determination module is also used to compare the overlap between each query rate interval and the preset standard parameter interval respectively;
[0105] The storage module is also used to compress the data in the corresponding partition when the overlap degree is less than a set threshold.
[0106] In some embodiments, the storage module is further used to compress the data in the partitions in order of the characteristic parameters from small to large when the overlap is less than a set threshold;
[0107] The acquisition module is also used to obtain the query rate range of the fast search channel of the partition where the compressed data is located each time the compression processing of a data is completed;
[0108] The determination module is also used to compare the obtained query rate interval with the preset standard parameter interval for overlap;
[0109] The storage module is also used to stop compressing the data in the partition when the overlap between the obtained query rate interval and the preset standard parameter interval is not less than a set threshold.
[0110] Figure 3 The various modules in the device shown can be implemented Figure 1 Each step in the above steps can achieve the corresponding technical effect, which will not be repeated here for the sake of brevity.
[0111] Figure 4 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown.
[0112] The terminal device may include a processor 401 and a memory 402 storing computer program instructions.
[0113] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0114] The memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 402 may include a removable or non-removable (or fixed) medium, or the memory 402 is a non-volatile solid-state memory. The memory 402 may be inside or outside the integrated gateway disaster recovery device.
[0115] In one example, the memory 402 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the data storage method according to the present disclosure.
[0116] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement Figure 1 The data storage method in the illustrated embodiment.
[0117] In one example, the terminal device may further include a communication interface 403 and a bus 404. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 404 and communicate with each other.
[0118] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0119] Bus 404 includes hardware, software or both, and the components of terminal equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), Hyper Transport (Hyper Transport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 404 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0120] In addition, in combination with the data storage method in the above embodiment, the embodiment of the present application can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data storage methods in the above embodiment is implemented.
[0121] An embodiment of the present application further provides a computer program product, including a computer program, which implements any one of the data storage methods in the above embodiments when the computer program is processed and executed.
[0122] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0123] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0124] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0125] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data storage method, characterized in that: include: Acquire data generated during enterprise management; Extracting feature vectors of the data to generate a feature vector sequence; Constructing a characteristic trend graph according to the characteristic vector sequence and obtaining the slope, number of fluctuation points and length of the characteristic trend graph, wherein the characteristic trend graph is a line graph formed by the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph; Determine the characteristic parameters according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameters, wherein the characteristic parameters are quantitative scoring values corresponding to the changes in data characteristics; The data is partitioned and stored according to the characteristic parameters corresponding to the data.
2. The data storage method according to claim 1, characterized in that: The step of constructing a feature trend graph according to the feature vector sequence includes: Establish a two-dimensional coordinate system and merge the starting point of the initial feature vector in the feature vector sequence with the origin; According to the vector sequence, the starting point of each feature vector is merged and connected with the end point of the previous feature vector in turn until the feature trend graph is constructed.
3. The data storage method according to claim 1, characterized in that: The relationship between the slope, number of fluctuation points, length and characteristic parameters of the characteristic trend graph is: Among them, BZ is the characteristic parameter of the data, T1 is the slope of the characteristic trend graph, T2 is the number of fluctuation points of the characteristic trend graph, T3 is the length of the characteristic trend graph, and C1, C2 and C3 are preset fixed coefficient factors.
4. The data storage method according to claim 1, characterized in that: The storing of data in partitions according to characteristic parameters corresponding to the data includes: Determine a target characteristic parameter interval in a preset characteristic parameter interval to which the characteristic parameter corresponding to the data belongs; The data is stored in the storage partition of the target feature parameter interval.
5. The data storage method according to claim 4, characterized in that: After storing the data in the storage partition of the target characteristic parameter interval, the method further includes: Calculate the mean value of the characteristic parameters of the data in each storage partition corresponding to the preset characteristic parameter interval respectively; Determine whether the mean value of the characteristic parameter of the data in each storage partition is greater than the set threshold value of the corresponding storage partition; When the mean value of the characteristic parameter of the target storage partition is greater than the set threshold, the data with the smallest characteristic parameter in the target storage partition is merged into the previous partition, and the data with the largest characteristic parameter in the target storage partition is merged into the next partition, wherein the target storage partition is any partition in each storage partition.
6. The data storage method according to claim 1, characterized in that: After partitioning and storing the data according to the characteristic parameters corresponding to the data, the method further includes: Establish a quick search channel corresponding to each partition; Get the query rate range corresponding to each quick search channel; Compare the overlap between each query rate interval and the preset standard parameter interval respectively; When the overlap degree is less than a set threshold, the data in the corresponding partition is compressed.
7. The data storage method according to claim 6, characterized in that: When the overlap is less than the set threshold, the data in the corresponding partition is compressed, including: When the overlap is less than the set threshold, the data in the partitions are compressed in order of the characteristic parameters from small to large; Each time a compression process of a data is completed, the query rate range of the fast search channel of the partition where the compressed data is located is obtained; Compare the obtained query rate interval with the preset standard parameter interval for overlap; When the overlap between the obtained query rate interval and the preset parameter interval is not less than a set threshold, the compression processing of the data in the partition is stopped.
8. A data storage device, characterized in that: The device comprises: The acquisition module is used to obtain the data generated in the enterprise management process; An extraction module, used for extracting the feature vector of the data to generate a feature vector sequence; A construction module, used to construct a characteristic trend graph according to the characteristic vector sequence and obtain the slope, number of fluctuation points and length of the characteristic trend graph, wherein the characteristic trend graph is a line graph of the characteristic vector sequence in a two-dimensional coordinate system, the slope of the characteristic trend graph is the sum of the slopes of each characteristic vector in the characteristic trend graph, and the fluctuation point is the inflection point of the characteristic trend graph; A determination module is used to determine characteristic parameters according to the relationship between the slope of the characteristic trend graph, the number of fluctuation points, the length and the characteristic parameters, wherein the characteristic parameters are quantitative scoring values corresponding to the changes in data characteristics; The storage module is used to store the data in partitions according to the characteristic parameters corresponding to the data.
9. A data storage device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data storage method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data storage method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data storage method according to any one of claims 1 to 7.
Citation Information
Cited By
Enterprise science and technology information management method and system
CN119149523A
