A high-speed writing and reading system and method for multiple data sources

Through a system compatible with dual storage methods, data requirements are collected and processed in real time, and row and column storage versions are synchronized, which solves the problem of poor writing performance of traditional systems and improves the efficiency and quality of big data writing and reading.

CN117931802BActive Publication Date: 2024-09-13NANJING CHOYEA INFOTECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410105307.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-09-13
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

Traditional high-speed writing and reading systems with multiple data sources have a single storage method, resulting in poor writing performance and low usage efficiency.

Method used

Adopt a system compatible with dual storage methods, collect and read data sets in real time through the data demand module, and establish row and column storage versions through the central storage module, calculate the version difference ratio, and realize row storage version number and column data Synchronization of storage versions is suitable for different data operation scenarios.

Benefits of technology

It achieves high-speed writing and reading efficiency, strong compatibility, ensures data security and system security, and improves data reading and writing efficiency and quality in various big data demand scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931802B
    Figure CN117931802B
Patent Text Reader

Abstract

The present invention relates to the technical field of big data writing and reading, and discloses a high-speed writing and reading system for multiple data sources and a method thereof, including a data demand module, a central storage module and a processing output module. The present invention sets a writing demand unit and a reading demand unit through the data demand module to collect demand data sets in real time, a security investigation unit calculates a security demand data set Aqxu, a row storage unit calculates a row storage version Hscb suitable for writing a large amount of data, a column storage unit performs data conversion and backup to calculate a column storage version Lscb suitable for querying and analyzing a large amount of data, and a data verification unit calculates a version difference ratio Bacb to ensure that the data row storage version number is synchronized with the column storage version. The dual storage method has high compatibility, and the synchronization time is much shorter than using a certain database alone, and the high-speed writing and reading efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data writing and reading, and in particular to a high-speed writing and reading system and method for multiple data sources. Background Art

[0002] Big data refers to a collection of data that is large in scale, diverse in types, and processed at a fast speed. With the popularization of the Internet and the Internet of Things, the generation and storage of data have shown an explosive growth trend. These data include structured data, semi-structured data, and unstructured data. The characteristics of big data are the volume, speed, and diversity of data. Among them, the volume of data is very large, far beyond the processing capacity of traditional databases, the speed of data is very fast, and it needs to be processed and analyzed in real time or near real time, and the diversity of data is very rich, including text, pictures, videos and other formats. Big data analysis is the process of processing and analyzing big data using various technologies and tools. Through the analysis of big data, the laws and trends hidden behind the data can be discovered to provide support for corporate decision-making. The methods of big data analysis include machine learning, data mining, natural language processing, etc. In the medical field, big data analysis can help doctors diagnose diseases and formulate treatment plans. In the retail field, big data analysis can help companies understand consumer needs and purchasing habits, optimize product recommendation strategies, etc. Big data is an important part of today's information age. Its emergence and development are of great significance to promoting social progress and economic development.

[0003] Writing and reading big data are very important links in the big data processing process. Writing big data: When storing a large amount of data in a computer system, it usually involves steps such as data collection, cleaning, conversion, loading and storage, and it is necessary to consider issues such as data reliability, security and efficiency. Row storage and column storage are two common data storage methods for big data, which have obvious differences in structure, query efficiency and applicable scenarios. Row storage tends to have a fixed structure, and each row of data is stored in the same form, while column storage tends to have a weak structure, and the columns of each row of data can be different, and the stored business data and related column information are all together. Row storage only requires one primary key to store a row of data, which makes it more efficient in transaction processing, while column storage requires multiple primary keys to store a row of data because each column may have a primary key. Column storage is more suitable for OLAP (online analytical processing) large data volume queries, which only needs to read the data of the specific columns involved, rather than reading all data columns like row storage. On the contrary, row storage is more efficient in OLTP (online transaction processing) because it is suitable for reading and writing large amounts of data. Column storage mainly stores business data, but it also contains metadata information such as column names, while row storage mainly stores business data. Row storage is often used in systems with strong transactional nature, such as banking or telecommunications systems, because they often require a large number of write operations, while column storage is more suitable for scenarios that require a large amount of data analysis, such as advertising recommendations or market analysis. Big data reading refers to the process of obtaining data from a computer system. In the process of big data reading, it usually involves steps such as querying, filtering, sorting, and aggregating data, and issues such as data integrity, accuracy, and efficiency need to be considered. The choice of row storage or column storage depends on specific business needs and data processing tasks.

[0004] At present, traditional high-speed write and read systems for multiple data sources usually adopt a single database storage method of row storage or column storage. Row storage has a fast write speed, but redundant data will be generated during the reading process, which is less efficient in big data scenarios. Column storage has a fast read speed and is suitable for big data analysis and query scenarios, but the write performance is poor. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a high-speed writing and reading system and method for multiple data sources, which have the advantages of high compatibility of dual storage methods and high high-speed writing and reading efficiency, and solve the problems of single storage method, poor writing performance and low utilization efficiency of traditional high-speed writing and reading systems for multiple data sources.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] A high-speed writing and reading system for multiple data sources, including a data demand module, a central storage module and a processing output module;

[0008] The data demand module includes a write demand unit, a read demand unit and a security investigation unit. The write demand unit collects the write data set in real time through a network connection to the user end, numbers it, and transmits it to the security investigation unit through the network. The read demand unit collects the read data set in real time through a network connection to the user end, numbers it, and transmits it to the security investigation unit through the network. The demand data set consists of a write data set and a read data set. The security investigation unit establishes a security investigation model Aqpc through a network connection to a database. The security investigation unit calculates a security demand data set Aqxu based on the demand data set and the security investigation model Aqpc, and numbers it. The security investigation unit transmits the security demand data set Aqxu to the data demand module through the network. The data demand module is connected to a central storage module through the network.

[0009] The central storage module establishes a reference data set through a network connection to a database and performs numbering. The reference data set consists of a reference row version model, a reference column version model and a reference verification data set. The central storage module includes a row storage unit, a column storage unit and a data verification unit. The row storage unit calculates a row storage version Hscb according to the security requirement data set Aqxu and the reference data set, and transmits it to the column storage unit through the network. The column storage unit calculates a column storage version Lscb according to the security requirement data set Aqxu and the reference data set, and transmits it to the data verification unit through the network. The data verification unit calculates a version difference ratio Bacb according to the row storage version Hscb and the column storage version Lscb, and transmits it to the processing output module through the network. The central storage module connects the processing output module through the network;

[0010] The processing output module compares the reference data set according to the version difference ratio Bacb to determine the synchronization status of the data row storage version number and the column storage version. The processing output module waits for version update or outputs query results according to the synchronization status.

[0011] Preferably, the write demand unit numbers the written data sets according to their characteristics, and the written data sets are numbered as XR1, XR2, XR3, ..., XR n The read demand unit numbers the read data set according to its characteristics, and the read data set is numbered as DQ1, DQ2, DQ3, ... DQ n .

[0012] Preferably, the security screening unit calculates the security requirement data set Aqxu according to the requirement data set and the security screening model Aqpc, and the calculation formula is as follows:

[0013]

[0014] In the formula, Aqxu represents the security requirement data set, f(XR)∈Aqpc means that all sub-data in the write data set set belong to the security screening model data set, and f(DQ)∈Aqpc means that all sub-data in the read data set set belong to the security screening model data set.

[0015] Preferably, the security investigation unit numbers the security write data set and the security read data set according to the characteristics of the security requirement data set Aqxu, and transmits them to the data requirement module through the network. The security write data set is numbered AXR1, AXR2, AXR3, ... AXR n , the secure read data sets are numbered ADQ1, ADQ2, ADQ3, ...ADQ n .

[0016] Preferably, the central storage module numbers the reference row version model, the reference column version model and the reference verification data set according to the characteristics of the reference data set, and the reference data set number is CK hs , CK ls and CK jy .

[0017] Preferably, the row storage unit calculates the row storage version Hscb according to the security requirement data set Aqxu and the reference data set, and the calculation formula is as follows:

[0018] f(x)=AXR1, AXR2, AXR3,…AXR n ,

[0019]

[0020] In the formula, Hscb represents the row storage version. Indicates that all data in the securely written data set is written into the memory at one time, processed according to the reference row version model, and the current data row storage version number is generated. Indicates that the secure write data set is written into the memory in the form of a data stream, processed according to the reference row version model, and the current data row storage version number is generated. Indicates that the incremental data in the securely written dataset is written into the memory, processed according to the reference row version model, and the current data row storage version number is generated.

[0021] Preferably, the column storage unit calculates a column storage version Lscb according to the security requirement data set Aqxu and the reference data set, and the calculation formula is as follows:

[0022] f(y)=ADQ1, ADQ2, ADQ3,…ADQ n ,

[0023]

[0024] In the formula, Lscb represents the column storage version. Indicates that the secure write data set is written into the memory for processing according to the reference columnar version model, and the current data columnar storage version number is generated. Indicates that the safe read data set analyzes the read data according to the reference columnar version model.

[0025] Preferably, the data verification unit calculates the version difference ratio Bacb according to the row-based storage version Hscb and the column-based storage version Lscb, and the calculation formula is as follows:

[0026]

[0027] In the formula, Bacb represents the version difference ratio, Hscb represents the row-based storage version number of the current data, Lscb represents the column-based storage version number of the current data, and θa ! Represents the fixed tolerance parameter in the calibration algorithm.

[0028] Preferably, the processing output module compares the reference verification data set CK according to the version difference ratio Bacb. jy , determine the synchronization status of the row-type storage version number and the column-type storage version number, the version difference ratio Bacb and the reference verification data set CK jy If they are the same, the query result column storage version Lscb is directly output, and the version difference is Bacb and the reference verification data set CK jy If they are not the same, the processing output module controls the central storage module through the network connection to convert the backup data again, waiting for the row storage version number and the column storage version number to be updated and consistent again.

[0029] Preferably, a high-speed writing and reading method for multiple data sources comprises the following steps:

[0030] Step 1: The data demand module collects the demand data set in real time through the write demand unit and the read demand unit, and after numbering, generates the security demand data set Aqxu through the security investigation unit to clarify whether the user demand is to write storage data or query and read data;

[0031] Step 2: When the user needs to write storage data, the row storage unit calculates the row storage version Hscb, and then transmits it to the column storage unit for data conversion and backup. The column storage unit calculates the column storage version Lscb. When the user needs to query and read data, only the column storage unit calculates the column storage version Lscb;

[0032] Step 3: The column storage unit transmits the row storage version Hscb and the column storage version Lscb to the data verification unit through the network. The data verification unit calculates the version difference ratio Bacb and transmits it to the processing output module.

[0033] Step 4: Process the output module and compare the reference verification data set CK according to the version difference ratio Bacb jy , determine the synchronization status of the data row storage version number and the column storage version number, and the processing output module waits for the version update or outputs the query result according to the synchronization status.

[0034] Compared with the prior art, the present invention provides a high-speed writing and reading system and method for multiple data sources, which has the following beneficial effects:

[0035] 1. The present invention sets a write demand unit and a read demand unit through a data demand module, collects demand data sets in real time, sets a security screening unit in a central storage module, calculates a security demand data set Aqxu according to the demand data set and the security screening model Aqpc, and numbers it, calculates a row storage version Hscb in a row storage unit, which is suitable for operation scenarios where users need to write a large amount of data, and then transmits it to a column storage unit for data conversion and backup, and the column storage unit calculates a column storage version Lscb, which is suitable for operation scenarios where users need to query and analyze a large amount of data, and the data verification unit calculates a version difference ratio Bacb and transmits it to a processing output module, and the processing output module compares the reference verification data set CK according to the version difference ratio Bacb. jy , determine the synchronization status of the data row storage version number and the column storage version, process the output module, wait for version update or output query results according to the synchronization status, perceive data update in real time, and the dual storage method has high compatibility.

[0036] 2. The present invention sets a security investigation unit through a central storage module, calculates a security requirement data set Aqxu, is compatible with receiving user write storage requirements or query and read requirements, clarifies user requirements, ensures data security and system security, and makes data reading and writing more accurate. When the user requirement is to write storage data, the row storage version Hscb and the column storage version Lscb are calculated, and the data row storage version number is required to be synchronized with the column storage version number. When the user requirement is to query and read data, the query result is quickly calculated only through the column storage version Lscb. The synchronization time of the data row storage version number and the column storage version number is much shorter than that of using a single database. In big data with multiple demand scenarios, it can achieve the improvement of data reading and writing efficiency and quality, and high-speed writing and reading efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a schematic diagram of the structural system of the present invention;

[0038] Figure 2 It is a schematic diagram of the structural method of the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] See also Figure 1 , a high-speed writing and reading system for multiple data sources, including a data demand module, a central storage module and a processing output module;

[0041] The data demand module includes a write demand unit, a read demand unit and a security check unit. The write demand unit collects the write data set in real time through the network connection to the user end and numbers the write data set. The write data set is numbered as XR1, XR2, XR3, ...XR n , the number corresponds to the user's demand to write all the sub-data stored, and transmit it to the security investigation unit through the network. The reading demand unit connects to the user end through the network to collect and read the data set in real time for numbering. The read data set number is DQ1, DQ2, DQ3, ... DQ n , all sub-data read by the user's demand query are numbered and transmitted to the security investigation unit through the network. The demand data set consists of a write data set and a read data set. The security investigation unit establishes a security investigation model Aqpc through a network connection database. The security investigation unit calculates the security demand data set Aqxu based on the demand data set and the security investigation model Aqpc. The calculation formula is as follows:

[0042]

[0043] In the formula, Aqxu represents the security requirement dataset, f(XR)∈Aqpc represents that all sub-data in the write dataset set belong to the security screening model data set, and f(DQ)∈Aqpc represents that all sub-data in the read dataset set belong to the security screening model data set. According to the security requirement dataset Aqxu, it is compatible with the user's write storage requirements or query read requirements, ensuring data security and system security while making data reading and writing more accurate.

[0044] The security investigation unit numbers the security write data set and the security read data set according to the characteristics of the security requirement data set Aqxu. The security write data set is numbered as AXR1, AXR2, AXR3, ...AXR n The numbers correspond to all the secure sub-data written into the storage as required by the user, and the secure read data sets are numbered as ADQ1, ADQ2, ADQ3, …ADQ n , the number corresponds to all the security sub-data that the user needs to query and read;

[0045] The security investigation unit transmits the security requirement data set Aqxu to the data requirement module through the network, and the data requirement module is connected to the central storage module through the network;

[0046] The central storage module connects to the database through the network to establish a reference data set and number it. The reference data set number is CK hs , CK ls and CK jy The reference data set consists of a reference row version model, a reference column version model and a reference verification data set. The central storage module includes a row storage unit, a column storage unit and a data verification unit. The row storage unit calculates the row storage version Hscb based on the security requirement data set Aqxu and the reference data set, and transmits it to the column storage unit through the network. The calculation formula is as follows:

[0047] f(x)=AXR1, AXR2, AXR3,…AXR n ,

[0048]

[0049] In the formula, Hscb represents the row storage version. Indicates that all data in the securely written data set is written into the memory at one time, processed according to the reference row version model, and the current data row storage version number is generated. Indicates that the secure write data set is written into the memory in the form of a data stream, processed according to the reference row version model, and the current data row storage version number is generated. Indicates that the incremental data in the secure write data set is written into the memory, processed according to the reference row version model, and the row storage version number of the current data is generated. According to the row storage version Hscb, it is suitable for operation scenarios where users need to write a large amount of data. Each row of data is stored in the same form, and the written data processing is accurate and efficient;

[0050] The column storage unit calculates the column storage version Lscb based on the security requirement data set Aqxu and the reference data set, and transmits it to the data verification unit through the network. The calculation formula is as follows:

[0051] f(y)=ADQ1, ADQ2, ADQ3,…ADQ n ,

[0052]

[0053] In the formula, Lscb represents the column storage version. Indicates that the secure write data set is written into the memory for processing according to the reference columnar version model, and the current data columnar storage version number is generated. Indicates that the safe reading of the data set analyzes the read data according to the reference column version model, and converts and backs up the current data according to the column storage version Lscb. It is suitable for operation scenarios where users need to query and analyze a large amount of data. Only the data involved in the specific columns needs to be read, and the data reading is accurate and efficient.

[0054] The data verification unit calculates the version difference ratio Bacb based on the row storage version Hscb and the column storage version Lscb, and transmits the processed output module through the network. The calculation formula is as follows:

[0055]

[0056] In the formula, Bacb represents the version difference ratio, Hscb represents the row-based storage version number of the current data, Lscb represents the column-based storage version number of the current data, and θa ! Indicates the fixed tolerance parameter in the verification algorithm. Based on the version difference ratio Bacb, it can quickly compare and verify whether the row-based storage version number is consistent with the column-based storage version number, respond quickly, and perceive data updates in real time.

[0057] The central storage module is connected to the processing output module through the network, and transmits the version difference ratio Bacb to the processing output module;

[0058] Processing output module, based on the version difference Bacb, compare the reference data set, and compare the reference verification data set CKjy , determine the synchronization status of the row-based storage version number and the column-based storage version number, and the version difference ratio Bacb and the reference verification data set CK jy If they are the same, the query result column storage version Lscb is directly output, and the version difference is Bacb and the reference verification data set CK jy If they are different, the processing output module will connect to the network and control the central storage module to convert the backup data again, waiting for the row storage version number and the column storage version number to be updated to be consistent again. The synchronization time of the data row storage version number and the column storage version number is much shorter than using a single database. Therefore, in the big data scenario, the dual storage method has high compatibility and can improve data reading and writing efficiency and quality.

[0059] A high-speed writing and reading method for multiple data sources comprises the following steps:

[0060] Step 1: The data demand module collects the demand data set in real time through the write demand unit and the read demand unit, and after numbering, generates the security demand data set Aqxu through the security investigation unit to clarify whether the user demand is to write storage data or query and read data;

[0061] Step 2: When the user needs to write storage data, the row storage unit calculates the row storage version Hscb, and then transmits it to the column storage unit for data conversion and backup. The column storage unit calculates the column storage version Lscb. When the user needs to query and read data, only the column storage unit calculates the column storage version Lscb;

[0062] Step 3: The column storage unit transmits the row storage version Hscb and the column storage version Lscb to the data verification unit through the network. The data verification unit calculates the version difference ratio Bacb and transmits it to the processing output module.

[0063] Step 4: The processing output module compares the reference verification data set CK according to the version difference ratio Bacb jy , determine the synchronization status of the data row storage version number and the column storage version number, and the processing output module waits for the version update or outputs the query result according to the synchronization status.

[0064] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A high-speed writing and reading system for multiple data sources, characterized in that: It includes data demand module, central storage module and processing output module; The data demand module includes a writing demand unit, a reading demand unit and a security investigation unit. The writing demand unit collects the writing data set in real time through the network connection user end, numbers it, and transmits it to the security investigation unit through the network. The writing demand unit numbers the writing data set according to its characteristics. The writing data set is numbered as XR1, XR2, XR3, ...XR n The read demand unit collects the read data set in real time through the network connection user terminal, numbers it, and transmits it to the security investigation unit through the network. The read demand unit numbers the read data set according to its characteristics. The read data set is numbered as DQ1, DQ2, DQ3, ... DQ n The demand data set consists of a write data set and a read data set. The security investigation unit establishes a security investigation model Aqpc through a network connection database. The security investigation unit calculates the security demand data set Aqxu according to the demand data set and the security investigation model Aqpc. The calculation formula is as follows: In the formula, Aqxu represents the security requirement data set, f(XR)∈Aqpc represents that all sub-data in the write data set belong to the security screening model data set, and f(DQ)∈Aqpc represents that all sub-data in the read data set belong to the security screening model data set; The security investigation unit numbers the security write data set and the security read data set according to the characteristics of the security requirement data set Aqxu, and transmits them to the data requirement module through the network. The security write data set is numbered AXR1, AXR2, AXR3, ...AXR n , the secure read data sets are numbered ADQ1, ADQ2, ADQ3, ...ADQ n ; The security investigation unit transmits the security requirement data set Aqxu to the data requirement module through the network, and the data requirement module is connected to the central storage module through the network; The central storage module establishes a reference data set through a network connection database and numbers it. The reference data set consists of a reference row version model, a reference column version model and a reference verification data set. The central storage module numbers the reference row version model, the reference column version model and the reference verification data set according to the characteristics of the reference data set. The reference data set number is CK hs , CK ls and CK jy , the central storage module includes a row storage unit, a column storage unit and a data verification unit, the row storage unit calculates the row storage version number Hscb according to the security requirement data set Aqxu and the reference data set, and transmits it to the column storage unit through the network; The column storage unit calculates the column storage version number Lscb according to the security requirement data set Aqxu and the reference data set, and transmits it to the data verification unit through the network; The data verification unit calculates the version difference ratio Bacb according to the row-type storage version number Hscb and the column-type storage version number Lscb, and transmits the processed output module through the network; The central storage module is connected to the processing output module via a network; The processing output module compares the reference data set according to the version difference ratio Bacb to determine the synchronization between the row-type storage version number and the column-type storage version number. The processing output module compares the reference verification data set CK according to the version difference ratio Bacb. jy , determine the synchronization status of the data row storage version number and the column storage version number, the version difference ratio Bacb and the reference verification data set CK jy If they are the same, the query result column storage version number Lscb is directly output, and the version difference is Bacb and the reference verification data set CK jy If they are not the same, the processing output module controls the central storage module through the network connection to convert the backup data again, waiting for the row storage version number and the column storage version number to be updated and consistent again.

2. The reading method of a high-speed writing and reading system for multiple data sources according to claim 1, characterized in that: The following steps are involved: Step 1: The data demand module collects the demand data set in real time through the write demand unit and the read demand unit, and after numbering, generates the security demand data set Aqxu through the security investigation unit to clarify whether the user demand is to write storage data or query and read data; Step 2: When the user needs to write storage data, the row storage unit calculates the row storage version number Hscb, and then transmits it to the column storage unit for data conversion and backup. The column storage unit calculates the column storage version number Lscb. When the user needs to query and read data, only the column storage unit calculates the column storage version number Lscb; Step 3: The column storage unit transmits the row storage version number Hscb and the column storage version number Lscb to the data verification unit through the network. The data verification unit calculates the version difference ratio Bacb and transmits it to the processing output module. Step 4: The processing output module compares the reference verification data set CK according to the version difference ratio Bacb jy , determine the synchronization status of the data row storage version number and the column storage version number, and the processing output module waits for version update or outputs query results according to the synchronization status.

Citation Information

Patent Citations

  • Line and column hybrid storage method of database system

    CN103440245A

  • Column type memory storage and query device and column type memory storage and query method

    CN104750727A

  • Data storage and query method, device and equipment and computer storage medium

    CN111291037A

  • Data synchronization method and device, data reading method and device, electronic equipment, storage medium and product

    CN114328739A

  • Column storage indexing method and device based on nonvolatile memory

    CN116257523A