A storage optimization method and system for multi-source data fusion
By receiving requests for target indexing task types, required data attributes and required data sources, it collects and groups multi-source data, generates index tags and arranges them in standard tables, and finally compresses and stores them, which solves the problem of unclear indexing rules and problems in multi-source data storage. The problem of poor compression effect improves data query and storage efficiency and reduces costs.
Patent Information
- Application Number
- CN202410995909.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-24
AI Technical Summary
The existing multi-source data storage method has unclear indexing rules, low query efficiency, and poor compression effect due to complex sources, diverse formats and semantics, resulting in waste of storage space and insufficient key data.
By receiving storage optimization requests of target indexing task type, required data attributes and required data sources, the multi-source data to be stored is collected, data index tags are generated, grouped by required data sources, and arranged in high-level semantics and binary semantics standard tables, and finally Compressed storage.
It improves data query efficiency and storage efficiency, reduces storage costs, and achieves more efficient data management and utilization.
Smart Images

Figure CN118520147B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data storage and management, and in particular to a storage optimization method and system for multi-source data fusion. Background Art
[0002] In the multi-source data storage management scenario, the complexity and diversity of multi-source data make storage optimization issues particularly prominent. Achieving efficient data fusion and storage to better meet the needs of data management and utilization has become a crucial link in solving multi-source data storage. Traditional multi-source data storage methods are often chaotic and inefficient, relying only on simple classification or limited indexing strategies, lacking overall planning for multi-source data, lacking in-depth analysis and integration of data attributes and sources, and difficult to fully and accurately deal with data formats and semantic differences. There are unreasonable situations in the use of storage space, resulting in a large amount of space waste, and insufficient storage of key data. The formulation of storage optimization plans is relatively simple and fixed, and cannot cope well with the actual situation of constantly changing multi-source data.
[0003] At the current stage, relevant technologies have technical problems such as unclear indexing rules due to the complex sources, diverse formats and semantics of multi-source data, resulting in low query efficiency and inaccurate results, and the inability of existing compression methods to effectively handle multi-source data, resulting in poor compression effect and waste of storage space. Summary of the invention
[0004] The present application provides a storage optimization method and system for multi-source data fusion, which receives a storage optimization request including a target index task type, required data attributes and required data source, collects multi-source data to be stored, performs index marking to generate data index tags, groups the data according to the required data source and obtains multiple groups of data with unique identifiers, arranges the data in high-level semantic and binary semantic standard tables to generate primary and secondary arrangement results, and finally compresses and stores the data according to the relevant results, thereby achieving the technical effect of improving data query efficiency and storage efficiency and reducing storage costs.
[0005] The present application provides a storage optimization method for multi-source data fusion, including:
[0006] A storage optimization request is received, wherein the storage optimization request includes a target index task type, a required data attribute, and a required data source; multi-source data to be stored is collected according to the required data attribute and the required data source; according to the target index task type, the multi-source data to be stored is indexed and marked to generate a data index tag; the multi-source data to be stored is grouped according to the required data source to obtain multiple groups of multi-source data to be stored, wherein the multiple groups of multi-source data to be stored have multiple data source unique identifiers; the multi-source data to be stored is arranged in a high-level semantic standard table to generate a first-level multi-source data to be stored table arrangement result, wherein the standard table has a standard number of cells in a row, and any cell stores a character; the first-level multi-source data to be stored table arrangement result is arranged in a binary semantic standard table to generate a second-level multi-source data to be stored table arrangement result, wherein the standard table has a standard number of cells in a row, and any cell stores 1 or 0; according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data to be stored table arrangement result, and the second-level multi-source data to be stored table arrangement result, the multi-source data to be stored is compressed and stored.
[0007] The present application also provides a storage optimization system for multi-source data fusion, including:
[0008] A storage optimization request receiving module, the storage optimization request receiving module is used to receive storage optimization requests, wherein the storage optimization request includes a target index task type, required data attributes and required data source; a multi-source data acquisition module, the multi-source data acquisition module is used to collect the multi-source data to be stored according to the required data attributes and the required data source; a data index label production module, the data index label production module is used to index and mark the multi-source data to be stored according to the target index task type and generate a data index label; a multi-source data acquisition module to be stored, the multi-source data acquisition module to be stored is used to group the multi-source data to be stored according to the required data source to obtain multiple groups of multi-source data to be stored, wherein the multiple groups of multi-source data to be stored have multiple data source unique identifiers; an arrangement result production module, the arrangement result production module The column result production module is used to perform a high-level semantic standard table arrangement on the multi-source data to be stored, and generate a first-level multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any one cell stores a character; the second-level table arrangement result production module, the second-level table arrangement result production module is used to perform a binary semantic standard table arrangement on the first-level multi-source data table arrangement result to be stored, and generate a second-level multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any one cell stores 1 or 0; the compression storage module, the compression storage module is used to compress and store the multi-source data to be stored according to the data index label, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored.
[0009] A storage optimization method and system for multi-source data fusion proposed in this application first receives a storage optimization request including a target index task type, required data attributes, and required data source, collects multi-source data to be stored, performs index marking to generate data index tags, groups the data according to the required data source and obtains multiple groups of data with unique identifiers, arranges the data in high-level semantic and binary semantic standard tables to generate primary and secondary arrangement results, and finally compresses and stores the data according to the relevant results, thereby achieving the technical effect of improving data query efficiency and storage efficiency and reducing storage costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the accompanying drawings of the embodiment of the present invention will be briefly introduced below. A flow chart is used in the present application to illustrate the operations performed by the system according to the embodiment of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps can be processed in reverse order or simultaneously as needed. At the same time, other operations can also be added to these processes, or one or more operations can be removed from these processes.
[0011] Figure 1 A flowchart of a storage optimization method for multi-source data fusion provided in an embodiment of the present application;
[0012] Figure 2 A schematic diagram of the structure of a storage optimization system for multi-source data fusion provided in an embodiment of the present application.
[0013] Explanation of the accompanying drawings: storage optimization request receiving module 10, multi-source data acquisition module 20, data index label production module 30, multi-source data to be stored acquisition module 40, arrangement result production module 50, secondary table arrangement result production module 60, compression storage module 70. DETAILED DESCRIPTION
[0014] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.
[0015] 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. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0016] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict, and the terms "first\second" involved are merely to distinguish similar objects and do not represent a specific ordering of objects. The terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of this application. The terms used herein are for the purpose of describing the embodiments of the present application only.
[0017] The present application embodiment provides a storage optimization method for multi-source data fusion, such as Figure 1 As shown, the method includes:
[0018] Step S100, receiving a storage optimization request, wherein the storage optimization request includes a target index task type, required data attributes, and required data source. Specifically, the storage optimization request covers key information elements. When received, it includes the target index task type, required data attributes, and required data source. The target index task type clarifies the specific mode followed by subsequent data retrieval and management, such as indexing based on time sequence, indexing based on keywords, or indexing based on data categories, etc. The required data attributes elaborately describe the characteristic requirements of the data itself, covering the format of the data, such as text form, image form, audio type, video category, etc.; the size of the data, whether it is large-scale data, medium-scale data, or small-scale data; the accuracy requirements of the data, whether it requires high accuracy or ordinary accuracy; and the frequency of data updates, whether it is frequently updated or relatively stable, etc. The required data source indicates the source of the data, including the databases of various internal business systems, the data interfaces provided by external cooperation organizations, specific websites or platforms on the Internet, data collected by sensors in real time, etc. After receiving a complete storage optimization request, it is parsed and understood to fully prepare for subsequent storage optimization operations.
[0019] Step S200, collecting the multi-source data to be stored according to the required data attributes and the required data source. Specifically, the collecting of the multi-source data to be stored means obtaining relevant data according to the required data attributes and the required data source, clarifying the specific content of the required data attributes and the required data source, wherein the required data attributes cover the requirements of data format, scale, accuracy, update frequency, etc., and the required data source includes internal databases, external interfaces, network platforms, sensors and other sources. The screening criteria and processing methods of the collected data are determined according to the required data attributes. If the demand is high-precision image data, the image resolution, color depth, etc. must be strictly controlled during the collection, and the corresponding collection mechanism and program are started for the required data source. If the data source is an internal database, the data that meets the requirements is extracted through the established interface and authority; if it is an external interface, the request is sent and the return data is received according to the interface specification and protocol; for the network platform, the required data is captured according to the set rules using the web crawler technology; in the face of the sensor, the data sent by it is received in real time and necessary preprocessing is performed. When collecting data, data verification and validation are continuously performed to check whether the collected data meets the required data attributes, such as whether the format is correct and whether the accuracy meets the standard. Those that do not conform will be marked or discarded, and re-collected or supplemented as appropriate. To ensure data integrity and accuracy, the data in the collection process will be temporarily stored and backed up. Once the collection is interrupted or an error occurs, it can be restored and re-collected in time. After collection, screening, verification and backup operations, the multi-source data to be stored that meets the required data attributes and required data source requirements is finally obtained, preparing for subsequent processing and storage.
[0020] Step S300, according to the target index task type, the multi-source data to be stored is indexed and marked to generate data index tags. Specifically, the generation of data index tags means adding identification marks to the multi-source data to be stored according to the target index task type, analyzing the target index task type, and clarifying its specific requirements and criteria. For example, the generation time of the data, the category of the data, the importance of the data, etc. are used as the index basis, and the processing work is carried out for the multi-source data to be stored one by one. When processing each piece of data, the data is measured according to the specifications and standards set by the target index task type. If the target index task type is based on the generation time of the data, the system extracts the specific generation time information of the data, and compares and sorts it with the generation time of other data, and sorts it according to the category of the data. The system analyzes the content covered by the data, determines the category to which it belongs, and then gives corresponding labels. For example, based on the importance level of the data, the system will refer to the pre-set importance level evaluation criteria, combined with the specific purpose, source and other factors of the data, to determine the level of its importance level. After completing the measurement and labeling of each piece of data, the system creates corresponding index labels for these data. The index labels will clearly show the characteristics and position of the data under the target index task type. The generated data index labels will be closely linked to the corresponding data, so as to facilitate the subsequent data retrieval, query and management process. Quickly and accurately find the required data based on the labels.
[0021] In a possible implementation, the multi-source data to be stored is indexed and marked according to the target index task type to generate a data index tag, and step S300 further includes step S310, according to the target index task type, extracting a target index identifier from a task type identifier matching table, wherein the target index identifier uniquely corresponds to the target index task type. Specifically, the system obtains the previously determined target index task type, accesses the task type identifier matching table, and various target index task types and their corresponding unique identifiers are pre-stored in the matching table.
[0022] Step S320, the target index identifier is set as the data index label. Specifically, the system searches and compares in the matching table, accurately finds the target index identifier that uniquely corresponds to the acquired target index task type, and operates strictly in accordance with the set matching rules and algorithms to ensure the accuracy of the extraction. After the target index identifier is successfully extracted, it is immediately set as the data index label of the multi-source data to be stored. The data index label will serve as a key identifier for subsequent data management, retrieval and processing, ensuring the accurate association between the data index label and the target index task type, laying the foundation for efficient data processing and management.
[0023] Step S400, grouping the multi-source data to be stored according to the required data source to obtain multiple groups of multi-source data to be stored, wherein the multiple groups of multi-source data to be stored have multiple data source unique identifiers. Specifically, grouping the multi-source data to be stored according to the required data source means obtaining the multi-source data to be stored and clear information related to the required data source, and performing detailed analysis and classification operations on the multi-source data to be stored. According to the characteristics and requirements of the required data source, the data with the same or similar data source characteristics are grouped into the same group. If the required data source is divided according to different business departments, the data from the sales department will be grouped into one group, and the data from the R&D department will be grouped into another group. When grouping, each data is identified and determined to confirm the group it belongs to. The determination process is like putting different labels on different items, and then putting the items with the same label in one place. After the grouping operation, multiple groups of multi-source data to be stored are finally obtained, each group of data has a unique data source unique identifier. The unique identifier clearly indicates the source of this group of data, which is convenient for subsequent accurate identification, management and use of the data.
[0024] Step S500, arrange the multi-source data to be stored in a high-level semantic standard table, and generate a first-level multi-source data table arrangement result to be stored, wherein the standard table has a standard number of rows of cells, and any cell stores a character. Specifically, the system obtains the multi-source data to be stored, arranges it in a high-level semantic standard table, creates a standard table according to a pre-set rule, the table has a fixed number of rows of standard cells, and stipulates that any cell can only store one character, analyzes and processes the multi-source data, and disassembles and classifies the data according to the high-level semantic features of the data. For example, the data is divided according to the high-level semantic attributes such as the subject, category or importance represented by the data. During the arrangement process, the system will fill the disassembled and classified data into the cells of the standard table one by one, and place them one character at a time to ensure that each cell accurately stores characters with specific semantic meanings, and finally generates a first-level multi-source data table arrangement result to be stored. The table in the result is neat and standardized, and the characters of each cell follow the rules of high-level semantics, providing a clear and orderly basis for subsequent data processing and analysis.
[0025] Step S600 , performing binary semantic standard table arrangement on the first-level multi-source data table arrangement result to be stored, and generating a second-level multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores 1 or 0. Specifically, the binary semantic standard table arrangement of the first-level multi-source data table arrangement result to be stored means obtaining the first-level result of the completed high-level semantic standard table arrangement, and creating a new standard table for arrangement again according to pre-set rules. This new table also has a fixed number of standard cells in the row, and stipulates that any cell can only store 1 or 0. The data in the first-level table is deeply analyzed and converted. According to specific binary semantic rules, the characters or data in each cell are converted into corresponding binary representations. For example, some specific semantic features may be defined as 1, while others are defined as 0. In the conversion and arrangement process, the cell data in the first-level table is processed one by one, and the converted binary values are accurately filled into the corresponding cells of the new table to ensure that each cell strictly stores the correct 1 or 0 in accordance with the rules. Finally, the second-level multi-source data table arrangement result to be stored is generated. The arrangement and combination of 1 and 0 in the second-level table reflects the characteristics of the multi-source data after binary semantic conversion, and is prepared for subsequent more in-depth data processing and analysis.
[0026] Step S700, compresses and stores the multi-source data to be stored according to the data index tags, the multiple data source unique identifiers, the first-level multi-source data table arrangement results to be stored, and the second-level multi-source data table arrangement results to be stored. Specifically, compressing and storing the multi-source data to be stored according to the data index tags, the multiple data source unique identifiers, the first-level multi-source data table arrangement results to be stored, and the second-level multi-source data table arrangement results to be stored means obtaining the above series of key elements, selecting the multi-source data to be processed, preparing for compression operations, comprehensively considering the data index tags, clarifying the classification and retrieval characteristics of the data; at the same time, paying attention to the multiple data source unique identifiers, determining the source path and ownership of the data, based on the understanding of the first-level and second-level multi-source data table arrangement results to be stored, exploring the repeated patterns, similarities and regularities in the data, involving the tables In-depth analysis of the combination of Chinese characters, 1s and 0s is performed to find out the data parts that can be compressed and simplified. After the compressible parts are identified, a specific compression algorithm is used to process the stored multi-source data, including removing redundant information, encoding and compressing repeated data segments, or using other effective data compression methods to perform compression operations, always ensuring that key index tags, unique identifiers, and the semantics and structure of the data are not damaged, so as to ensure that the data can be accurately restored when it needs to be decompressed and used, and complete the compressed storage of the stored multi-source data, thereby effectively saving storage space and improving the efficiency of data storage and transmission.
[0027] In a possible implementation, the multi-source data to be stored is compressed and stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored, and step S700 further includes step S710, obtaining the first-level multi-source data distribution cell coordinates according to the first-level multi-source data table arrangement result to be stored. Specifically, the system analyzes the first-level multi-source data table arrangement result to be stored, extracts the location information of the cell where each data is located, and for each data, calculates its row number and column number, thereby obtaining the first-level multi-source data distribution cell coordinates.
[0028] Step S720, according to the arrangement result of the secondary multi-source data table to be stored, obtain the coordinates of the secondary multi-source data distribution cells. Specifically, the arrangement result of the secondary multi-source data table to be stored is processed in the same way, the row number and column number corresponding to each data are calculated, and the coordinates of the secondary multi-source data distribution cells are obtained.
[0029] Step S730, clustering the secondary multi-source data distribution cell coordinates according to the primary multi-source data distribution cell coordinates to obtain multiple clusters of secondary multi-source data distribution cell coordinates, wherein the multiple clusters of secondary multi-source data distribution cell coordinates have multiple primary multi-source data distribution cell coordinates. Specifically, based on the primary multi-source data distribution cell coordinates, clustering operations are performed on the secondary multi-source data distribution cell coordinates, and the distances between each secondary coordinate are calculated. The secondary coordinates with closer distances and higher similarity are classified into one cluster using methods such as Euclidean distance or Manhattan distance. Assuming that a distance threshold is set, when the distance between two secondary coordinates is less than the threshold, they are considered to belong to the same cluster. After the same calculation and comparison process, multiple clusters of secondary multi-source data distribution cell coordinates are obtained, and each cluster is associated with multiple primary multi-source data distribution cell coordinates.
[0030] Step S740, compress and store the multi-source data to be stored according to the multiple first-level multi-source data distribution cell coordinates, the data index labels, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates. Specifically, the multi-source data to be stored is compressed and stored by comprehensively utilizing the multiple first-level multi-source data distribution cell coordinates, the data index labels, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates. During the compression process, the data features and relationships represented by these coordinates and identifiers are fully considered, and redundant and repeated information is removed to achieve an efficient compression effect, while ensuring the integrity and recoverability of the data, completing the compressed storage of the multi-source data to be stored, and providing strong support for the effective management and utilization of data.
[0031] In a possible implementation, the multi-source data to be stored is compressed and stored according to the multiple first-level multi-source data distribution cell coordinates, the data index tags, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates, and step S740 further includes step S741, randomly extracting cell coordinates with a content of 0 according to the second-level multi-source data distribution cell coordinates, and setting them as first reference cell coordinates. Specifically, randomly extracting from the second-level multi-source data distribution cell coordinates, when a cell coordinate with a content of 0 is extracted, it is set as the first reference cell coordinate.
[0032] Step S742: According to the secondary multi-source data distribution cell coordinates, randomly extract the cell coordinates with the content of 1 and set them as the second reference cell coordinates. Specifically, if the cell coordinates with the content of 1 are randomly extracted, they are set as the second reference cell coordinates.
[0033] Step S743, traverse the secondary multi-source data distribution cell coordinates and group them according to 0 and 1 to obtain 0 symbol cell coordinates and 1 symbol cell coordinates. Specifically, the secondary multi-source data distribution cell coordinates are fully traversed and grouped according to whether the data content is 0 or 1, so as to obtain 0 symbol cell coordinates and 1 symbol cell coordinates respectively.
[0034] Step S744: According to the first reference cell coordinates, the 0-symbol cell coordinates are traversed to perform relative position identification and generate a first position identification code. Specifically, based on the first reference cell coordinates, the 0-symbol cell coordinates are traversed again, and the first position identification code is generated by calculating the position difference of the 0-symbol cell coordinates relative to the first reference cell coordinates, and calculating the difference between the row and column of each 0-symbol cell coordinate and the row and column of the first reference cell coordinates.
[0035] Step S745: traverse the 1-symbol cell coordinates to perform relative position identification based on the second reference cell coordinates to generate a second position identification code. Specifically, based on the second reference cell coordinates, traverse the 1-symbol cell coordinates, calculate the position difference, and generate the second position identification code.
[0036] Step S746, constructing zero-symbol compressed data according to the first position identification code, in combination with the plurality of primary multi-source data distribution cell coordinates, the data index tags, and the plurality of data source unique identifiers. Specifically, constructing zero-symbol compressed data according to the generated first position identification code, in combination with the plurality of primary multi-source data distribution cell coordinates, the data index tags, and the plurality of data source unique identifiers, for example, combining and encoding the first position identification code with other related information in a specific order and format.
[0037] Step S747, constructing 1-symbol compressed data according to the second position identification code, combining the plurality of first-level multi-source data distribution cell coordinates, the data index tags, and the plurality of data source unique identifiers. Specifically, in the same manner, constructing 1-symbol compressed data according to the second position identification code, combining the plurality of first-level multi-source data distribution cell coordinates, the data index tags, and the plurality of data source unique identifiers.
[0038] Step S748, storing the 0-symbol compressed data and the 1-symbol compressed data. Specifically, the constructed 0-symbol compressed data and the 1-symbol compressed data are stored so that they can be quickly and accurately called and used when needed later, thereby achieving effective compression and storage of multi-source data.
[0039] In a possible implementation, according to the first reference cell coordinates, the 0 symbol cell coordinates are traversed to perform relative position identification to generate a first position identification code, and step S744 further includes step S7441, obtaining the reference longitudinal cell number and the reference transverse cell number of the first reference cell coordinates. Specifically, the detailed information of the first reference cell coordinates is obtained, and the reference longitudinal cell number and the reference transverse cell number are separated therefrom, and these two numbers will serve as the basis for subsequent calculations.
[0040] Step S7442, obtaining the comparison vertical cell number and the comparison horizontal cell number of the first 0 symbol cell coordinate of the 0 symbol cell coordinate. Specifically, obtaining the relevant information of the first 0 symbol cell coordinate in the 0 symbol cell coordinate, and obtaining its comparison vertical cell number and comparison horizontal cell number respectively.
[0041] Step S7443, subtracting the reference longitudinal cell number from the compared longitudinal cell number to generate a longitudinal position identification code. Specifically, the longitudinal position identification code is generated by subtracting the reference longitudinal cell number from the compared longitudinal cell number through such a difference operation, and the longitudinal position identification code reflects the position change of the first 0 symbol cell coordinate relative to the first reference cell coordinate in the longitudinal direction.
[0042] Step S7444: Subtract the reference horizontal cell number from the compared horizontal cell number to generate a horizontal position identification code. Specifically, subtract the reference horizontal cell number from the compared horizontal cell number to generate a horizontal position identification code, which reflects the relative position change in the horizontal direction.
[0043] Step S7445, add the vertical position identification code and the horizontal position identification code into the first 0 symbol cell coordinate position identification code, and add it into the first position identification code. Specifically, add the generated vertical position identification code and horizontal position identification code into the first 0 symbol cell coordinate position identification code, incorporate it into the first position identification code, gradually construct and improve the first position identification code, and provide important position identification information for subsequent data processing and compression.
[0044] In a possible implementation, based on the first position identification code, in combination with the multiple first-level multi-source data distribution cell coordinates, the data index tags, and the multiple data source unique identifiers, 0-symbol compressed data is constructed, and step S746 further includes step S7461, extracting the longitudinal position identification code and the horizontal position identification code of the first 0-symbol cell coordinate position identification code based on the first position identification code. Specifically, based on the first position identification code, the information contained therein is screened and extracted to find the longitudinal position identification code and the horizontal position identification code in the first 0-symbol cell coordinate position identification code.
[0045] Step S7462: extracting a vertical cell number interval and a horizontal cell number interval from the plurality of first-level multi-source data distribution cell coordinates according to the first 0-symbol cell coordinate. Specifically, according to the first 0-symbol cell coordinate, searching and extracting are performed in the plurality of first-level multi-source data distribution cell coordinates to determine the vertical cell number interval and the horizontal cell number interval associated with the first 0-symbol cell coordinate.
[0046] Step S7463, according to the first 0-symbol cell coordinate, the first 0-symbol cell coordinate data source unique identifier is matched from the multiple data source unique identifiers. Specifically, based on the first 0-symbol cell coordinate, a matching operation is performed among the numerous data source unique identifiers, and after careful comparison and screening, the first 0-symbol cell coordinate data source unique identifier corresponding thereto is found.
[0047] Step S7464, the longitudinal position identification code, the longitudinal position identification code, the longitudinal cell serial number interval, the transverse cell serial number interval, the data index label and the first 0-symbol cell coordinate data source unique identifier are stored in order, the first 0-symbol cell coordinate 0-symbol compressed data is constructed, and added to the 0-symbol compressed data. Specifically, the extracted longitudinal position identification code, transverse position identification code, longitudinal cell serial number interval, transverse cell serial number interval, data index label and the first 0-symbol cell coordinate data source unique identifier are arranged and stored in a pre-set order, and through orderly combination, the first 0-symbol cell coordinate 0-symbol compressed data is constructed, and added to the set of 0-symbol compressed data, and the compression and integration of the first 0-symbol cell coordinate related data are gradually completed, providing an efficient and compact data structure for subsequent data processing and application.
[0048] In a possible implementation, the multi-source data to be stored is compressed and stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored, and step S700 further includes step S750, receiving a data retrieval request from the client, wherein the data retrieval request includes the target index task type. Specifically, the server receives a data retrieval request from the client, and the request clearly includes relevant information of the target index task type. The client user sends this request through a specific interface or method to indicate that they want to obtain a specific type of data.
[0049] Step S760, index the compressed data according to the target index task type, and extract the target compressed data set. Specifically, the server indexes the stored compressed data according to the received target index task type. The target index task type is encoded as a specific numerical value or character combination. The server compares and matches it with the index information set when storing the data one by one. The server traverses the index codes of all compressed data, calculates the similarity or match between the two, and accurately extracts the target compressed data set that matches the target index task type from a large amount of compressed data.
[0050] Step S770, reverse decompress the target compressed data set to obtain the target data set. Specifically, the extracted target compressed data set is reversely decompressed, and the server decompresses the data to restore the compressed data. A proportional compression algorithm is used during compression, and the decompression needs to be restored according to the corresponding inverse proportion. During the decompression process, the format, content and structure of the data are restored and sorted, and the codes and marks added during the compression process are removed to restore the original data form and features, and finally a complete and accurate target data set is obtained. The server is ready to send it back to the client to meet the user's data needs. Through the above operations, a complete process from client request to server providing an accurate target data set is realized.
[0051] The embodiment of the present application adopts the method of receiving a storage optimization request including a target index task type, required data attributes and required data source, collecting multi-source data to be stored, performing index marking to generate data index tags, grouping by required data source and obtaining multiple groups of data with unique identifiers, arranging the data in high-level semantic and binary semantic standard tables to generate primary and secondary arrangement results, and finally compressing and storing the data according to relevant results, thereby achieving the technical effect of improving data query efficiency and storage efficiency and reducing storage costs.
[0052] In the above, refer to Figure 1 A storage optimization method for multi-source data fusion according to an embodiment of the present invention is described in detail. Figure 2 A storage optimization system for multi-source data fusion according to an embodiment of the present invention is described.
[0053] A storage optimization system for multi-source data fusion according to an embodiment of the present invention is used to solve the technical problems that the existing multi-source data has unclear indexing rules due to complex sources, diverse formats and semantics, resulting in low query efficiency and inaccurate results, and the existing compression methods cannot effectively process multi-source data, resulting in poor compression effect and waste of storage space, so as to achieve the technical effect of improving data query efficiency and storage efficiency and reducing storage costs. A storage optimization system for multi-source data fusion includes: a storage optimization request receiving module 10, a multi-source data acquisition module 20, a data index label production module 30, a multi-source data acquisition module 40 to be stored, an arrangement result production module 50, a secondary table arrangement result production module 60, and a compression storage module 70.
[0054] The storage optimization request receiving module 10 is used to receive a storage optimization request, wherein the storage optimization request includes a target index task type, a required data attribute, and a required data source;
[0055] The multi-source data collection module 20 is used to collect the multi-source data to be stored according to the required data attributes and the required data source;
[0056] The data index label production module 30 is used to index and label the multi-source data to be stored according to the target index task type, and generate data index labels;
[0057] The to-be-stored multi-source data acquisition module 40 is used to group the to-be-stored multi-source data according to the required data source to obtain multiple groups of to-be-stored multi-source data, wherein the multiple groups of to-be-stored multi-source data have multiple data source unique identifiers;
[0058] The arrangement result production module 50 is used to perform a high-level semantic standard table arrangement on the multi-source data to be stored, and generate a first-level table arrangement result of the multi-source data to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores a character;
[0059] The secondary table arrangement result production module 60 is used to perform binary semantic standard table arrangement on the primary multi-source data table arrangement result to be stored, and generate a secondary multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores 1 or 0;
[0060] The compression storage module 70 is used to compress and store the multi-source data to be stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored and the second-level multi-source data table arrangement result to be stored.
[0061] The specific configuration of the data index label production module 30 will be described in detail below. As described above, according to the target index task type, the multi-source data to be stored is indexed and marked to generate a data index label. The data index label production module 30 may further include: a target index identification unit is used to extract a target index identifier from a task type identifier matching table according to the target index task type, wherein the target index identifier uniquely corresponds to the target index task type; and a data index label unit is used to set the target index identifier to the data index label.
[0062] Next, the specific configuration of the compression storage module 70 will be described in detail. As described above, the multi-source data to be stored is compressed and stored according to the data index tag, the multiple data source unique identifiers, the arrangement result of the first-level multi-source data table to be stored, and the arrangement result of the second-level multi-source data table to be stored. The compression storage module 70 may further include: a first-level multi-source data distribution acquisition unit is used to obtain the first-level multi-source data distribution cell coordinates according to the arrangement result of the first-level multi-source data table to be stored; a second-level multi-source data distribution acquisition unit is used to obtain the second-level multi-source data distribution cell coordinates according to the arrangement result of the second-level multi-source data table to be stored; a multi-cluster second-level multi-source data distribution acquisition unit is used to cluster the second-level multi-source data distribution cell coordinates according to the first-level multi-source data distribution cell coordinates to obtain multi-cluster second-level multi-source data distribution cell coordinates, wherein the multi-cluster second-level multi-source data distribution cell coordinates have multiple first-level multi-source data distribution cell coordinates; the multi-source data to be stored compression storage unit is used to compress and store the multi-source data to be stored according to the multiple first-level multi-source data distribution cell coordinates, the data index tag, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates.
[0063] Among them, the multi-source data to be stored is compressed and stored according to the multiple first-level multi-source data distribution cell coordinates, the data index tags, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates. The multi-source data compression storage unit to be stored may further include: a first reference cell coordinate setting subunit is used to randomly extract cell coordinates with a content of 0 according to the second-level multi-source data distribution cell coordinates, and set them as first reference cell coordinates; a second reference cell coordinate setting subunit is used to randomly extract cell coordinates with a content of 1 according to the second-level multi-source data distribution cell coordinates, and set them as second reference cell coordinates; a symbol cell coordinate acquisition subunit is used to traverse the second-level multi-source data distribution cell coordinates and group them according to 0 and 1 to obtain 0 symbol cell coordinates and 1 symbol cell coordinates; a first position identification code generation subunit is used to generate a first position identification code based on the second-level multi-source data distribution cell coordinates. According to the first reference cell coordinates, the 0-symbol cell coordinates are traversed to perform relative position identification to generate a first position identification code; the second position identification code generation subunit is used to traverse the 1-symbol cell coordinates to perform relative position identification to generate a second position identification code according to the second reference cell coordinates; the 0-symbol compressed data construction subunit is used to construct 0-symbol compressed data according to the first position identification code, in combination with the multiple first-level multi-source data distribution cell coordinates, the data index tags, and the multiple data source unique identifiers; the 1-symbol compressed data construction subunit is used to construct 1-symbol compressed data according to the second position identification code, in combination with the multiple first-level multi-source data distribution cell coordinates, the data index tags, and the multiple data source unique identifiers; the compressed data storage subunit is used to store the 0-symbol compressed data and the 1-symbol compressed data.
[0064] Among them, according to the first reference cell coordinate, the 0 symbol cell coordinate is traversed to perform relative position identification to generate a first position identification code, and the first position identification code generation subunit may further include: a cell number acquisition microunit is used to obtain the reference longitudinal cell number and the reference transverse cell number of the first reference cell coordinate; a random perturbation subunit is used to randomly perturb the preset number of individuals with larger fitness for a number of times according to the selected population with the smallest fitness individual as the target direction to generate the expanded population D; the 0 cell number acquisition microunit is used to obtain the comparison longitudinal cell number and the comparison transverse cell number of the first 0 symbol cell coordinate of the 0 symbol cell coordinate; the longitudinal position identification code generation microunit is used to subtract the reference longitudinal cell number from the comparison longitudinal cell number to generate a longitudinal position identification code; the transverse position identification code generation microunit is used to subtract the reference transverse cell number from the comparison transverse cell number to generate a transverse position identification code; the first position identification code addition microunit is used to add the longitudinal position identification code and the longitudinal position identification code into the first 0 symbol cell coordinate position identification code and into the first position identification code.
[0065] Among them, according to the first position identification code, combined with the multiple first-level multi-source data distribution cell coordinates, the data index label, and the multiple data source unique identifiers, 0-symbol compressed data is constructed, and the 0-symbol compressed data construction subunit may further include: an identification code extraction micro-unit is used to extract the longitudinal position identification code and the longitudinal position identification code of the first 0-symbol cell coordinate position identification code according to the first position identification code; a cell sequence number interval extraction micro-unit is used to extract the longitudinal cell sequence number interval and the transverse cell sequence number interval from the multiple first-level multi-source data distribution cell coordinates according to the first 0-symbol cell coordinate; a matching identification micro-unit is used to match the first 0-symbol cell coordinate data source unique identifier from the multiple data source unique identifiers according to the first 0-symbol cell coordinate; a compressed data adding micro-unit is used to store the longitudinal position identification code, the longitudinal position identification code, the longitudinal cell sequence number interval, the transverse cell sequence number interval, the data index label and the first 0-symbol cell coordinate data source unique identifier in sequence, construct the first 0-symbol cell coordinate 0-symbol compressed data, and add it to the 0-symbol compressed data.
[0066] The specific configuration of the compression storage module 70 will be described in detail below. As described above, the multi-source data to be stored is compressed and stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored. The compression storage module 70 may further include: a request receiving unit for receiving a data retrieval request from a client, wherein the data retrieval request includes a target index task type; a target compressed data set extraction unit for indexing the compressed data according to the target index task type and extracting a target compressed data set; and a target data set acquisition unit for reversely decompressing the target compressed data set to obtain a target data set.
[0067] A storage optimization system for multi-source data fusion provided in an embodiment of the present invention can execute a storage optimization method for multi-source data fusion provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0068] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules may be used and run on the user terminal and / or server, and the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0069] The above specific implementation manner does not constitute a limitation to the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application. In some cases, the actions or steps recorded in the present application can be performed in an order different from that in the embodiment and can still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A storage optimization method for multi-source data fusion, characterized in that: include: Receiving a storage optimization request, wherein the storage optimization request includes a target index task type, a required data attribute, and a required data source; According to the required data attributes and the required data sources, collecting multi-source data to be stored; According to the target index task type, the multi-source data to be stored is indexed and marked to generate a data index tag; Grouping the multi-source data to be stored according to the required data source to obtain multiple groups of multi-source data to be stored, wherein the multiple groups of multi-source data to be stored have multiple data source unique identifiers; Arranging the multi-source data to be stored in a high-level semantic standard table to generate a first-level multi-source data to be stored table arrangement result, wherein the standard table has a standard number of cells in a row, and any cell stores a character; Performing binary semantic standard table arrangement on the first-level multi-source data table arrangement result to be stored, generating a second-level multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores 1 or 0; Compressing and storing the multi-source data to be stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored; The method of compressing and storing the multi-source data to be stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored includes: According to the arrangement result of the first-level multi-source data table to be stored, the coordinates of the first-level multi-source data distribution cells are obtained; According to the arrangement result of the secondary multi-source data table to be stored, obtaining the coordinates of the secondary multi-source data distribution cells; Clustering the secondary multi-source data distribution cell coordinates according to the primary multi-source data distribution cell coordinates to obtain multiple clusters of secondary multi-source data distribution cell coordinates, wherein the multiple clusters of secondary multi-source data distribution cell coordinates have multiple primary multi-source data distribution cell coordinates; Compressing and storing the multi-source data to be stored according to the multiple first-level multi-source data distribution cell coordinates, the data index tags, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates; The method of compressing and storing the multi-source data to be stored according to the multiple first-level multi-source data distribution cell coordinates, the data index tags, the multiple data source unique identifiers, and the second-level multi-source data distribution cell coordinates includes: According to the secondary multi-source data distribution cell coordinates, randomly extract the cell coordinates whose content is 0 and set them as the first reference cell coordinates; According to the secondary multi-source data distribution cell coordinates, randomly extract the cell coordinates whose content is 1 and set them as the second reference cell coordinates; Traversing the secondary multi-source data distribution cell coordinates and grouping them into 0 and 1 to obtain 0-symbol cell coordinates and 1-symbol cell coordinates; According to the first reference cell coordinates, traverse the 0 symbol cell coordinates to perform relative position identification and generate a first position identification code; According to the second reference cell coordinates, traverse the 1-symbol cell coordinates to perform relative position identification and generate a second position identification code; According to the first position identification code, in combination with the plurality of primary multi-source data distribution cell coordinates, the data index label, and the plurality of data source unique identifiers, construct zero-symbol compressed data; According to the second location identification code, in combination with the plurality of primary multi-source data distribution cell coordinates, the data index label, and the plurality of data source unique identifiers, constructing 1-symbol compressed data; The 0-symbol compressed data and the 1-symbol compressed data are stored.
2. The method according to claim 1, characterized in that According to the target index task type, the multi-source data to be stored is indexed and marked to generate data index tags, including: According to the target index task type, extracting a target index identifier from a task type identifier matching table, wherein the target index identifier uniquely corresponds to the target index task type; The target index identifier is set as the data index tag.
3. The method according to claim 1, characterized in that According to the first reference cell coordinates, traversing the 0 symbol cell coordinates to perform relative position identification and generate a first position identification code, including: Obtaining a reference longitudinal cell number and a reference transverse cell number of the first reference cell coordinate; Obtaining a compared vertical cell number and a compared horizontal cell number of a first 0-symbol cell coordinate of the 0-symbol cell coordinate; Subtracting the reference longitudinal cell number from the comparison longitudinal cell number to generate a longitudinal position identification code; Subtracting the reference horizontal cell number from the compared horizontal cell number to generate a horizontal position identification code; Add the longitudinal position identification code and the transverse position identification code into the first 0-symbol cell coordinate position identification code and add them into the first position identification code.
4. The method according to claim 3, characterized in that According to the first position identification code, in combination with the plurality of primary multi-source data distribution cell coordinates, the data index label, and the plurality of data source unique identifiers, constructing zero-symbol compressed data, including: Extracting the longitudinal position identification code and the transverse position identification code of the first 0-symbol cell coordinate position identification code according to the first position identification code; Extracting a vertical cell number interval and a horizontal cell number interval from the plurality of first-level multi-source data distribution cell coordinates according to the first 0-symbol cell coordinates; According to the first 0-symbol cell coordinate, matching the first 0-symbol cell coordinate data source unique identifier from the multiple data source unique identifiers; The longitudinal position identification code, the transverse position identification code, the longitudinal cell serial number interval, the transverse cell serial number interval, the data index label and the first 0-symbol cell coordinate data source unique identifier are stored in sequence, the first 0-symbol cell coordinate 0-symbol compressed data is constructed, and added to the 0-symbol compressed data.
5. The method according to claim 1, characterized in that Also includes: Receiving a data retrieval request from a client, wherein the data retrieval request includes a target index task type; Indexing the compressed data according to the target indexing task type, and extracting the target compressed data set; The target compressed data set is reversely decompressed to obtain a target data set.
6. A storage optimization system for multi-source data fusion, characterized in that: The system is used to implement a storage optimization method for multi-source data fusion according to any one of claims 1 to 5, and the system comprises: A storage optimization request receiving module, wherein the storage optimization request receiving module is used to receive a storage optimization request, wherein the storage optimization request includes a target index task type, a required data attribute, and a required data source; A multi-source data acquisition module, the multi-source data acquisition module is used to acquire the multi-source data to be stored according to the required data attributes and the required data sources; A data index label production module, the data index label production module is used to index the multi-source data to be stored according to the target index task type and generate a data index label; A module for acquiring multi-source data to be stored, the module for acquiring multi-source data to be stored is used to group the multi-source data to be stored according to the required data source to obtain multiple groups of multi-source data to be stored, wherein the multiple groups of multi-source data to be stored have multiple data source unique identifiers; An arrangement result production module, the arrangement result production module is used to perform a high-level semantic standard table arrangement on the multi-source data to be stored, and generate a first-level table arrangement result of the multi-source data to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores a character; A secondary table arrangement result production module, the secondary table arrangement result production module is used to perform binary semantic standard table arrangement on the primary multi-source data table arrangement result to be stored, and generate a secondary multi-source data table arrangement result to be stored, wherein the standard table has a standard number of cells in a row, and any cell stores 1 or 0; A compression storage module is used to compress and store the multi-source data to be stored according to the data index tag, the multiple data source unique identifiers, the first-level multi-source data table arrangement result to be stored, and the second-level multi-source data table arrangement result to be stored.
