Data query method, device, system and equipment
By generating a scan operator and cache intermediate data in the data source in the data query system, the problem of low hit rate of data query cache in the prior art is solved, and the data volume and efficiency are reduced. It is suitable for various systems. Architecture.
Patent Information
- Application Number
- CN202310635789.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-05
- Filing Date
- 2023-05-31
- Publication Date
- 2024-11-05
AI Technical Summary
In the existing data query system, the hit rate of the data cache is low and it occupies a large storage space, which cannot effectively reduce the amount of data and improve query efficiency.
By generating a scan operator, obtain the required intermediate data from the data source according to the data query command and store it in the cache. Use the identification of the scan operator to directly obtain data from the cache, reduce the amount of cached data and increase cache hits Rate.
It effectively improves data query efficiency, reduces the amount of cached data, and increases the cache hit rate. It is suitable for different system architectures and expands application scenarios.
Smart Images

Figure CN118897845A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on May 5, 2023, with application number 202310506425.9 and invention name “A method for data caching in data processing”, the entire contents of which are incorporated by reference in this application. Technical Field
[0003] The present application relates to the field of cache technology, and in particular to a data query method, device, system and equipment. Background Art
[0004] In data query systems, data caching is usually used to speed up the data query process.
[0005] There are two common data caching methods: one is data-level data caching, which refers to directly caching the entire data table or the entire file involved in the query command. This method will take up a large storage space; the other is query-level data caching, which refers to caching the final query results of the query command. Although this method occupies less storage space, the cached data will only be used when the exact same query command is received again, resulting in a low cache hit rate. Summary of the invention
[0006] The present application provides a data query method, apparatus, system and device for reducing the amount of data in a cache and improving the cache hit rate.
[0007] In a first aspect, an embodiment of the present application provides a data query method, in which a first computing node receives a first data query command, where the first data query command is used to obtain a first query result from a data source.
[0008] After receiving the first data query command, the first computing node can generate a first scanning operator according to the first data query command. The first scanning operator describes the operation required to obtain the first data from the first data object in the data source. Among them, the first data is the data required to generate the first query result. The first scanning operator corresponds to the scanning operator A mentioned in the embodiment of the present application, and accordingly, the first data object corresponds to the data object A mentioned in the embodiment of the present application, and the first data corresponds to the data A mentioned in the embodiment of the present application. The first data can be part of the data in the first data object, and the first data can also be information determined based on part of the data or all of the data in the first data object, and the first data is only related to part of the data or all of the data in the first data object.
[0009] The first computing node obtains the first data from the cache according to the identifier of the first scanning operator; wherein the cache stores the identifier of the first scanning operator and the first data; the cache may be located at the first computing node or at a node other than the first computing node.
[0010] The first computing node obtains a first query result based on the first data. For example, the first computing node may calculate the first data to obtain the first query result.
[0011] Through the above method, when the first computing node needs to obtain the first data, the first computing node can directly obtain the first data from the cache, which effectively improves the data query efficiency. In addition, the first data in the cache is the data obtained from the first data object, rather than the entire first data object. Therefore, compared with the data cache at the data level, the amount of data in the cache of this solution can be effectively reduced. And because the first data is not the final first query result, the first data is the intermediate data required to generate the first query result. The first data comes from the first data object, rather than multiple different data objects, so that the reuse rate of the first data is higher. Therefore, compared with the query-level data cache, the cache hit rate of this solution is higher.
[0012] In a possible implementation, in a storage-computing separation architecture, the data source may be located at a storage node, the first computing node communicates with the storage node, and the first computing node and the storage node are deployed separately. In a storage-computing integration architecture, the data source is located at the first computing node, and the first computing node has both computing and storage functions.
[0013] Through the above method, the data query method mentioned in this application is applicable to different system architectures, effectively expanding the application scenarios.
[0014] In a possible implementation, the cache may be located on a first computing node or on a storage node; when the cache is located on a storage node, the first computing node may send a first cache query instruction to the storage node when it needs to obtain the first data, and the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries an identifier of a first scanning operator.
[0015] The storage node receives the first cache query instruction, and when determining that the first data is stored in the cache, feeds back the first data in the cache to the first computing node.
[0016] Through the above method, when the cache is located on the storage node, the first computing node can interact with the storage node to obtain the first data. Since the storage node has a large storage capacity, the amount of data that can be accommodated in the cache is further increased, ultimately ensuring that the first computing node can quickly obtain the first data from the storage node, thereby improving data query efficiency.
[0017] In a possible implementation, when the storage node feeds back the first data in the cache to the first computing node, the storage node sends a first cache query response to the first computing node, where the first cache query response carries the first data or a storage address of the first data in the cache.
[0018] Through the above method, the storage node can feed back the first data in the cache to the first computing node in a more flexible manner, and directly feeding back the first data can ensure that the first computing node obtains the first data in a timely manner. Feedback of the storage address of the first data in the cache can reduce the amount of information exchanged between the first computing node and the storage node, and the first computing node can use the performance advantage of the first computing node to obtain the first data from the cache using the storage address of the first data in the cache.
[0019] In a possible implementation, the cache stores multiple entries, each of which includes an identifier of a scan operator and data corresponding to the scan operator. The data corresponding to the scan operator is data obtained from a data object in a data source using the scan operator. The multiple entries include a target entry, and the target entry includes an identifier of a first scan operator and first data.
[0020] The storage node can query the target entry from the cache according to the identifier of the first scan operator, and determine that the first data is stored in the cache. The target entry can be a key-value pair, wherein the identifier of the first scan operator can be a key in the key-value pair, and the first data can be a value in the key-value pair.
[0021] Through the above method, the identifiers of the scanning operators and the corresponding data are organized in the cache in the form of entries, and the storage form is relatively simple, so that the first data can be quickly found using the identifier of the first scanning operator.
[0022] In a possible implementation, the first computing node may generate a second scan operator based on the first data query command, and the second scan operator describes the operation required to obtain the second data from the second data object in the data source. The second scan operator corresponds to the scan operator B mentioned in the embodiment of the present application, and accordingly, the second data object corresponds to the data object B mentioned in the embodiment of the present application, and the second data corresponds to the data B mentioned in the embodiment of the present application. The second data may be part of the data in the second data object, and the second data may also be information determined based on part of the data or all of the data in the second data object, and the second data is only related to part of the data or all of the data in the second data object.
[0023] When the first computing node determines that the second data is stored in the cache according to the identifier of the second scanning operator, the first computing node obtains the second data from the cache. The manner in which the second computing node determines that the second data is stored in the cache according to the identifier of the second scanning operator and obtains the second data is similar to the manner in which the second computing node obtains the first data from the cache according to the identifier of the second scanning operator. For details, please refer to the above description, which will not be repeated here.
[0024] When the first computing node determines, according to the identifier of the second scanning operator, that the second data is not stored in the cache, the first computing node obtains the second data from the data source according to the second scanning operator.
[0025] The method for the first computing node to obtain the data corresponding to any scan operator generated by the first data query command can be the same as the method for obtaining the second data corresponding to the second scan operator.
[0026] Through the above method, the first computing node obtains the data corresponding to any scanning operator in a corresponding manner under different circumstances, ensuring that the first computing node can effectively obtain the data, and finally obtain the first query result.
[0027] In a possible implementation, when the first computing node obtains the first query result, if the first data query command can generate a scan operator, such as only generating the first scan operator, then the first data is the first query result. If the first data query command can generate multiple scan operators, such as generating the first scan operator and the second scan operator, the first computing node can generate the first query result based on the data corresponding to the multiple scan operators. For example, the first computing node can merge the data corresponding to the multiple scan operators to obtain the first query result.
[0028] Here, it is assumed that the multiple scan operators generated by the first data query command include a first scan operator and a second scan operator, and the first computing node obtains a first query result according to the first data and the second data. For example, the first computing node merges the first data and the second data to obtain the first query result.
[0029] Through the above method, the first computing node can generate the first query result according to the data corresponding to each scanning operator. It can be seen that the data corresponding to the scanning operator is not the final first query result, but only the intermediate data for generating the first query result. The intermediate data is stored in the cache, and the intermediate data can be used when generating other query results, thereby improving the data reuse rate in the cache.
[0030] In a possible implementation, when the first computing node determines whether the second data is stored in the cache based on the identifier of the second scanning operator, the first computing node may send a second cache query instruction to the storage node, where the second cache query instruction is used to request to obtain the second data from the cache, and the second cache query instruction carries the identifier of the second scanning operator.
[0031] When the storage node determines, according to the identifier of the second scanning operator, that the second data is not stored in the cache, the storage node sends a second cache query response to the first computing node, where the second cache query response is used to indicate that the second data is not stored in the cache.
[0032] Through the above method, the first computing node can promptly and quickly determine whether the second data is stored in the cache by exchanging with the storage node.
[0033] In a possible implementation, the first computing node stores the second data and the identifier of the second scanning operator in the cache according to the data caching strategy. The data caching strategy may be generated by the first computing node. For example, the first computing node determines the data caching strategy based on the historical query situation of the second data. The data caching strategy may be generated by the storage node (such as the storage node determines the data caching strategy based on the historical query situation of the second data). The storage node may feedback the data caching strategy to the first computing node when it is determined that the second data is not stored in the cache. Exemplarily, the data caching strategy may be carried in the second cache query response.
[0034] Through the above method, the first computing node can store the second data in the cache, so that the first computing node or other computing nodes can directly obtain the second data from the cache later.
[0035] In a possible implementation, when the cache is located in a storage node, other computing nodes may also obtain data from the cache. Here, the other computing node is a second computing node, and the data that the second computing node needs to obtain is the second data.
[0036] The second computing node receives a second data query command, where the second data query command is used to obtain a second query result from the data source.
[0037] The second computing node obtains the second data from the cache according to the identifier of the second scanning operator; wherein the second scanning operator is generated based on the second data query command; and the second computing node obtains the second query result based on the second data.
[0038] Through the above method, different computing nodes obtain data from the cache, that is, the cache is provided to each computing node, which is convenient for improving the data query efficiency of different computing nodes.
[0039] In a possible implementation, the storage node eliminates data in the cache or writes data in the cache according to historical query conditions of the first computing node on the data in the data source.
[0040] The embodiments of the present application do not limit the triggering method of the storage node writing data in the cache and the method of writing data in the cache.
[0041] For example, the storage node can actively trigger the writing of data in the cache, that is, the storage node decides which data to write into the cache. When writing data in the cache, the storage node can write the data (and the corresponding scan operator identifier) into the cache by itself, or notify the computing node to write the data (and the corresponding scan operator identifier) into the cache, and use the performance advantage of the computing node to achieve data writing. The specific implementation method is similar to the method in which the storage node notifies the computing node to write data A into the cache in the embodiment of the present application, and will not be repeated here.
[0042] For another example, a computing node can trigger a storage node to write data in a cache. The computing node can decide which data to write into the cache (e.g., the computing node determines which data needs to be written into the cache based on the historical query of the data). The computing node can send an instruction to the storage node for requesting to write data into the cache. The instruction can carry the data and the identifier of the scanning operator. After receiving the instruction, the storage node can write the data and the identifier of the scanning operator into the cache.
[0043] Through the above method, the data in the cache can be eliminated and written, ensuring that the cache can store more data with higher access frequency, and ensuring that the computing nodes (such as the first computing node and the second computing node) can obtain more data from the cache.
[0044] In a possible implementation, when the first computing node obtains the first data from the cache according to the identifier of the first scanning operator, the first computing node can obtain the data shard identifier of the first data, and the data shard identifier of the first data indicates each data shard of the first data in the current data source.
[0045] After determining that each data shard indicated by the data shard identifier is consistent with each data shard of the first data stored in the cache, the first computing node obtains all data shards of the first data in the cache.
[0046] Through the above method, since the first data in the data source may change, the first data in the data source and the first data in the cache may be inconsistent. Before obtaining the first data in the cache, the first computing node can first use the data shard identifier to determine whether the first data in the data source is consistent with the first data in the cache. If they are consistent, the first data in the cache can be obtained, thereby ensuring that the first computing node can obtain the correct first data from the cache.
[0047] In a possible implementation, when the first computing node obtains the first data from the cache according to the identifier of the first scanning operator, the first computing node obtains the data shard identifier of the first data, and the data shard identifier of the first data indicates each data shard of the first data stored in the current data source.
[0048] After determining that the data shards indicated by the data shard identifier are partially consistent with the data shards of the first data in the cache, the first computing node extracts the first data shard from the first data in the cache, the first data shard being the data shard consistent with the data shards indicated by the data shard identifier, and obtains the second data shard from the data source according to the first scanning operator, the second data shard being the data shard inconsistent with the data shards indicated by the data shard identifier.
[0049] The first computing node merges the first data slice and the second data slice to obtain first data.
[0050] Through the above method, when the first computing node uses the data shard identifier to determine that the first data in the data source is not completely consistent with the first data in the cache, it obtains the corresponding shards from the cache and the data source respectively, ensuring that the first computing node can obtain the correct first data.
[0051] In a second aspect, an embodiment of the present application provides a data caching method, which can be executed by a storage node, on which a data source and a cache are deployed. The beneficial effects can be found in the relevant description of the first aspect. No further description is given here.
[0052] The storage node receives a first cache query instruction from the first computing node, the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries the identifier of the first scanning operator. The storage node determines whether the first data is stored in the cache according to the identifier of the first scanning operator, and when it is determined that the first data is stored in the cache, the storage node feeds back the first data in the cache to the first computing node.
[0053] Among them, the first scanning operator is generated based on the first data query command received by the first computing node, the first data query command is used to obtain the first query result from the data source, the first scanning operator describes the operation required to obtain the first data from the first data object in the data source, and the first data is used by the first computing node to generate the first query result.
[0054] In a possible implementation, when determining that the first data is stored in the cache, the storage node sends a first cache query response to the first computing node, where the first cache query response carries the first data or a storage address of the first data in the cache.
[0055] In a possible implementation, the cache stores multiple entries, each of which includes an identifier of a scan operator and data corresponding to the scan operator. The data corresponding to the scan operator is data obtained from a data object in a data source using the scan operator. The multiple entries include a target entry, and the target entry includes an identifier of a first scan operator and first data. The storage node queries the target entry from the cache according to the identifier of the first scan operator, and determines that the first data is stored in the cache.
[0056] In one possible implementation, the storage node may receive a second cache query instruction sent by the first computing node, where the second cache query instruction is used to request to obtain the second data from the cache, and the second cache query instruction carries an identifier of a second scan operator; when the storage node determines that the second data is not stored in the cache based on the identifier of the second scan operator, the storage node sends a second cache query response to the first computing node, where the second cache query response is used to indicate that the second data is not stored in the cache.
[0057] In a possible implementation, the storage node may also send a data cache policy to the first computing node, where the data cache policy indicates that the second data and the identifier of the second scanning operator are stored in the cache. The data cache policy may be carried in the second cache query response.
[0058] In a possible implementation, the storage node eliminates data in the cache or writes data in the cache according to historical query conditions of the first computing node on the data in the data source.
[0059] In a third aspect, the embodiment of the present application further provides a data query device, which has the function of implementing the first computing node behavior in the method example of the first aspect above, and the beneficial effects can be found in the description of the first aspect and will not be repeated here. The data query device includes a query engine and an execution engine.
[0060] A query engine is used to receive a first data query command, the first data query command is used to obtain a first query result from a data source, and determine whether the first data is stored in a cache according to an identifier of a first scan operator; the first scan operator is generated based on the first data query command, the first scan operator describes the operation required to obtain the first data from a first data object in the data source, and the cache stores the identifier of the first scan operator and the first data.
[0061] The execution engine is used to obtain the first data from the cache and obtain the first query result based on the first data.
[0062] In a possible implementation, the data source is located on a storage node that communicates with the data query device, and the data query device is deployed separately from the storage node.
[0063] In a possible implementation, the cache stores multiple entries, each of which includes an identifier of a scan operator and data corresponding to the scan operator. The data corresponding to the scan operator is data obtained from a data object in a data source using the scan operator. The multiple entries include a target entry, and the target entry includes an identifier of a first scan operator and first data.
[0064] In a possible implementation, the cache may be located on the node where the data query device is located, or on the storage node; when the cache is located on the storage node, the query engine sends a first cache query instruction to the storage node, the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries the identifier of the first scanning operator. The execution engine obtains the first data in the cache fed back by the storage node.
[0065] In a possible implementation, after sending the first cache query instruction, the query engine may receive a first cache query response sent by the storage node, where the first cache query response carries the first data or a storage address of the first data in the cache.
[0066] When the execution engine obtains the first data in the cache fed back by the storage node, it can obtain the first data carried in the first cache query response from the query engine. The execution engine can also obtain the storage address of the first data in the cache from the query engine, and then obtain the first data from the cache according to the storage address of the first data in the cache.
[0067] In one possible implementation, the query engine generates a second scan operator based on the first data query command, where the second scan operator describes the operation required to obtain the second data from the second data object in the data source; and determines whether the second data is stored in the cache according to the identifier of the second scan operator.
[0068] The execution engine obtains the second data from the cache when the second data is stored in the cache; and obtains the second data from the data source according to the second scanning operator when the second data is not stored in the cache.
[0069] In one possible implementation, when the query engine determines whether the second data is stored in the cache based on the identifier of the second scan operator, the query engine sends a second cache query instruction to the storage node, where the second cache query instruction is used to request to obtain the second data from the cache, and the second cache query instruction carries the identifier of the second scan operator; the query engine receives a second cache query response sent by the storage node, where the second cache query response is used to indicate that the second data is not stored in the cache.
[0070] In a possible implementation, the execution engine may store the second data and the identifier of the second scan operator in the cache according to a data cache strategy. The data cache strategy may be generated by the query engine, the execution engine, or a storage node in feedback, and the data cache strategy may be carried in the second cache query response.
[0071] In one possible implementation, when acquiring the first data in the cache, the execution engine may acquire a data shard identifier of the first data, where the data shard identifier of the first data indicates each data shard of the first data in the current data source; after determining that each data shard indicated by the data shard identifier is consistent with each data shard of the first data stored in the cache, the execution engine acquires all data shards of the first data in the cache.
[0072] In a possible implementation, when acquiring the first data in the cache, the execution engine may acquire a data shard identifier of the first data, where the data shard identifier of the first data indicates each data shard of the first data stored in the current data source.
[0073] After determining that each data shard indicated by the data shard identifier is partially consistent with each data shard of the first data in the cache, the execution engine extracts a first data shard from the first data in the cache, the first data shard being a data shard consistent with each data shard indicated by the data shard identifier among each data shard of the first data in the cache, and acquires a second data shard from the data source according to the first scanning operator, the second data shard being a data shard inconsistent with each data shard indicated by the data shard identifier among each data shard of the first data in the cache;
[0074] The execution engine merges the first data slice and the second data slice to obtain the first data.
[0075] In a fourth aspect, the embodiment of the present application further provides a data cache device, which has the function of implementing the behavior in the method example of the second aspect above. The beneficial effects can be found in the description of the first aspect and will not be repeated here. The data cache device includes a cache server, a cache, and a data source. The data cache device is deployed separately from the first computing node.
[0076] The cache server receives a first cache query instruction from a first computing node, the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries the identifier of the first scan operator; when it is determined that the first data is stored in the cache, the first data in the cache is fed back to the first computing node. The first scan operator is generated based on the first data query command received by the first computing node, the first data query command is used to obtain the first query result from the data source, the first scan operator describes the operation required to obtain the first data from the first data object in the data source, and the first data is used by the first computing node to generate the first query result.
[0077] In a possible implementation, when the cache server feeds back the first data in the cache to the first computing node, it may send a first cache query response to the first computing node, where the first cache query response carries the first data or the storage address of the first data in the cache.
[0078] In one possible implementation, the cache stores multiple entries, the multiple entries include a target entry, the target entry includes an identifier of a first scanning operator and first data, and the cache server can query the target entry from the cache according to the identifier of the first scanning operator to determine that the first data is stored in the cache.
[0079] In a possible implementation, the cache server may also receive a second cache query instruction sent by the first computing node, where the second cache query instruction is used to request to obtain second data from the cache, and the second cache query instruction carries an identifier of a second scanning operator.
[0080] When the cache server determines, according to the identifier of the second scanning operator, that the second data is not stored in the cache, it sends a second cache query response to the first computing node, where the second cache query response is used to indicate that the second data is not stored in the cache.
[0081] In a possible implementation, the cache server may also send a data cache policy to the first computing node, where the data cache policy indicates that the second data and the identifier of the second scanning operator are stored in the cache.
[0082] In a possible implementation, the cache server eliminates data in the cache or writes data in the cache according to historical query conditions of the first computing node on the data in the data source.
[0083] In a fifth aspect, the present application further provides a computing system, the computing system comprising a first computing node and a storage node, the first computing node being used to execute the method executed by the first computing node in the first aspect and each possible implementation of the first aspect. The storage node is used to execute the method executed by the storage in the first aspect and each possible implementation of the first aspect.
[0084] In a possible implementation manner, the computing node further includes a second computing node, and the second computing node is used to execute the method executed by the second computing node in the first aspect and various possible implementation manners of the first aspect.
[0085] In a sixth aspect, the present application further provides a computing device, which may be the first computing node, storage node, or second computing node in the method example in the first aspect and each possible implementation mode of the first aspect. The memory is used to store computer program instructions. The computing device may be any of the following three types:
[0086] 1. The processor calls the computing node program instructions in the memory, which has the function of implementing the first computing node in the method instance of the above-mentioned first aspect or any possible implementation method of the first aspect. The beneficial effects can be found in the description of the first aspect and will not be repeated here.
[0087] 2. The processor calls the computing node program instructions in the memory, which has the function of implementing the second computing node in the method instance of the above-mentioned first aspect or any possible implementation method of the first aspect. The beneficial effects can be found in the description of the first aspect and will not be repeated here.
[0088] 3. The processor calls the computing node program instructions in the memory, which can have the function of implementing the storage node in the method instance of the above-mentioned first aspect or any possible implementation method of the first aspect. The beneficial effects can be found in the description of the first aspect and will not be repeated here.
[0089] In the seventh aspect, the present application also provides a computing device cluster, which includes at least one computing device, which can be the first computing node, storage node, or second computing node in the method instance in the first aspect and each possible implementation of the first aspect. Any computing device includes a processor and a memory, and the memory is used to store computer program instructions. The processor calls the computing node program instructions in the memory, and has the functions of implementing the first aspect or any possible implementation of the first aspect. The first computing node, storage node, and second computing node in the method instance of the first aspect or the first aspect are partially or completely implemented. The beneficial effects can be found in the description of the first aspect and will not be repeated here.
[0090] In an eighth aspect, the present application further provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, the computer executes the method in the above-mentioned first aspect and various possible implementations of the first aspect.
[0091] In a ninth aspect, the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the above-mentioned first aspect and various possible implementations of the first aspect.
[0092] In the tenth aspect, the present application also provides a computer chip, which is connected to a memory, and the chip is used to read and execute a software program stored in the memory to execute the methods in the above-mentioned first aspect and various possible implementation methods of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figures 1A to 1C A schematic diagram of a directed acyclic graph representing a query plan provided in this application;
[0094] Figure 2 A schematic diagram of the structure of a data query system provided for this application;
[0095] Figure 3 A schematic diagram of the structure of a data query system provided for this application;
[0096] Figure 4 A schematic diagram of a data query method provided for this application;
[0097] Figure 5 A schematic diagram of data in a cache and data in a data source provided for this application. DETAILED DESCRIPTION
[0098] Before describing a data query method, system, and device provided in the embodiments of the present application, some concepts involved in the embodiments of the present application are first described.
[0099] (1) Storage and computing separation architecture and storage and computing integrated architecture.
[0100] The storage-computing separation architecture refers to the separation of computing functions and storage functions. Compute nodes with computing functions and storage nodes with storage functions are deployed separately in the system. The computing nodes undertake the main computing functions, and the storage nodes are mainly used to store data.
[0101] In a system based on the storage-computing separation architecture, computing nodes can perform processing operations on data, while the data to be processed and the processed data can be stored in the storage nodes. When the computing node needs to process data, it obtains the data from the storage node. After the data processing is completed, the processed data can be stored in the storage node. Under the storage-computing separation architecture, computing nodes can effectively use their own computing resources to implement more complex data processing operations, and storage nodes use their own large storage capacity to provide data support for computing nodes.
[0102] In an embodiment of the present application, a data query system can be constructed based on a storage-computing separation architecture. In the data query system based on the storage-computing separation architecture, the computing node receives a data query command, queries data from a storage node (such as a data source of the storage node) according to the data query command, and generates a final query result. In the data query system based on the storage-computing separation architecture, the computing node or the storage node can cache data. For example, the computing node can store data that is accessed frequently or data that may be accessed later on the computing node side. For another example, in order for the computing node to obtain data faster, the storage node can cache data that is frequently accessed by the computing node or data that may be accessed later.
[0103] The concept opposite to the storage-computing separation architecture is the storage-computing integration architecture. Storage-computing integration means that the computing function and the storage function are integrated. The nodes in the system based on the storage-computing integration architecture have both computing and storage functions. In this system, there is no distinction between computing nodes and storage nodes. The nodes in the system based on the storage-computing integration architecture can perform data processing operations, and the data to be processed and the processed data can be stored on the node.
[0104] In an embodiment of the present application, the data query system may also adopt a storage-computing integrated architecture. In a data query system built based on the storage-computing integrated architecture, a node receives a data query command, queries data from a data source deployed on the node according to the data query command, and generates a final query result. In the data query system of the storage-computing integrated architecture, the node may cache data. For example, the node may store data with a high access frequency or data that may be accessed later.
[0105] (2) Query plan, scan operator, and data merge operator.
[0106] A query plan refers to a series of operations that need to be performed in order to query data. Any data query command can be converted into a query plan. A query plan is a type of information that can be recognized by the node that processes the data query command (such as the computing node in the data query system of the storage-computing separation architecture or the node in the data query system of the storage-computing integration architecture) and needs to be generated to process the data query command. A query plan can also be called an execution plan.
[0107] The query plan can be viewed as a tree-like "operation" graph consisting of a series of operations. Each node in the operation graph represents an operation. The query plan starts from the bottom node and moves upwards until it reaches the top node. The data obtained after reaching the top node is the query result.
[0108] The query plan can be converted into a directed acyclic graph (DAG), such as Figure 1A to Figure 1C As shown, a directed acyclic graph representing a query plan is exemplarily shown. Figure 1A to Figure 1C The circle in the figure indicates the operation to be performed, and the line with an arrow indicates the direction of execution. Figure 1A to Figure 1C They are all executed from the bottom node in sequence until they reach the top node.
[0109] Figure 1A The query plan represented by the directed acyclic graph shown is a relatively simple query plan, which contains only one "operation" chain. The execution process of this query plan is roughly as follows: determine the data object from the data source, perform a series of operations on the determined data object, and obtain the final query result. For the concepts of data source and data object, please refer to the description below.
[0110] Compared to Figure 1A The directed acyclic graph shown, Figure 1B The structure of the directed acyclic graph shown is more complex, Figure 1B The query plan represented by the directed acyclic graph shown contains two "operation" chains. The two "operation" chains will converge at a certain node. The execution process of the query plan is roughly as follows: determine the data objects corresponding to the two operation chains from the data source, perform a series of operations on the corresponding data objects in each operation chain, and then merge the different data obtained after the two operation chains complete the processing, and finally obtain the final query result.
[0111] Compared to Figure 1A as well as Figure 1B The directed acyclic graph shown, Figure 1C The structure of the directed acyclic graph shown is more complex, Figure 1C The query plan represented by the directed acyclic graph shown in the figure contains four "operation" chains (as marked in the figure: chain 1, chain 2, chain 3, and chain 4). Chain 1 and chain 2 will merge at a certain node; after merging, they will merge with chain 3. After merging with chain 3, they will merge with chain 4 for merging.
[0112] It can be seen that the query plan involves two types of operators. One operator is a single operation chain. After this type of operator determines the data object from the data source, it can perform a series of operations on the data object, such as filtering, column pruning, row pruning, mapping, aggregation, counting, etc. In the embodiment of the present application, this type of operator is called a scanning operator. The other operator is a single operation chain that needs to perform aggregation and merging operations. This type of operator can merge multiple operation chains, or merge multiple operation chains and then merge one or more other operation chains. In the embodiment of the present application, this type of operator is called a data merging operator. Figure 1B In , the operation of merging two operation chains is called data merging operator. Figure 1C In the example, the operation of merging chain 1 and chain 2 is called a data merging operator. The operation of merging the data after merging chain 1 and chain 2 with chain 3 is also called a data merging operator.
[0113] Figures 1A to 1C In the figure, the white circular icons represent the operations included in the scan operator, and the black circular icons represent the operations included in the data merge operator.
[0114] The query plan includes at least one scan operator. When the query plan includes multiple scan operators, the query plan also includes at least one data merge operator.
[0115] (3) Data source and cache store.
[0116] A data source refers to a collection of data. In a storage-computing separation architecture, the data source can be deployed in a storage node. The organization granularity of data in a data source is called a data object. The data object can be a data table, which means that the data in the data source is organized in the form of a dimension table, and the data source includes multiple data tables. The data object can also be a file, which means that the data in the data source is organized at the granularity of a file, and the data source includes multiple files. Of course, in some scenarios, the data objects in the data source can also be in the form of a mixture of multiple granularities, such as a data source that organizes the data in the data source at a mixed granularity of a data table and a file.
[0117] The data object may also be unstructured data, such as jason, document, etc. The embodiment of the present application does not limit the specific type of the data object.
[0118] In an embodiment of the present application, a cache refers to a data set that stores part of the data in a data source, and the part of the data may be data that may need to be queried later or data that is queried more frequently. Specifically, the cache may include multiple entries, each of which includes an identifier of a scan operator and data corresponding to the scan operator. Taking one of the multiple entries as an example, assuming that the scan operator included in the entry is scan operator A, the entry includes the identifier of scan operator A and data A corresponding to the scan operator A. Among them, scan operator A describes the operation to be performed to obtain the data from a data object (such as data object A) in the data source. Therefore, it can be understood that the data corresponding to each scan operator in the cache is usually partial data of a data object in the data source; for example, in the above example, data A is partial data of data object A, and specifically, data A is the data obtained after performing the operation of scan operator A (such as filtering, clipping, etc.) on data object A. The identifier of the scan operator is used to identify the scan operator, and the identifier of the scan operator is unique, and different scan operators have different identifiers. The above entries may be expressed as a key-value pair, wherein the identifier of the scanning operator is the key in the key-value pair, and the data corresponding to the scanning operator is the value in the key-value pair.
[0119] The space for storing the above-mentioned cache and data source can be understood as storage space. In the integrated storage and computing architecture, the storage space can be located on the hard disk of the computing node, or it can be located on the memory of the computing node, or it can be located in part on the memory of the computing node, and in part on the hard disk of the computing node, for example, the cache is located on the memory, and the data source is located on the hard disk. In the architecture of storage and computing separation, the cache and the data source are usually located on the storage node, and of course, the cache can also be located on the computing node. In the case where the cache and the data source are both located on the storage node, the embodiment of the present application does not limit the deployment location of the cache and the data source on the storage node. For the convenience of explanation, in the embodiment of the present application, directly reading data from the cache or the data source or writing data represents the process of reading data from the storage node or writing data. It should be understood that reading data from the cache or the data source or writing data is essentially reading data from a storage device such as a hard disk or a memory or writing data.
[0120] (3) Data sharding and data shard identification.
[0121] The data object in the data source may include multiple data shards. The data shards can be understood as further divisions of the data object. The data shards are data with a smaller granularity than the data object. The division method of the data shards in the data object and the size of the data shards are related to a series of operations on the data object in the query plan. The embodiments of the present application do not limit the number of data shards included in the data object and the size of each data shard.
[0122] Therefore, for a data object, the data in the data object (such as data A, data B, etc. mentioned in the embodiments of the present application) may also include one or more data fragments.
[0123] The data in the data source can be updated. From the perspective of data sharding, the data in the data source is updated when some or all of the data shards included in the data in the data source are updated. The ways of updating data include but are not limited to: adding data shards, reducing data shards, and modifying data shards.
[0124] Since the data corresponding to a scan operator in the cache is part of the data of a data object in the data source, the data corresponding to a scan operator stored in the cache also includes one or more data shards. When the data in the data source does not change, the data shards included in the data in the data source and the data shards included in the data stored in the cache are consistent. If the data in the data source changes, if the data stored in the cache cannot be synchronized and updated in a timely manner, the data shards included in the data in the data source and the data shards included in the data stored in the cache may be completely inconsistent or partially inconsistent.
[0125] In addition to each data shard in the stored data, the cache also stores the sub-identifier of each data shard. The sub-identifier of each data shard in the cache is generated based on the metadata (matadata) of each data shard (which can be all or part of the data in the metadata). It should be noted here that the metadata of the data shard used to generate the sub-identifier of each data shard in the cache is the metadata of the data shard when the data shard is written to the cache. At this time, the metadata of the data shard used describes the properties of the data shard located in the data source when the data shard is written to the cache (such as the length, name, modification record, etc. of the data shard).
[0126] In the cache, each data shard and its data shard identifier can be organized in the form of a key-value pair (key value, KV), where the data shard identifier is the key (key, K) in the key-value pair, and the data shard itself is the value corresponding to the key (value, V).
[0127] In addition, in an embodiment of the present application, under the storage-computing separation architecture, the storage node provides metadata services to the computing node. The storage node can provide the metadata of each data shard in the data source to the computing node. The metadata of each data shard is used to describe the attributes of the data shard in the data source, such as name, length, modification record and other information. It should be noted that the metadata of each data shard provided by the storage node describes each data shard in the data source, not each data shard in the cache. When the data in the data source is updated, the metadata of some or all of the data shards of the data will also change. At this time, the data shards described by the metadata of some or all of the data shards of the data may be different from the data shards of the data in the cache.
[0128] In the storage-computing integrated architecture, the storage function and the computing function are concentrated in one node. The cache and the data source are located on this node. The node can directly obtain the metadata of each data shard of the data and the data shard identifier of the data. Then, it determines whether the data in the cache is consistent with the data in the data source based on the data shard identifier of the data.
[0129] like Figure 2 As shown, a data query system provided in an embodiment of the present application is formed with a storage and computing separation architecture. The so-called "storage and computing separation" means that two different nodes are independently set in the data query system to respectively realize computing functions and storage functions. Figure 2 Only a data query system under the storage and computing separation architecture is shown as an example. The data update method provided in the embodiment of the present application is also applicable to other data query systems under the storage and computing separation architecture.
[0130] Figure 2 In the data query system, the data query system includes a computing node 110 cluster and a storage node 100 cluster. The computing node 110 cluster includes one or more computing nodes 110 ( Figure 2 1 shows three computing nodes 110, but is not limited to three computing nodes 110), and each computing node 110 can communicate with each other. The computing node 110 is a computing device, such as a server, a desktop computer, or a controller of a storage array. In terms of hardware, Figure 2As shown, the computing node 110 includes at least a processor 111, a memory 112 and a network card 113. The processor 111 is a central processing unit (CPU), and may also be an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 111 is capable of processing a data query command (such as a first data query command or a second data query command) from outside the computing node 110, or a data query command generated inside the computing node 110. The processor 111 is capable of generating a query plan including one or more scan operators (such as including scan operator A) according to the received data query command.
[0131] The processor 111 obtains the data corresponding to each scan operator according to the query plan. Take the example of the processor 111 obtaining the data A corresponding to the scan operator A: the processor 111 initiates a cache query instruction carrying the identifier of the scan operator A to the storage node 100 to determine whether the cache stores the data A.
[0132] When data A is stored in the cache, the processor 111 may directly obtain data A from the cache. Specifically, the processor 111 may directly obtain data A stored in the cache fed back by the storage node 100, or read data A from the cache according to the storage address of data A in the cache fed back by the storage node 100.
[0133] When data A is not stored in the cache, the processor 111 may obtain data A from data object A of the data source based on the scan operator A. Afterwards, the processor 111 may also write the obtained data A and the identifier of the scan operator A corresponding to the data A into the cache.
[0134] Figure 2 Only one processor 111 is shown in the figure. In actual applications, there are often multiple processors 111, wherein one processor 111 may have one or more processor cores. This embodiment does not limit the number of processors and the number of processor cores.
[0135] The processor 111, the memory 112 and the network card 113 are connected via a bus, which may be a peripheral component interconnect express (PCIe) bus, a compute express link (CXL), a universal serial bus (USB) protocol or other protocol bus.
[0136] The memory 112 refers to an internal memory that directly exchanges data with the processor 111. The memory includes at least one memory, for example, the memory can be either a random access memory or a read-only memory (ROM). For example, the random access memory is a dynamic random access memory (DRAM) or a storage class memory (SCM). The memory 112 can also include other random access memories, such as a static random access memory (SRAM), a read-only memory, etc. As for the read-only memory, it can be a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), etc. The memory 112 can also be a dual in-line memory module or a dual-line memory module (DIMM), or a solid state disk (SSD).
[0137] The network card 113 is used to communicate with the storage node 100. For example, the computing node 110 can send a cache query instruction (such as a first cache query instruction or a second cache query instruction) to the storage node 100 through the network card 113. The computing node 110 can also interact with the storage node 100 through the network card 113 to obtain data from a data source. The computing node 110 can also interact with the storage node 100 through the network card 113 to read data from the cache or write data in the cache.
[0138] In addition, the computing node 110 may also include a bus for communication between components within the computing node 110. Figure 2The main function of the computing node 110 is computing. When storing data, the storage node 100 can be used to implement persistent storage. In actual implementation, the computing node 110 can also have a small number of hard disks built in, or a small number of external hard disks.
[0139] Any computing node 110 can access any storage node 100 in the storage node 100 cluster through the network. The storage node 100 cluster includes multiple storage nodes 100 ( Figure 2 Three storage nodes 100 are shown in the figure, but are not limited to three storage nodes 100). A storage node 100 includes one or more control units 101, a network card 102 and multiple hard disks 103. The network card 102 is used to communicate with the computing node 110. The hard disk 103 is used to store data and can be a disk or other type of storage medium, such as a solid-state drive or a shingled magnetic recording hard disk. The data source and cache involved in the embodiments of the present application can be deployed in the hard disk 103, that is, the hard disk 103 can be used to store data in the data source and data in the cache.
[0140] In the embodiment of the present application, the control unit 101 is the control center of the storage node 100. The control unit 101 can process the cache query instruction from the computing node 110, and feedback the cache query response (such as the first cache query response or the second cache query response) to the computing node 110, such as feedback through the cache query response the data A requested by the computing node to be queried from the cache, or feedback the storage address of the data A in the cache, and also inform the computing node 110 that the data A is not cached in the cache, or inform the computing node 110 of the data cache strategy. In addition, the control unit 101 can also interact with the computing node 110 to support the computing node 110 to read data from the cache or store data in the cache, or support the computing node 110 to query data from the data source. It can be seen that the control unit 101 has some simple computing functions.
[0141] The control unit 101 includes a processor and a memory. The processor is used to perform operations such as address conversion and reading and writing data. The memory is used to temporarily store data to be written to the hard disk 103, or read from the hard disk 103 to be sent to the computing node 110, and can also be used to store part or all of the data in the cache. The embodiment of the present application does not limit the specific type of processor in the control unit 101. For example, the processor can be a processing chip such as a CPU, a data processing unit (DPU), a graphics processing unit (GPU), an embedded neural network processor (NPU), etc. In general, the number of control units 101 can be one, or two or more. When the storage node 100 includes at least two control units 101, there is an ownership relationship between the hard disk 103 and the control unit 101, and each controller can only access the hard disk belonging to it.
[0142] In another embodiment, the functions of the control unit 101 can be offloaded to the network card 102. In other words, Figure 2 In the illustrated implementation, the storage node 100 does not have a control unit 101 inside, but the network card 102 performs data reading and writing, address conversion, and other computing functions. At this time, the network card 102 is an intelligent network card. It may include a processor and a memory. The processor of the network card 102 is used to perform operations such as address conversion and reading and writing data. The memory of the network card 102 is used to temporarily store data to be written to the hard disk 103, or read from the hard disk 103 to be sent to the computing node 110, and can also be used to store part or all of the data in the cache. The processor may be a CPU, DPU, GPU, NPU or other processing chip. There is no ownership relationship between the network card 102 and the hard disk 103 in the storage node 100, and the network card 102 can access any hard disk 103 in the storage node 100.
[0143] The embodiment of the present application is described by taking the storage node including the control unit 101 and the network card 102 as an example. The embodiment of the present application is also suitable for the scenario where the functions of the control unit 101 can be offloaded to the network card 102. In this scenario, the network card 102 can perform the operations performed by the control unit 101 in the embodiment of the present application. The operations performed by the network card 102 in this scenario are no longer described here. For details, please refer to the operations performed by the control unit 101.
[0144] In an embodiment of the present application, when the computing node 110 receives a data query command (such as a first data query command and a second data query command), a query plan is generated. For any scan operator included in the query plan, the computing node 110 may first send a cache query instruction (such as a first cache query instruction and a second cache query instruction) to the storage node 100 to request to obtain the data corresponding to the scan operator from the cache. The cache query instruction carries the identifier of the scan operator, and the scan operator describes the operation to be performed to obtain the data from the data object in the data source. After receiving the cache query instruction, the storage node 100 queries the cache according to the identifier of the scan operator, and after determining that the cache stores the data corresponding to the scan operator, the data corresponding to the scan operator in the cache is fed back to the computing node 110. The storage node 100 queries the cache according to the identifier of the scan operator, and after determining that the cache does not store the data corresponding to the scan operator, it notifies the computing node 110 that the cache does not store the data corresponding to the scan operator, and the computing node 110 can obtain the data corresponding to the scan operator from the data object in the data source according to the scan operator.
[0145] A scan operator describes the operation to be performed to obtain data from a data object in a data source, that is, generally speaking, the scan operator does not involve the merging and processing operation of multiple data objects from different data objects. There is a strong correspondence between the scan operator and the data object in the data source, and the stored data is indicated by the identifier of the scan operator in the cache. That is to say, in the embodiment of the present application, the cache is the data obtained after the operation (such as filtering, etc.) of the corresponding scan operator (such as scan operator A, scan operator B) on a data object in the data source. Compared with the data-level cache, the amount of data in the cache is smaller; compared with the query-level cache, since the data in the cache is not the final query result of the query command, but an intermediate data in the query process (data corresponding to a scan operator in the query command), the intermediate data is consistent with part or all of the data in the data object in the data source, so the probability of being reused by other query commands is higher, that is, the cache hit rate is higher. In addition, since there is a strong correspondence between the scan operator and the data object in the data source, the data of the scan operator in the cache and the data object in the data source can be updated synchronously.
[0146] In the above description, each component in the data query system is described from the hardware perspective. The following description will describe the functional modules included in the data query system from the functional perspective.
[0147] like Figure 3As shown, a data query system provided in an embodiment of the present application, according to the functions of the nodes in the data query system, the data query system can be divided into a computing side (corresponding to the computing node 110 cluster mentioned in the above content) and a storage side (corresponding to the storage node 100 cluster mentioned in the above content).
[0148] A query engine 121 and an execution engine 122 are deployed on the computing side.
[0149] 1) Query engine 121.
[0150] The query engine 121 is a decision center on the computing side. The query engine 121 can parse the received data query command, generate a corresponding query plan according to the data query command, and can also decide the data query method. For example, the query engine 121 can determine whether the data requested by the data query command needs to be read from the cache 140 of the storage side or from the data source 150 according to the feedback from the storage side. For another example, the query engine 121 can also determine whether the data requested by the data query command needs to be cached in the cache 140 according to the feedback from the storage side.
[0151] In an embodiment of the present application, after receiving a data query command (such as a first data query command and a second data query command), the query engine 121 may send a cache query instruction (such as a first cache query instruction and a second cache query instruction) to the storage side, and the cache query instruction is used to request to obtain the data corresponding to the scan operator from the cache. The query engine 121 determines that the data needs to be obtained from the cache 140 of the storage side or from the data source 150 based on the cache query response fed back by the storage side. For example, when the data is stored in the storage side feedback cache 140, the query engine 121 can instruct the execution engine 122 to obtain the data directly from the cache 140. For another example, when the data is not stored in the storage side feedback cache 140, the query engine 121 can instruct the execution engine 122 to obtain data from the data source 150 according to the scan operator in the query plan.
[0152] When the data is not stored in the cache 140, the query engine 121 can further decide whether the data obtained by the execution engine 122 from the data source 150 needs to be stored in the cache 140. For example, the query engine 121 can decide whether the data needs to be stored in the cache 140 based on the historical query situation of data A. For another example, the query engine 121 can decide whether the data needs to be stored in the cache 140 based on the data caching strategy fed back by the storage side.
[0153] 2) Execution engine 122.
[0154] The execution engine 122 is an executor on the computing side, and the execution engine 122 can read data from the data source 150 and obtain data from the cache 140 or store data in the cache 140. In the embodiment of the present application, the execution engine 122 can obtain data from the cache 140 under the instruction of the query engine 121, can also obtain data from the data source 150 under the instruction of the query engine 121, and can also store data in the cache 140 under the instruction of the query engine 121.
[0155] Among them, the execution engine 122 reading data from the cache 140 means that the execution engine 122 can directly obtain data from the cache 140, and does not need to execute the scan operator in the process of reading data A. The execution engine 122 querying data from the data source 150 means that the execution engine 122 needs to execute the scan operator on the data object in the data source 150 to obtain data. The execution engine 122 caching data means that the execution engine 122 can write the identifier of the scan operator and the data corresponding to the scan operator into the cache 140.
[0156] The execution engine 122 splits the task to be executed into multiple subtasks, each subtask is responsible for a data slice. For example, for the task of obtaining data (such as data A or data B) from the data source 150, the execution engine 122 can split the task into multiple sub-query tasks, each sub-query task is used to obtain a data slice of the data from a data object of the data source 150. For another example, for the task of obtaining data from the cache 140, the execution engine 122 can split the task into multiple sub-reading tasks, each sub-reading task is used to obtain a data slice of the data in the cache 140. For another example, for the task of storing data from the cache 140, the execution engine 122 can split the task into multiple sub-cache tasks, each sub-cache task is used to read a data slice from the data source 150 and then write the read data slice into the cache 140. The embodiment of the present application does not limit the way in which the execution engine 122 splits subtasks.
[0157] The execution engine 122 or the query engine 121 can be implemented by software or by hardware. Taking the query engine 121 as an example, the query engine 121 is an example of a software functional unit, and the query engine 121 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the above computing instance may be one or more.
[0158] The query engine 121 is an example of a hardware functional unit, and the query engine 121 may be at least one computing node 110. Alternatively, the query engine 121 may also be a part of the computing node 110, such as the query engine 121 may be a processor in the computing node 110.
[0159] The present application does not limit the deployment locations of the execution engine 122 and the query engine 121. For example, the execution engine 122 and the query engine 121 can be deployed on the same computing node 110. The execution engine 122 and the query engine 121 can also be deployed on different computing nodes 110.
[0160] The storage side is deployed with a cache server 130, a cache 140 and a data source 150. The cache 140 and the data source 150 can be referred to the above description, and will not be described here. The cache server 130 is described below.
[0161] The cache server 130 is used to manage the cache 140 . The management of the cache 140 by the cache server 130 includes but is not limited to: data hit, data pre-fetch, data elimination, and data update.
[0162] 1. Data hit.
[0163] Data hit means that the cache server 130 can search the cache 140 according to the identifier of the scan operator to determine whether the data corresponding to the scan operator is stored in the cache 140. For example, in the embodiment of the present application, the cache server 130 can search the cache 140 according to the identifier of the scan operator A to determine whether the data (such as data A) is stored in the cache 140.
[0164] 2. Data pre-fetching and data elimination.
[0165] Data prefetching means that the cache server 130 can write the identifier of the scanning operator and the data corresponding to the scanning operator into the cache 140 in advance. The cache server 130 can determine the time for data prefetching and the data that needs to be prefetched, that is, the cache server 130 can determine when to write the identifiers of which scanning operators and the data corresponding to the scanning operators into the cache 140. The embodiment of the present application does not limit the manner in which the cache server 130 writes the identifier of the scanning operator and the data corresponding to the scanning operator into the cache 140. For example, the cache server 130 can write the identifier of the scanning operator and the data corresponding to the scanning operator into the cache 140 by itself. For another example, the cache server 130 requests the computing side (such as the query engine 121) to write the identifier of the scanning operator and the data corresponding to the scanning operator into the cache 140.
[0166] Data elimination means that the cache server 130 can delete the identifier of the scan operator and the data corresponding to the scan operator in the cache 140. The cache server 130 can determine the time of data elimination and the data to be eliminated, that is, the cache server 130 can determine when to eliminate the identifiers of which scan operators in the cache 140 and the data corresponding to the scan operators.
[0167] The cache server 130 can pre-fetch or eliminate data from the cache 140 by analyzing the historical query situation of the execution engine 122 on the data in the data source 150. The historical query situation of the execution engine 122 on the data in the data source 150 is recorded by the cache server 130 when the execution engine 122 queries the data in the cache 140 or the data source 150. The historical query situation of the execution engine 122 on the data describes the data query completed by the execution engine 122 (such as the data queried by the execution engine 122 and the time of querying the data, etc.).
[0168] The embodiment of the present application does not limit the way in which the cache server 130 pre-fetches data or eliminates data from the cache 140 by analyzing the historical query situation of the execution engine 122 on the data. For example, the cache server 130 can use the least recently used (LRU) algorithm to pre-fetch data and eliminate data from the cache 140. For another example, the cache server 130 can use the least frequently used (LFU) algorithm to pre-fetch data and eliminate data from the cache 140.
[0169] 3. Data update.
[0170] Data update means that the cache server 130 can update the identifier of the scan operator in the cache 140 and the data corresponding to the scan operator, and the updated data in the cache 140 is consistent with the data in the data source 150. When the data in the data source 150 is updated, for example, the execution engine 122 accesses the data in the data source 150, adds, deletes, modifies, etc., so that the data itself is updated, the cache server 130 can also synchronously update the data in the cache 140. That is, the data in the cache 140 before the data is updated, after the data in the data source 150 is updated, the data stored in the cache 140 also needs to be updated accordingly.
[0171] There are many ways for the cache server 130 to implement data updates. For example, the cache server 130 can monitor the operations of the execution engine 122 on the data in the data source 150 (the updates here include but are not limited to: adding, deleting, and modifying). When it is found that the execution engine 122 updates the data in the data source 150, the cache server 130 can synchronously update the data in the cache 140.
[0172] The cache server 130 may be implemented by software or hardware. As an example of a software functional unit, the cache server 130 may include code running on the storage node 100100. As an example of a hardware functional unit, the cache server 130 may be at least one storage node 100. Alternatively, the query engine 121 may also be a part of the storage node 100, such as the cache server 130 may be a control unit or a network card in the storage node 100.
[0173] The present application does not limit the deployment locations of the cache server 130, cache 140, and data source 150. For example, the cache server 130, cache 140, and data source 150 may be deployed on the same or multiple storage nodes 100. The cache server 130, cache 140, and data source 150 may also be deployed on different storage nodes 100.
[0174] In the above description, the data query system under the storage-computation separation architecture is used as an example for description. In practical applications, the data query method mentioned in the embodiment of the present application is also applicable to the data query system based on the storage-computation integration architecture. The data query system based on the storage-computation integration architecture no longer distinguishes between the computing node 110 and the storage node 100. The computing function and the storage function are concentrated in one node in the data query system based on the storage-computation integration architecture. From a hardware perspective, the structure of the node is similar to that of the computing node 110110, except that more hard disks can be included in the node to support the storage function of the node. From a functional perspective, the node is deployed with a query engine 121, an execution engine 122, a cache server 130, a cache 140, and a data source 150. For the description of the query engine 121, the execution engine 122, the cache server 130, the cache 140, and the data source 150, please refer to the above content, which will not be repeated this time. From another perspective, the node also has the functions of the storage node 100 and the computing node 110 mentioned above. The node can receive a data query command, generate a scan operator according to the data query command, and determine whether data is stored in the cache 140 according to the identifier of the scan operator (the data is the data that needs to be obtained from the data source 150 using the scan operator). When it is determined that data is stored in the cache 140, the data is obtained from the cache 140, and the query result is generated using the data. When it is determined that the data is not stored in the cache 140, the data is obtained from the data source 150 using the scan operator, and the query result is generated using the data. The node can also determine that the data needs to be stored in the cache 140 according to the historical query request of the data, and write the data and the identifier of the scan operator into the cache 140. In the embodiment of the present application, only the data query system based on the storage and computing separation architecture is used as an example to illustrate the data query method. The execution method of the data query method in the data query system based on the storage and computing integration architecture can refer to the execution method of the data query method in the data query system based on the storage and computing separation architecture. It is only necessary to regard the operations performed by the storage node 100 and the computing node 110 as the operations performed by the nodes in the data query system based on the storage and computing integration architecture, and this process will not be described in detail.
[0175] The following is combined with Figure 4 The data query method provided in the embodiment of the present application is described. In the method, two computing nodes 110 are involved in the process of processing the data query command. For the convenience of distinction, the two computing nodes 110 are respectively referred to as computing nodes 110A (i.e. Figure 4 The computing node 110A in Figure 4The computing node 110B in the example, the data query commands processed by the computing node 110A and the computing node 110B are respectively the first data query command and the second data query command. The execution process of the computing node 110A for the first data query command can be referred to steps 401 to 408, and the execution process of the computing node 110B for the second data query command can be referred to steps 409 to 413. The method includes:
[0176] Step 401: The computing node 110A receives a first data query command, the first data query command is used to request a first query result, and the computing node 110A generates a query plan according to the first data query command, the query plan includes at least one scan operator, and each scan operator is used to obtain different data. When the query plan includes multiple scan operators, the query plan also includes at least one data merge operator. On the computing side, step 401 can be performed by the query engine 121.
[0177] In different scenarios, the source of the first data query command is different. In the database scenario, the data query system is deployed with a database, and the data in the data source 150 on the storage side is the data in the database. The computing side acts as the "front end" of the database and interacts directly with the user or the device deployed on the user side. When a user needs to query the data in the database, the first data query command is triggered. The query engine 121 receives the first data query command and parses the first data query command. The embodiment of the present application does not limit the type of database, and the database may be Oracle, MySQL, or SQL Server. The first data query command triggered by the user may carry a structured query language (SQL) indicating a data query task.
[0178] In a big data scenario, a high-performance computing device is used to analyze or process a large amount of data. The data query system can be used to store data that needs to be processed or analyzed, or processed data. That is, the data source 150 includes data that needs to be processed or analyzed, or processed data. When the computing device needs to process or analyze these data, the computing device triggers a first data query command. The query engine 121 receives the first data query command and parses the first data query command. In practical applications, the support of relevant technologies is required in big data scenarios. In terms of data storage, a database that can support massive data storage is usually required in big data scenarios. Such a database can be deployed in the data query system. In order to accommodate massive data, the data query system can be a distributed data query system, that is, the computing nodes 110 or storage nodes 100 in the data query system can be distributed on multiple computing devices. The computing device responsible for data analysis or processing can interact with the data query system to obtain data from the database. The big data scenario can be regarded as a special database scenario.
[0179] In the computing node 110A, the query engine 121 has the parsing capability to parse the received first data query command and generate a query plan. Referring to the above description of the query plan, the query plan includes a scan operator or a data merge operator related to the data requested in the first data query command.
[0180] For example, the data requested to be queried in the first data query command involves data in different data objects in the data source 150 , and the query plan generally includes multiple scan operators and at least one data merge operator. Each scan operator is used to obtain data from a data object in the data source 150 .
[0181] The data requested to be queried in the first data query command relates to data in a data object in the data source 150, and the query plan may include only one scan operator. The scan operator is used to extract the data in the data object.
[0182] The following takes a scan operator A in a query plan as an example, where the scan operator A is used to obtain data A from a data object A in the data source 150, and explains the manner in which the computing node 110A obtains the data A from the storage node 100. For details, refer to the following steps.
[0183] Step 402: The computing node 110A sends a first cache query instruction to the storage node 100, the first cache query instruction being used to request to obtain data A from the cache 140. The first cache query instruction carries the identifier of the scanning operator A. This step may be performed by the query engine 121 on the computing side.
[0184] After the computing node 110A generates the query plan, it determines that the query plan includes the scan operator A. The query engine 121 can first query whether the data A is stored in the cache 140 by sending a first cache query instruction.
[0185] Taking the database scenario as an example, the scanning operator A describes the operation to be performed to obtain data A from the data object A in the data source 150. There are many types of operations to be performed, and three of them are listed here:
[0186] The first operation is the extraction operation of the data object, which refers to extracting the data object from the database. The second operation is column projection (Projection), which can also be called column clipping in some cases, and refers to extracting one or more columns of the data object. The third operation is the filtering predicate (Predicate), which can also be called row clipping. The filtering predicate (refers to filtering one or more rows of the data object, filtering out one or more rows that meet the filtering conditions. It can be understood that the scanning operator indicates the identification of the data object and the operation performed on the data object, that is, the scanning operator indicates the following information: what operation is performed on which object in the data source 150.
[0187] Assume that the SQL in the first data query command received by the computing node 110A includes SELECT x,y FROMtable1WHERE x>3AND y<5, and the scan operator A of the query plan generated based on the SQL includes the three types of operations mentioned above, among which "FROM table1" represents the first operation, which needs to extract the data object named table1. "SELECT x,y" represents the second operation, and the columns to be extracted are identified as x and y. "WHERE x>3AND y<5" represents the third operation, which needs to filter the two columns x and y to filter out one or more rows that meet "x>3 and y<5".
[0188] Assume that the SQL in the first data query command received by the computing node 110A includes SELECT m, n FROMtable2, and the scan operator A of the query plan generated based on the SQL includes the two types of operations mentioned above, where "FROMtable2" represents the first type of operation, and the data object named table2 needs to be extracted. "SELECT m, n" represents the second type of operation, and the column identifiers of the columns to be extracted are m and n.
[0189] In practical applications, the operations that the scanning operator A may involve include other operations besides the three operations mentioned above, such as aggregation, sum, or count.
[0190] From the description of the scan that may be involved in the scan operator A, it can also be seen that the scan operator A does not involve a merging operation of data from different sources (such as different data objects) in the data source 150 .
[0191] From the perspective of the operations included in the scanning operator, the three types of operations, namely, the extraction operation of the data object, the column projection, and the filtering predicate, are mainly used to locate part of the data in the data object, which has not changed. If the scanning operator A includes other operations in addition to the three operations, the other operations only process the part of the data, and do not need to be combined with other data in the data source 150 during the processing. It can be seen that the data extracted by the scanning operator has a strong corresponding relationship with the data in the data source 150.
[0192] The embodiment of the present application does not limit the method for generating the identifier of the scanning operator A. The following introduces a method for generating the identifier of the scanning operator A by taking the three types of operations including data object extraction operation, column projection (Projection), and filter predicate (Predicate) in the scanning operator A as an example.
[0193] The identifier ScanKey of the scan operator A can be generated by means of a hash function (Hash), and the identifier ScanKey of the scan operator A satisfies:
[0194] ScanKey=Hash(TableName+Projections+Predicates)
[0195] Among them, TableName is the name of the data object to be extracted by the data object extraction operation; Projections is the column identifier of the column to be extracted in the column projection. When multiple columns need to be extracted in the column projection, Projections is the column identifier of the multiple columns; Predicates is the filtering condition that the rows to be extracted must meet in the filtering predicate. This application does not limit the specific type of hash function (Hash), and the hash function can be MD5 or SHA-1, etc.
[0196] In addition, in order to ensure the consistency of scan operator A, the order of column identifiers in Projections can be constrained, that is, when generating the identifier of scan operator A, the order of column identifiers input into the hash function needs to meet the set requirements, such as the set requirement that column identifiers can be sorted in ascending order. Similarly, the order of the components of the filter conditions in Predicate can also be constrained, that is, when generating the identifier of scan operator A, the order of the components of the filter conditions input into the hash function needs to meet the set requirements, such as the set requirement that column identifiers can be sorted in ascending order.
[0197] For example, the data query tasks represented by the two SQL statements "SELECT x,y FROM table1 WHERE x>3AND y<5" and "SELECT y,x FROMtable1 WHERE y<5AND x>3" are the same, but the order of column identifiers (such as x, y) in the Projection and the order of the components of the filter conditions in the Predicate (such as x>3, y<5) are inconsistent. If the order of column identifiers or the order of the components of the filter conditions are not unified, the identifiers of the scan operators A generated based on the two SQL statements may be different. By unifying the order of column identifiers or the order of the components of the filter conditions, such as unifying the column identifiers to x first and y later, the identifiers of the scan operators A generated based on the two SQL statements will eventually be the same.
[0198] When scanning operator A includes other operations in addition to the above three operations, the parameters required to perform other operations as well as TableName, Projections, and Predicates can also be used as inputs to the hash function to obtain the identifier of scanning operator A. When scanning operator A includes some of the above three operations, the input of the hash function includes the parameters of the part of the operation (that is, the part of TableName, Projections, and Predicates).
[0199] In addition, in the above description of the generation method of the identifier of the scanning operator A, the identifier of the scanning operator A is generated based on the parameters (such as TableName, Projections, and Predicates) of each operation included in the scanning operator A. In actual applications, the parameters based on the identifier of the scanning operator A may include other parameters in addition to the parameters of each operation included in the scanning operator A, for example, the attribute parameters of the data source 150 may also be included.
[0200] Step 403: After receiving the first cache query instruction, the storage node 100 queries the cache 140 according to the identifier of the scan operator A. If the cache 140 contains a target entry including the identifier of the scan operator A, step 404 is executed, otherwise step 406 is executed. This step may be executed by the cache server 130.
[0201] The cache 140 includes the identifier of the scanning operator and the data corresponding to the scanning operator. That is, there is a corresponding relationship between the data and the identifier of the scanning operator in the cache 140. The identifier of the scanning operator and the data corresponding to the scanning operator can be stored in the cache 140 in the form of a key-value pair, with the identifier of the scanning operator as the key in the key-value pair and the data as the value corresponding to the key, so that a corresponding relationship between the data and the identifier of the scanning operator is established.
[0202] The data in the cache 140 is marked by the scanning operator. On the one hand, the scanning operator represents a kind of "semantics", such as representing part of the semantics in the query plan. The data marked or corresponding to the scanning operator is no longer the original data in the data source 150 (such as the entire data object), but part of the data of a data object in the data source 150, which can effectively reduce the data in the cache 140. On the other hand, there is a strong correspondence between the data obtained by the scanning operator and the data in the data source 150, which can not only improve the reuse rate of the data in the cache 140 (that is, improve the hit rate of the cache 140), but also provide the possibility of synchronous update of the data in the cache 140 and the data in the data source 150, that is, when the data in the data source 150 is updated, the corresponding data in the cache 140 can be synchronously located and the data in the cache 140 can be updated in the same way.
[0203] The storage node 100 can search the cache 140. If a target entry containing the identifier of the scan operator A carried by the first cache query instruction is found in the cache 140, that is, the identifier of the scan operator A is hit in the cache 140, indicating that data A is stored in the cache 140, and in this case, step 404 can be executed. If a target entry containing the identifier of the scan operator A carried by the first cache query instruction is not found in the cache 140, that is, the identifier of the scan operator A is not hit in the cache 140, indicating that data A is not stored in the cache 140, and in this case, step 406 can be executed.
[0204] Step 404 : the storage node 100 sends a first cache 140 query response to the computing node 110A, where the first cache query response carries the storage address of the data A in the cache 140 . This step may be performed by the cache server 130 .
[0205] When the storage node 100 hits the identifier of the scan operator A in the cache 140 , it determines the storage address of the data A in the cache 140 , and informs the computing node 110A of the storage address of the data A in the cache 140 through a first cache query response.
[0206] Step 405 : After receiving the first cache query response, the computing node 110A obtains the data A according to the storage address of the data A in the cache 140 .
[0207] After the computing node 110A obtains the first cache query response, the computing node 110A may access the cache 140 and directly read the data A from the storage address. The computing node 110A may also first obtain the data shard identifier of the data A, and determine whether the data A in the cache 140 is consistent with the data A in the data source 150 according to the data shard identifier. In the case where the data A in the cache 140 is consistent with the data A in the data source 150, the computing node 110A reads the data A from the storage address. In the case where the data A in the cache 140 is partially consistent with the data A in the data source 150, the computing node 110A reads the partially consistent portion of the data A from the storage address, accesses the data source 150, and reads the inconsistent portion of the data A from the data source 150. In the case where the data A in the cache 140 is completely inconsistent with the data A in the data source 150, the computing node 110A executes the scan operator A to obtain the data A from the data source 150.
[0208] Based on the description of the cache 140 and the data source 150, it can be known that the data stored in the cache 140 is part of the data in the data source 150. That is, the cache 140 stores data A, and the data source 150 includes the same data A. However, in some cases, the data A in the data source 150 will be updated. For example, the computing node 110A adds, deletes, modifies, and other operations on the data A under the trigger of the user, and the data A changes. In this way, the data A in the cache 140 and the data A in the data source 150 will be inconsistent or partially consistent. In this case, if the computing node 110A still reads data A from the cache 140, the computing node 110A will obtain data A that is not the correct data.
[0209] Therefore, the embodiment of the present application designs a mechanism on the computing side to determine whether the data in the cache 140 is consistent with the data in the data source 150 based on the data shard identifier. The following still takes data A as an example to illustrate this mechanism. For the sake of convenience, the data A in the cache 140 is referred to as data A, and the data in the data source 150 is referred to as data A`:
[0210] Step 1: The computing node 110A may obtain a data shard identifier of data A', where the data shard identifier of data A' describes each data shard in the data A'.
[0211] The embodiments of the present application do not limit the method for generating the data shard identifier of the data A`. For example, the computing node 110A may obtain the metadata of each data shard of the data A` from the storage node 100, and use the metadata of each data shard of the data A` as the data shard identifier of the data A`. For another example, after the computing node 110A obtains the metadata of each data shard of the data A` from the storage node 100, it filters out part of the data in the metadata of each data shard of the data A` (such as deleting the storage address of each data shard in the metadata of each data shard of the data A` in the data source 150, and retaining the remaining data in the metadata of each data shard of the data A`), and uses the filtered part of the data as the data shard identifier of the data A`. For another example, after the computing node 110A obtains the metadata of each data shard of the data A` from the storage node 100, it processes the metadata of each data shard of the data A` (such as hash processing), and uses the processed data as the data shard identifier of the data A`.
[0212] The embodiment of the present application provides a method for generating a data shard identifier. The method for generating a data shard identifier of the data is similar to the method for generating an identifier of a scanning operator. Here, data A` is taken as an example.
[0213] The data shard identifier SplitKey of data A' can be generated by means of a hash function (Hash). The data A' includes N data shards. The data shard identifier SplitKey of data A' includes N hash values. Each hash value corresponds to a data shard. The data shard identifier SplitKey of data A' satisfies:
[0214] SplitKey={Hash(TableName+Projections+Predicates+SplitInfo-1), Hash(TableName+Projections+Predicates+SplitInfo-2),...Hash(TableName+Projections+Predicates+SplitInfo-N)}
[0215] Among them, the description of TableName, Projections, and Predicates can be found in the relevant content of the generation method of the identifier of the aforementioned scanning operator A, which will not be repeated here. SplitInfo indicates the metadata of a data slice of data A` or partial data of the metadata of a data slice of data A`. SplitInfo-1, SplitInfo-2..., SplitInfo-N respectively represent the metadata of N data slices in the data A` or partial data of the metadata of N data slices of data A`.
[0216] That is, when generating the data shard identifier SplitKey of data A`, the input of the hash function includes the parameters of each operation included in the scanning operator A (such as TableName, Projections, Predicates), and also includes part or all of the metadata of each data shard of data A`.
[0217] To put it another way, the data shard identifier SplitKey of data A` includes multiple sub-identifiers, each of which is used to identify a data shard. The i-th data shard Split i Sub-identifier Key i satisfy:
[0218] Key i =Hash(TableName+Projections+Predicates+SplitInfo-i)
[0219] SplitInfo-i indicates the data segmentation Split of data A` i Metadata or data A's data shard Split i Part of the metadata data.
[0220] Step 2, after computing node 110A obtains the data shard identifier of data A`, it scans the data shards of data A in cache 140 according to the data shard identifier of data A` to determine whether the data shards indicated by the data shard identifier of data A` are consistent with the data shards of data A.
[0221] For example, when computing node 110A uses all or part of the metadata of a data shard of data A` as the data shard identifier of data A`, computing node 110A can determine whether the information recorded in the metadata of the data shard of data A` is consistent with the various data shards of data A, such as determining whether the name of each data shard, the length of each data shard, and the position of each data shard in data A recorded in the metadata of the data shard of data A` are consistent with the name of each data shard, the length of each data shard, and the position of each data shard in data A. Through the information recorded in the metadata of the data shard of data A` and the various data shards of data A, it can be determined which data shards are consistent with data A (that is, which data shards described by the metadata of the data shards of data A` are consistent with those of data A), and which data shards are inconsistent with data A (which data shards described by the metadata of the data shards of data A` are inconsistent with those of data A).
[0222] When the computing node 110 generates the data shard identifier SplitKey of the data A` with the help of the hash function (Hash), in addition to each data shard in the stored data, the cache 140 also stores the sub-identifier of each data shard. The generation method of the sub-identifier of each data shard in the cache 140 is similar to the generation method of the sub-identifier of each data shard in the aforementioned data source 150. The only difference is that the metadata of the data shard used to generate the sub-identifier of each data shard in the cache 140 is the metadata of the data shard when the data shard is written to the cache 140.
[0223] For any sub-identifier in the data shard identifier SplitKey of data A`, the computing node 110A determines whether the sub-identifier is stored in the cache 140. If the sub-identifier is stored, it means that the data shard corresponding to the sub-identifier is stored in the cache 140, the data shard hits, and the data shard in data A` is consistent with the data shard in data A.
[0224] If the sub-identifier is not stored, it means that the data slice corresponding to the sub-identifier has changed in the data slice in data A` after being stored in cache 140, resulting in the sub-identifier of the data slice in the data slice identifier SplitKey of data A` being inconsistent with the sub-identifier in cache 140, and the data slice is not hit. The data slice in data A` is inconsistent with the data slice in data A.
[0225] Thus, the computing node 110A can determine the data shards in which data A' is consistent with data A, and the data shards in which data A' is inconsistent with data A.
[0226] For any data shard that is inconsistent between data A` and data A, computing node 110A may store the inconsistent data shard in cache 140, that is, store the data shard and the sub-identifier corresponding to the data shard (the sub-identifier is the sub-identifier included in the data shard identifier SplitKey of data A`) in cache 140.
[0227] Step 3: If the data shards indicated by the data shard identifier of the data A' are consistent with the data shards of the data A, it means that the data shards in the data A' are the same as the data shards in the data A, and the data A in the cache 140 is consistent with A' in the data source 150. The computing node 110A can obtain the data A according to the storage address of the data A in the cache 140.
[0228] If the data shards indicated by the data shard identifier of the data A` are completely inconsistent with the data shards of data A, it means that the data shards in the data A` are completely different from the data shards in the data A, and the data A in the cache 140 is inconsistent with the data source 150. The computing node 110A needs to obtain the data A` from the data source 150 so that the data A` is correct data. The way in which the computing node 110A needs to obtain the data A` from the data source 150 can be referred to the relevant description of step 407, which will not be repeated here.
[0229] If the data shards indicated by the data shard identifier of the data A` are partially consistent with the data shards of data A, it means that the data shards in the data A` are partially the same as the data shards in the data A, that is, only some of the data shards in the data A` are consistent with the data shards in the data A, and the remaining data shards are inconsistent. In this case, the computing node 110A can obtain the data A` from the data source 150; the computing node 110A can also obtain the consistent part of the data shards from the data A in the cache 140, and obtain the inconsistent remaining data shards from the data A` in the data source 150. The way in which the computing node 110A obtains the remaining data shards in the data A` from the data source 150 is similar to the way in which the computing node 110A needs to obtain the data A` from the data source 150, and the only difference is that the data obtained is different. For details, please refer to the relevant instructions of step 407, which will not be repeated here. After obtaining the consistent partial data shards and the inconsistent remaining data shards, the computing node 110A merges the partial data shards and the remaining data shards, and the obtained data is data A`.
[0230] like Figure 5 As shown, there are three possible situations among the data slices indicated by the data slice identifier of data A' and the data slices of data A.
[0231] in, Figure 5 In the figure, (a) shows the situation where the data slices indicated by the data slice identifier of data A` are consistent with the data slices of data A. In (a) the data slice identifier of data A` has the same color as the data slices of data A. The data slices of data A` are exactly the same as the data slices of data A. (b) shows the situation where the data slices indicated by the data slice identifier of data A` are completely inconsistent with the data slices of data A. (b) The data slice identifier of data A` has different colors from the data slices of data A in the figure. The data slices of data A` are completely different from the data slices of data A. (c) shows the situation where the data slices indicated by the data slice identifier of data A` are partially consistent with the data slices of data A. There are some consistent data slices (data slices indicated by small white rectangular boxes) in the data slices in data A` and the data slices in data A, and the remaining data slices are inconsistent.
[0232] After steps 1 to 3, computing node 110A can determine whether the data in cache 140 is consistent with the data in data source 150 based on the data shard identifier, and then decide to read data A from data source 150 and / or cache 140.
[0233] Inside the computing node 110A, the query engine 121 receives the first cache query response, and after receiving the first cache query response, sends a first indication to the execution engine 122, where the first indication is used to instruct the execution engine 122 to read data A from the cache 140, and the first indication carries the storage address of the data A in the cache 140.
[0234] After receiving the first indication, the execution engine 122 may access the cache 140 and read the data A from the storage address of the data A in the cache 140. The execution engine 122 may directly read the data A from the storage address in the cache 140, or may determine whether the data in the cache 140 is consistent with the data in the data source 150 based on the data shard identifier, and read the data A from the data source 150 and / or the cache 140, that is, the execution engine 122 may execute steps 1 to 3.
[0235] Through steps 404 to 405, the computing node 110A can obtain the data A stored in the cache 140, that is, the computing node 110A (such as the execution engine 122 in the computing node 110A) no longer needs to execute the scan operator A to obtain the data A from the data source 150. It can ensure that the computing node 110A can quickly obtain data A and improve the efficiency of data query. In steps 404 to 405, the storage node 100 (such as the cache server 130) feedbacks the storage address of the data A in the cache 140 as an example for explanation. In fact, in step 404, the cache server 130 can also directly feedback the data A stored in the cache 140. That is, the first cache query response can carry data A, but not the storage address of data A in the cache 140. In this way, the computing node 110A reads data A from the cache 140. When the computing node 110A obtains the data A, if the query plan also includes a data merging operator, the computing node 110A (such as the execution engine 122 under the instruction of the query engine 121) may also execute the data merging operator on the data A. The manner in which the computing node 110A executes the data merging operator on the data A will be described in step 408 below, and for details, please refer to the relevant description in step 408.
[0236] Step 406: The storage node 100 sends a second cache query response to the computing node 110A, and the second cache query response indicates that the data A is not stored in the cache 140. Optionally, the second cache query response carries a data cache policy, and the data cache 140 policy indicates whether to store the data A in the cache 140. When the data cache policy indicates that the data A is stored in the cache 140, the data cache policy may also indicate the storage address where the data A is stored in the cache 140. This step may be performed by the cache server 130.
[0237] The storage node 100 does not hit the identifier of the scan operator A in the cache 140, indicating that the data A does not exist in the cache 140. The storage node 100 can inform the computing node 110A that the cache 140 does not store the data A through the second cache query response.
[0238] Inside the storage node 100, given that the cache server 130 can manage the cache 140, the cache server 130 can determine whether the data A needs to be stored in the cache 140 based on the historical query of the execution engine 122 on the data A, that is, determine the data cache strategy, and inform the query engine 121 of the data cache strategy. For example, the cache server 130 can analyze the historical query of the execution engine 122 on the data A. If it is found that the query frequency in the historical query of the data A is less than the frequency threshold, then the data A is not suitable for long-term storage in the cache 140, and the data cache strategy indicates that the data A does not need to be stored in the cache 140.
[0239] If it is found that data A is queried multiple times in the historical query of data A, and the query frequency is greater than the frequency threshold, then it means that data A can be stored in cache 140, and the data cache policy indicates that data A needs to be stored in cache 140. Optionally, cache server 130 can also allocate a storage address in cache 140 for data A, and the data cache 140 policy indicates the storage address of data A in cache 140.
[0240] Of course, in some cases, if the cache server 130 can determine that data A needs to be cached, the cache server 130 informs the query engine 121 (through the second cache query response) that data A is not currently in the cache 140 and that data A needs to be stored in the cache 140. If the cache server 130 can determine that data A does not need to be cached, the cache server 130 only needs to inform the query engine 121 (through the second cache query response) that data A is not stored in the cache 140.
[0241] Step 407 : After receiving the second cache query response, the computing node 110A accesses the data source 150 and obtains data A from the data source 150 .
[0242] When the computing node 110A reads data A from the data source 150, the computing node 110A may execute the scan operator A to obtain the data A from the data source 150. The computing node 110A sequentially executes the scan operator including various operations, such as data object extraction, column pruning, predicate filtering, etc., to obtain the data A.
[0243] If the data cache 140 policy indicates that data A needs to be stored in cache 140, computing node 110A may also store data A in cache 140. In the embodiment of the present application, storing data A in cache 140 means writing data A and the identifier of scan operator A into cache 140.
[0244] When the data cache 140 policy indicates the storage address of the data A in the cache 140, the execution engine 122 can access the cache 140 and write the data A and the identifier of the scan operator A at the storage address. When the data cache 140 policy does not indicate the storage address of the data A in the cache 140, the execution engine 122 can access the cache 140 and write the data A and the identifier of the scan operator A in the free space in the cache 140.
[0245] Inside the computing node 110A, after receiving the second cache query response, the query engine 121 sends a second indication to the execution engine 122. The second indication is used to instruct the execution engine 122 to read data A from the data source 150. The second indication may also carry a data cache strategy.
[0246] After receiving the second indication, the execution engine 122 may execute the scan operator A to obtain data A from the data source 150. If the data cache policy carried in the second indication indicates that data A needs to be stored in the cache 140, the execution engine 122 stores data A in the cache 140. The manner in which the execution engine 122 stores data A in the cache 140 may refer to the manner in which the computing node 110A stores data A in the cache 140, and the details may refer to the above description, which will not be repeated here.
[0247] By executing step 407 , the computing node 110A can read the data A from the data source 150 , ie, complete the scan operator A in the query plan.
[0248] When the query plan includes a scan operator, for the scan operator, the computing node 110A and the storage node 100 interact and execute steps 402 to 407 to obtain the data corresponding to the scan operator (that is, the data that needs to be extracted from the data source 150 to execute the scan operator, such as data A), and feed back the obtained data to the initiator of the first data query command. Inside the computing node 110A, after obtaining the data corresponding to the scan operator, the execution engine 122 sends the data corresponding to the scan operator to the query engine 121, and the query engine 121 feeds back the obtained data to the initiator of the first data query command.
[0249] When the query plan includes multiple scan operators and at least one data merge operator, for each scan operator, the computing node 110A and the storage node 100 interact to execute steps 402 to 407 to obtain data corresponding to each scan operator. Afterwards, the computing node 110A may also execute step 408.
[0250] It is assumed here that the query plan includes scan operator B in addition to scan operator A. Scan operator B describes the operation required to obtain data B from a data object in data source 150. The data objects in data source 150 involved in scan operator A and scan operator B are different.
[0251] For data B, computing node 110A sends a second cache query instruction to storage node 100, and the second cache query instruction is used to request to query data B from cache 140. The second cache query instruction carries the identifier of scanning operator B. This step is similar to step 402, except that the data read is different.
[0252] After receiving the second cache query instruction, the storage node 100 queries the cache 140 according to the identifier of the scanning operator B. This step is similar to step 403, except that the data read and the identifier of the scanning operator called are different.
[0253] The storage node 100 determines that there is no entry including the identifier of the scan operator B in the cache 140, and sends a second cache query response to the computing node 110A, the second cache query response indicating that the data B is not stored in the cache 140. The second cache query response carries a data cache policy, and the data cache policy indicates that the data B is stored in the cache 140. This step is similar to the execution method of step 406, and the difference is only that the data read and the identifier of the scan operator called are different.
[0254] After receiving the second cache query response, the computing node 110A accesses the data source 150, obtains data B from the data object B of the data source 150 according to the scanning operator B, and stores the data B and the identifier of the scanning operator B in the cache 140. This step is similar to the execution method of step 407, and the difference is only that the data read and the identifier of the called scanning operator are different.
[0255] That is, for any scan operator included in the query plan, the computing node 110A initiates a cache query instruction to determine whether the data corresponding to the scan operator is stored in the cache 140, that is, steps 402 to 407 can be executed for any scan operator. When the query plan includes multiple scan operators, the computing node 110A can execute steps 402 to 407 in parallel for each scan operator. That is, the computing node 110A can initiate multiple cache query instructions in parallel (each cache query instruction corresponds to a scan operator) to determine whether the data corresponding to the multiple scan operators are stored in the cache 140.
[0256] In a possible implementation, the computing node 110A may also initiate a cache query instruction, which carries the identifiers of the multiple scan operators, and the cache query instruction is used to request to obtain the data corresponding to the multiple scan operators from the cache 140. After receiving the cache query instruction, the storage node 100 may determine whether the data corresponding to the multiple scan operators are stored in the cache 140 according to the identifiers of the multiple scan operators. The storage node 100 may feedback a cache query response to the computing node 110, and the cache query response indicates whether the data corresponding to the multiple scan operators are stored in the cache 140. For any scan operator among the multiple scan operators, if the data corresponding to the scan operator is stored in the cache 140, the cache query response indicates that the data corresponding to the scan operator is stored in the cache 140 and the storage address of the data in the cache 140; if the data corresponding to the scan operator is not stored in the cache 140, the cache query response indicates that the data corresponding to the scan operator is not stored in the cache 140, and optionally, it may also indicate whether the data is stored in the cache 140.
[0257] Step 408: the computing node 110A processes the data corresponding to the multiple scanning operators according to the query plan to obtain a final first query result. If the final first query result is data C, the data C is fed back to the initiator of the first data query command.
[0258] The computing node 110A executes the data merging operator on the data corresponding to the multiple scanning operators according to the query plan, which is related to the specific content of the query plan. For example, the computing node 110A may execute the data merging operator according to the query plan. Figure 1A to Figure 1B The query plan shown in FIG. 1 merges the data obtained from each single operation chain (that is, the data corresponding to multiple scan operators). Still taking the query plan including scan operator A and scan operator B as an example, computing node 110A generates the final first query result based on data A and data B. Computing node 110A can execute the data merge operator on data A and data B to generate the final first query result.
[0259] Inside the computing node 110A, the execution engine 122 is used to generate the first query result, and the query engine 121 can feed back the first query result to the initiator of the first data query command. In other words, the execution engine 122 can execute the data merging operator on the data corresponding to the multiple scanning operators according to the query plan, obtain the data C, feed back the data C to the query engine 121, and then the data C feeds back the final first query result to the initiator of the first data query command.
[0260] In the above description, a single operation chain in the query plan is regarded as a scan operator, and the data corresponding to the scan operator is the data obtained after the single operation chain is executed. In fact, according to the principle of data caching in this application, the scan operator may not be limited to the entire single operation chain, and the scan operator may only describe part of the operations in the single operation chain. Then, the data corresponding to the scan operator is the data obtained after the execution of the part of the data. Figure 1A Taking the directed acyclic graph shown as an example, the scanning operator can be the entire operation chain, or the two operations first executed in the operation chain can be used as the operations described by the scanning operator. Assuming that the two operations are respectively the extraction operation of the data object and column clipping (Projection), the data corresponding to the scanning operator is the data obtained after the two operations are completed, that is, one or more columns of data obtained after the extracted data object is clipped. The identifier of the scanning operator and the corresponding data can be cached in cache 140.
[0261] If the scanning operator A is a scanning operator that describes partial operations of a single operation chain, after obtaining data A, the computing node 110A can also perform further operations on the data A corresponding to the scanning operator A according to the query plan (for example, the remaining operations in the single operation chain) to obtain the first query result.
[0262] If the scan operator A describes the scan operators of all operations of a single operation chain, after the computing node 110A obtains data A, when the query plan only includes the scan operator A, the data A is the first query result. If the query plan also includes multiple scan operators, and the multiple scan operators include the scan operator A, then the computing node 110A obtains the first query result according to the data corresponding to the multiple scan operators. The method of obtaining the first query result can refer to the above description, which will not be repeated here.
[0263] The following is an explanation of the process of another computing node 110B processing the second data query command. The process of computing node 110B processing the second data query command is similar to the process of computing node 110A processing the first data query command. Here, only the process is briefly described. The execution method of the specific steps can be referred to the above content, which will not be repeated here.
[0264] Step 409: The computing node 110B receives a second data query command, where the second data query command is used to request a second query result. The computing node 110B generates a query plan according to the second data query command, where the query plan includes a scan operator B.
[0265] Step 410: The computing node 110B sends a second cache query instruction to the storage node 100 to request to obtain data B from the cache 140. The second cache query instruction carries the identifier of the scan operator B.
[0266] Step 411: After receiving the second cache query instruction, the storage node 100 queries the cache 140 according to the identifier of the scan operator B. It is determined that there is an entry including the identifier of the scan operator B in the cache 140, and the storage address of the data B in the cache 140 is sent to the computing node 110B.
[0267] Step 412 : The computing node 110B obtains the data B according to the storage address of the data B in the cache 140 .
[0268] Step 413: The computing node 110B generates a second query result according to the data B, and sends the second query result to the initiator of the second data query command.
[0269] It can be seen from steps 409 to 413 that, since the cache 140 is deployed on the storage side, different computing nodes 110 can reuse the data in the cache 140 , further ensuring the reuse rate of the data in the cache 140 .
[0270] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).
[0271] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0272] The present application is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0273] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0274] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0275] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data query method, characterized in that: The method comprises: The first computing node receives a first data query command, where the first data query command is used to obtain a first query result from a data source; The first computing node obtains the first data from the cache according to the identifier of the first scan operator; wherein the first scan operator is generated based on the first data query command, the first scan operator describes the operation required to be performed to obtain the first data from the first data object in the data source, and the cache stores the identifier of the first scan operator and the first data; The first computing node obtains the first query result based on the first data.
2. The method according to claim 1, characterized in that The data source is located in a storage node, the first computing node communicates with the storage node, and the first computing node and the storage node are deployed separately.
3. The method according to claim 2, characterized in that The cache is located on the storage node; the first computing node obtains the first data from the cache according to the identifier of the first scanning operator, including: The first computing node sends a first cache query instruction to the storage node, where the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries an identifier of the first scanning operator; When determining that the first data is stored in the cache, the storage node feeds back the first data in the cache to the first computing node.
4. The method according to claim 3, characterized in that Feedback, by the storage node, of the first data in the cache to the first computing node includes: The storage node sends a first cache query response to the first computing node, where the first cache query response carries the first data or a storage address of the first data in the cache.
5. The method according to any one of claims 2 to 4, characterized in that: The cache stores a plurality of entries, the plurality of entries include a target entry, the target entry includes an identifier of the first scan operator and the first data, and the storage node determines that the first data is stored in the cache, including: The storage node queries the target entry from the cache according to the identifier of the first scanning operator, and determines that the first data is stored in the cache.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The first computing node generates the second scanning operator based on the first data query command, where the second scanning operator describes an operation required to be performed to obtain the second data from the second data object in the data source; When it is determined according to the identifier of the second scanning operator that the cache stores the second data, the first computing node obtains the second data from the cache; When it is determined according to the identifier of the second scanning operator that the second data is not stored in the cache, the first computing node obtains the second data from the data source according to the second scanning operator.
7. The method according to claim 6, characterized in that The first computing node obtains the first query result based on the first data, including: The first computing node obtains the first query result according to the first data and the second data.
8. The method according to claim 6 or 7, characterized in that The method further comprises: The first computing node sends a second cache query instruction to the storage node, where the second cache query instruction is used to request to obtain the second data from the cache, and the second cache query instruction carries an identifier of the second scanning operator; When the storage node determines, according to the identifier of the second scanning operator, that the second data is not stored in the cache, the storage node sends a second cache query response to the first computing node, where the second cache query response is used to indicate that the second data is not stored in the cache.
9. The method according to claim 8, characterized in that The method further comprises: The first computing node stores the second data and the identifier of the second scanning operator in the cache according to a data cache strategy.
10. The method according to claim 9, characterized in that The method further comprises: The second computing node receives a second data query command, where the second data query command is used to obtain a second query result from the data source; The second computing node obtains the second data from the cache according to the identifier of the second scanning operator; wherein the second scanning operator is generated based on the second data query command; The second computing node obtains the second query result based on the second data.
11. The method according to any one of claims 3 to 10, characterized in that: The method further comprises: The storage node eliminates the data in the cache or writes data into the cache according to the historical query situation of the first computing node on the data in the data source.
12. The method according to any one of claims 1 to 11, characterized in that: The first computing node obtains first data from the cache according to the identifier of the first scanning operator, including: The first computing node obtains a data shard identifier of the first data, where the data shard identifier of the first data indicates each data shard of the first data in the current data source; After determining that each data shard indicated by the data shard identifier is consistent with each data shard of the first data stored in the cache, the first computing node obtains all data shards of the first data in the cache.
13. The method according to any one of claims 1 to 11, characterized in that: The first computing node obtains first data from the cache according to the identifier of the first scanning operator, including: The first computing node obtains a data shard identifier of the first data, where the data shard identifier of the first data indicates each data shard of the first data currently stored in the data source; After determining that each data shard indicated by the data shard identifier is partially consistent with each data shard of the first data in the cache, the first computing node extracts a first data shard from the first data in the cache, the first data shard being a data shard consistent with each data shard indicated by the data shard identifier among each data shard of the first data in the cache, and acquires a second data shard from the data source according to the first scanning operator, the second data shard being a data shard inconsistent with each data shard indicated by the data shard identifier among each data shard of the first data in the cache; The first computing node merges the first data slice and the second data slice to obtain the first data.
14. A data query device, characterized in that: The device comprises: A query engine, configured to receive a first data query command, the first data query command being used to obtain a first query result from a data source, and to determine, according to an identifier of a first scan operator, whether first data is stored in a cache; the first scan operator being generated based on the first data query command, the first scan operator describing an operation required to be performed to obtain the first data from a first data object in the data source, and the cache storing the identifier of the first scan operator and the first data; An execution engine is used to obtain the first data from the cache; and obtain the first query result based on the first data.
15. The device according to claim 14, characterized in that The cache is located on a storage node that communicates with the query device; the query engine is used to: Sending a first cache query instruction to the storage node, where the first cache query instruction is used to request to obtain the first data from the cache, and the first cache query instruction carries an identifier of the first scan operator; The execution engine is used to obtain the first data in the cache fed back by the storage node.
16. The device according to claim 15, characterized in that The query engine is further configured to: receive a first cache query response sent by the storage node, wherein the first cache query response carries the first data or a storage address of the first data in the cache; The execution engine is configured to: obtain, from the query engine, the first data carried in the first cache query response or a storage address of the first data in the cache; The first data is obtained from the cache according to a storage address of the first data in the cache.
17. The device according to any one of claims 14 to 16, characterized in that: The query engine is further configured to generate the second scan operator based on the first data query command, wherein the second scan operator describes an operation required to be performed to obtain the second data from the second data object in the data source, and determine whether the second data is stored in the cache according to an identifier of the second scan operator; The execution request is further used to: when the second data is stored in the cache, obtain the second data from the cache; when the second data is not stored in the cache, obtain the second data from the data source according to the second scan operator.
18. The device according to claim 17, characterized in that The execution engine is used to obtain the first query result according to the first data and the second data.
19. A data cache device, characterized in that: The device includes a data source, a cache and a cache server, and the data cache device is deployed separately from the first computing node; The cache server is used to receive a first cache query instruction from the first computing node, the first cache query instruction is used to request to obtain first data from the cache, and the first cache query instruction carries the identifier of a first scan operator; when it is determined that the first data is stored in the cache, the first data in the cache is fed back to the first computing node; wherein the first scan operator is generated based on a first data query command received by the first computing node, the first data query command is used to obtain a first query result from the data source, the first scan operator describes the operation required to be performed to obtain the first data from a first data object in the data source, and the first data is used by the first computing node to generate the first query result.
20. The device according to claim 19, characterized in that The cache server is used to: A first cache query response is sent to the first computing node, where the first cache query response carries the first data or a storage address of the first data in the cache.
21. The device according to any one of claims 19 to 20, characterized in that: The cache stores a plurality of entries, the plurality of entries including a target entry, the target entry including an identifier of the first scanning operator and the first data, and the cache server is configured to: The target entry is queried from the cache according to the identifier of the first scanning operator, and it is determined that the first data is stored in the cache.
22. The device according to any one of claims 19 to 21, characterized in that The cache server is further configured to receive a second cache query instruction sent by the first computing node, where the second cache query instruction is used to request to obtain the second data from the cache, and the second cache query instruction carries an identifier of the second scanning operator; When it is determined according to the identifier of the second scanning operator that the second data is not stored in the cache, a second cache query response is sent to the first computing node, where the second cache query response is used to indicate that the second data is not stored in the cache.
23. The device according to any one of claims 18 to 22, characterized in that The cache server is further used to eliminate the data in the cache or write data into the cache according to the historical query situation of the first computing node on the data in the data source.
24. A computing system, characterized in that: The computing system includes a first computing node and a storage node; The first computing node is used to execute the method executed by the first computing node as claimed in any one of claims 1 to 13; The storage node is used to execute the method executed by the storage node according to any one of claims 1 to 13.
25. The computing system of claim 24, wherein: The computing system further includes a second computing node, and the second computing node is configured to execute the method executed by the second computing node as claimed in claim 10 .
26. A computing device, characterized in that The computing device includes a processor and a memory; The processor of the computing device is used to execute the instructions stored in the memory, so that the computing device executes the method executed by the first computing node or the second computing node as claimed in any one of claims 1 to 13.
27. A computing device, characterized in that The computing device includes a processor and a memory; The processor of the computing device is used to execute the instructions stored in the memory, so that the computing device executes the method executed by the storage node as claimed in any one of claims 1 to 13.
28. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 13.
Citation Information
Cited By
Query method and system of proxy storage engine under storage and calculation separation architecture
CN119441306A
