Multi-model distributed data storage engine application method and system

Through the multi-model distributed data storage engine application method and the use of data model identification and optimization of storage strategies, the problem in the existing technology that a single data model is difficult to be compatible with diverse needs is solved, and efficient storage and retrieval of different data models are achieved.

CN118760722APending Publication Date: 2024-10-11优网云计算有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410770070.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing distributed storage engine uses a single data model, which is difficult to be compatible with diverse business needs, has insufficient performance, and cannot effectively handle the storage and retrieval of different data models.

Method used

Design a multi-model distributed data storage engine application method, identify the data type through the data model identification unit, configure the corresponding storage structure and index method, and adopt the combination of row storage and column storage, partition storage and compression algorithm, inverted index and word segmentation technology, etc. Strategies to optimize data sharding and distributed storage.

Benefits of technology

It improves the compatibility of different data models and storage and retrieval efficiency, solves the technical problems that are difficult to be compatible with existing engines, and significantly improves the performance of distributed storage and retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760722A_ABST
    Figure CN118760722A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-model distributed data storage engine application method and system, and the method comprises the following steps: setting a data model recognition unit, and configuring a processing strategy database containing a processing strategy for carrying out the optimization processing of a storage structure and an index mode of each set data model; configuring a storage database set; performing data model type identification on the received storage data by adopting a data model identification unit; calling a processing strategy in a processing strategy database to optimize a storage structure and an index mode of the data model; carrying out data fragmentation on the optimized data, and carrying out distributed storage on a plurality of pieces of obtained fragmented data in a storage database of a corresponding data model type; according to the method, the compatibility of different types of data models can be effectively improved, the technical problem that an existing engine is difficult to carry out compatible processing is solved, optimization processing is further carried out on each data model, and the efficiency of distributed storage can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of distributed data storage, and more specifically, to a multi-model distributed data storage engine application method and system. Background Art

[0002] The architecture of a typical distributed database usually includes three layers: the transport layer, the query layer, and the execution layer. The execution layer generally includes local operation units and remote operation units. Different units are called according to the execution plan, and then the results are merged and returned to the transport layer.

[0003] The distributed storage engine is a local running unit in the execution layer, which generally includes the following functions:

[0004] 1. Transaction manager: used to schedule transactions and ensure the internal consistency of the database;

[0005] 2. Lock management: ensures consistency when operating shared objects, including transactions and modifying database parameters;

[0006] 3. Storage structure: contains various physical storage layers, describing how data and indexes are organized on disk;

[0007] 4. Memory structure: mainly includes cache and buffer management. Data is generally input to the disk in batches, and memory is used to cache data before writing;

[0008] 5. Commit log: When the database crashes, the commit log can be used to restore the consistent state of the system;

[0009] Most existing distributed storage engines use a single data model, which causes problems such as inconsistent models and insufficient performance when responding to diverse business needs. There is a need for a multi-model distributed data storage engine application method and system that can solve this problem. Summary of the invention

[0010] The technical problem to be solved by the present invention is to provide a multi-model distributed data storage engine application method and a multi-model distributed data storage engine system in view of the above-mentioned defects of the prior art.

[0011] The technical solution adopted by the present invention to solve the technical problem is:

[0012] A multi-model distributed data storage engine application method is constructed, which includes the following steps:

[0013] Step 1: Setting a data model identification unit for identifying the type of the data model to be processed;

[0014] Step 2: configuring a processing strategy database including processing strategies for optimizing the storage structure and indexing method of each set data model;

[0015] Step 3: configure a storage database set of corresponding data model types that have a mapping relationship with the processing strategy;

[0016] Step 4: using a data model identification unit to identify the type of the data model of the received storage data;

[0017] Step 5: Call the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model;

[0018] Step 6: After optimization, the data is sharded and the obtained multiple sharded data are distributedly stored in a storage database of the corresponding data model type.

[0019] The multi-model distributed data storage engine application method of the present invention, wherein the step one also includes a method:

[0020] A user operation window is configured, which is used for the user to input the type of data model; the data model identification unit verifies the data model according to the input data when receiving the type input data, and performs subsequent operations if it meets the requirements, otherwise it feedbacks a type input error prompt.

[0021] The multi-model distributed data storage engine application method described in the present invention, wherein, in the step one, the data model identification unit performs type identification by identifying the data composition structure of the data model.

[0022] The multi-model distributed data storage engine application method of the present invention, wherein the set multiple data models include a relational data model, and the relational data model processing strategy adopts:

[0023] Data storage uses a combination of row storage and column storage to improve query performance;

[0024] Introduce database caching and pre-reading mechanisms to reduce IO overhead and improve access speed to relational data.

[0025] The multi-model distributed data storage engine application method of the present invention includes a wide table data model among the multiple data models set, and the wide table data model processing strategy adopts:

[0026] Data storage uses partition storage and compression algorithms to improve storage efficiency;

[0027] Introduce data preloading and caching technology to speed up the scanning and query of wide table data.

[0028] In the multi-model distributed data storage engine application method of the present invention, the multiple data models set include a search engine data model, and the search engine data model processing strategy adopts:

[0029] Data indexing uses inverted indexing and word segmentation technology to improve search efficiency;

[0030] Introduce distributed search engine nodes to achieve fast data retrieval and full-text search.

[0031] The multi-model distributed data storage engine application method described in the present invention, wherein the storage database set adopts a dynamic expansion mechanism to automatically add storage nodes according to the actual stored data model.

[0032] A multi-model distributed data storage engine system is applied to the multi-model distributed data storage engine application method as described above, wherein the system includes a data model identification unit, a processing strategy database, a storage database set and a distributed storage unit;

[0033] The data model identification unit is used to identify the type of the data model to be processed;

[0034] The processing strategy database includes processing strategies for optimizing the storage structure and indexing method of each set data model;

[0035] The storage database set is a set of storage databases of corresponding data model types that have a mapping relationship with the processing strategy;

[0036] The distributed storage unit uses a data model identification unit to identify the type of the data model of the received storage data, calls the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model, and splits the data after optimization and distributes the obtained multiple fragmented data in the storage database of the corresponding data model type.

[0037] The beneficial effects of the present invention are as follows: by applying the method of the present application, the compatibility with different types of data models can be effectively improved, the technical difficulties that existing engines are difficult to handle with compatibility can be solved, and each data model can be further optimized, which can effectively improve the storage and retrieval efficiency of distributed storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work:

[0039] Figure 1 This is a flow chart of a multi-model distributed data storage engine application method according to a preferred embodiment of the present invention;

[0040] Figure 2 It is a principle block diagram of a multi-model distributed data storage engine system in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0042] The multi-model distributed data storage engine application method of the preferred embodiment of the present invention is as follows: Figure 1 As shown, the following steps are included:

[0043] S01: Setting a data model identification unit to identify the type of the data model to be processed;

[0044] S02: configuring a processing strategy database including processing strategies for optimizing the storage structure and indexing method of each set data model;

[0045] S03: configuring a storage database set of corresponding data model types that have a mapping relationship with the processing strategy;

[0046] S04: using a data model identification unit to identify the type of the data model of the received storage data;

[0047] S05: calling the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model;

[0048] S06: Slice the optimized data and distribute the obtained multiple slicing data in a storage database of a corresponding data model type;

[0049] The application of the methods and approaches of this application can effectively improve the compatibility of different types of data models, solve the technical difficulties that existing engines are difficult to handle in a compatible manner, and further optimize each data model, which can effectively improve the storage and retrieval efficiency of distributed storage.

[0050] Preferably, step one also includes a method:

[0051] Configure a user operation window, which is used for users to input the type of data model; the data model identification unit verifies the data model according to the input data when receiving the type input data, and performs subsequent operations if it is consistent, otherwise feedback type input error prompt;

[0052] In this way, the user can input the data model type by himself, and after a simple identification, the next processing step can be carried out, saving time and resources.

[0053] Preferably, in step one, the data model identification unit performs type identification by identifying the data composition structure of the data model.

[0054] Preferably, the multiple data models set include a relational data model, and the processing strategy for the relational data model is:

[0055] Data storage uses a combination of row storage and column storage to improve query performance;

[0056] Introducing database cache and pre-reading mechanisms to reduce IO overhead and improve access speed to relational data;

[0057] The relational data model is one of the most common model categories. Using this optimization method can significantly improve query performance and enhance data access capabilities.

[0058] Preferably, the multiple data models set include a wide table data model, and the processing strategy for the wide table data model adopts:

[0059] Data storage uses partition storage and compression algorithms to improve storage efficiency;

[0060] Introducing data preloading and caching technology to speed up scanning and querying of wide table data;

[0061] The wide table model stores data through data tables. A single table supports PB-level data storage and tens of millions of QPS. Using this optimization method for the wide table model can significantly improve storage efficiency and reading efficiency.

[0062] Preferably, the multiple data models set include a search engine data model, and the search engine data model processing strategy adopts:

[0063] Data indexing uses inverted indexing and word segmentation technology to improve search efficiency;

[0064] Introducing distributed search engine nodes to achieve fast data retrieval and full-text search;

[0065] Preferably, the storage database set adopts a dynamic expansion mechanism, and automatically adds storage nodes according to the actual stored data model, so as to automatically expand the database capacity when distributing the storage of various data models, thereby ensuring the feasibility and stability of storage.

[0066] A multi-model distributed data storage engine system is applied to the multi-model distributed data storage engine application method as described above, such as Figure 2 As shown, the system includes a data model identification unit 100, a processing strategy database 101, a storage database set 102 and a distributed storage unit 2;

[0067] A data model identification unit 100 is used to identify the type of the data model to be processed;

[0068] The processing strategy database 101 includes processing strategies for optimizing the storage structure and indexing method of each set data model;

[0069] The storage database set 102 is a set of storage databases of corresponding data model types that have a mapping relationship with the processing strategy;

[0070] Distributed storage unit 2, using a data model identification unit to identify the type of the data model for the received storage data, calling the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model, sharding the optimized data and distributing the obtained multiple sharded data in the storage database of the corresponding data model type;

[0071] The system of the present application can effectively improve the compatibility with different types of data models, solve the technical difficulties that existing engines are difficult to handle in a compatible manner, and further optimize each data model, which can effectively improve the storage and retrieval efficiency of distributed storage.

[0072] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A multi-model distributed data storage engine application method, characterized in that: The following steps are involved: Step 1: Setting a data model identification unit for identifying the type of the data model to be processed; Step 2: configuring a processing strategy database including processing strategies for optimizing the storage structure and indexing method of each set data model; Step 3: configure a storage database set of corresponding data model types that have a mapping relationship with the processing strategy; Step 4: using a data model identification unit to identify the type of the data model of the received storage data; Step 5: Call the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model; Step 6: After optimization, the data is sharded and the obtained multiple sharded data are distributedly stored in a storage database of the corresponding data model type.

2. The multi-model distributed data storage engine application method according to claim 1, characterized in that: The step 1 also includes a method: A user operation window is configured, which is used for the user to input the type of data model; the data model identification unit verifies the data model according to the input data when receiving the type input data, and performs subsequent operations if it meets the requirements, otherwise it feedbacks a type input error prompt.

3. The multi-model distributed data storage engine application method according to claim 1, characterized in that: In the step one, the data model identification unit performs type identification by identifying the data composition structure of the data model.

4. The multi-model distributed data storage engine application method according to claim 1, characterized in that: The multiple data models set include relational data models, and the processing strategy for relational data models is: Data storage uses a combination of row storage and column storage to improve query performance; Introduce database caching and pre-reading mechanisms to reduce IO overhead and improve access speed to relational data.

5. The multi-model distributed data storage engine application method according to claim 1, characterized in that: The multiple data models set include wide table data models. The processing strategy for wide table data models is: Data storage uses partition storage and compression algorithms to improve storage efficiency; Introduce data preloading and caching technology to speed up the scanning and query of wide table data.

6. The multi-model distributed data storage engine application method according to claim 1, characterized in that: The multiple data models set include a search engine data model, and the search engine data model processing strategy adopts: Data indexing uses inverted indexing and word segmentation technology to improve search efficiency; Introduce distributed search engine nodes to achieve fast data retrieval and full-text search.

7. The multi-model distributed data storage engine application method according to claim 1, characterized in that: The storage database set adopts a dynamic expansion mechanism to automatically add storage nodes according to the actual stored data model.

8. A multi-model distributed data storage engine system, applied to the multi-model distributed data storage engine application method as claimed in any one of claims 1 to 7, characterized in that: The system includes a data model identification unit, a processing strategy database, a storage database set and a distributed storage unit; The data model identification unit is used to identify the type of the data model to be processed; The processing strategy database includes processing strategies for optimizing the storage structure and indexing method of each set data model; The storage database set is a set of storage databases of corresponding data model types that have a mapping relationship with the processing strategy; The distributed storage unit uses a data model identification unit to identify the type of the data model of the received storage data, calls the processing strategy in the processing strategy database to optimize the storage structure and indexing method of the data model, and splits the data after optimization and distributes the obtained multiple fragmented data in the storage database of the corresponding data model type.