Data query method and device, computer equipment and storage medium
By employing a multi-level query method using segment index record tables and block index record tables, the target query data is determined, solving the problem of long query times in traditional multi-dimensional data queries, improving query efficiency and ensuring the accuracy of results.
Patent Information
- Application Number
- CN202410973507.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-01
AI Technical Summary
Traditional multi-dimensional data query processes are time-consuming and inefficient, failing to quickly filter out the required data from massive amounts of data.
By employing a multi-level query method that combines segment index record tables, block index record tables, and dimension combination identifiers, the target query data can be determined, reducing the number of direct joins with massive data tables.
It improves data query efficiency, ensuring that the query results at each level simultaneously satisfy all query dimensions and dimension identifiers, thus avoiding memory overflow and system crashes.
Smart Images

Figure CN118885504A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data query method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of computer technology, massive amounts of data can be stored in databases. The dimensions of data are becoming increasingly rich, and the dimensional values of data are also increasing. Through data query, the required data can be quickly filtered out from the massive amount of data.
[0003] In traditional technology, when querying multiple dimensional values, it is necessary to associate data tables multiple times. The data tables store a massive amount of data, and the query process is time-consuming, resulting in low query efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a data query method, device, computer equipment, computer-readable storage medium and computer program product that can improve data query efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a data query method. The method comprises:
[0006] Obtaining a query dimension and a query dimension identifier corresponding to the query dimension;
[0007] Determine a target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier;
[0008] Determine a target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier, and the target segment identifier;
[0009] Determine a target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier, and the target block identifier;
[0010] Based on the target dimension combination identifier, target query data is determined.
[0011] In a second aspect, the present application also provides a data query device. The device comprises:
[0012] An acquisition module, used to acquire a query dimension and a query dimension identifier corresponding to the query dimension;
[0013] A segment identifier determination module, configured to determine a target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier;
[0014] A block identifier determination module, configured to determine a target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier;
[0015] A combination identifier determination module, used to determine a target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier;
[0016] The query module is used to determine the target query data based on the target dimension combination identifier.
[0017] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0019] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.
[0020] The above-mentioned data query method, device, computer equipment, storage medium and computer program product obtain the query dimension and the query dimension identifier corresponding to the query dimension; determine the target segment identifier based on the segment index record table, the query dimension and the query dimension identifier; determine the target block identifier based on the block index record table, the query dimension identifier and the target segment identifier corresponding to the query dimension; determine the target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier; and determine the target query data based on the target dimension combination identifier. First, the target segment identifier is determined through the segment index record table, the query dimension and the query dimension identifier; secondly, the target block identifier is determined through the block index record table, the query dimension identifier and the target segment identifier corresponding to the query dimension; thirdly, the target dimension combination identifier is determined through the block index record table, the query dimension identifier, the target segment identifier and the target block identifier; finally, the target query data is determined through the target dimension combination identifier. In the entire query process, only in the step of determining the target query data through the target dimension combination identifier, it is associated with the massive data table. Compared with screening each dimension in the data table, the efficiency of data query is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 An application environment diagram of a data query method in an embodiment;
[0022] Figure 2A schematic diagram of a flow chart of a data query method in an embodiment;
[0023] Figure 3 A schematic diagram of a segment index record table in an embodiment;
[0024] Figure 4 is a schematic diagram of a dimension combination table in one embodiment;
[0025] Figure 5 A schematic diagram of a flow chart of steps for generating a block index record table and a segment index record table in one embodiment;
[0026] Figure 6 is a schematic diagram of an original data table to be queried in one embodiment;
[0027] Figure 7 is a schematic diagram of a dimension value table in one embodiment;
[0028] Figure 8 is a schematic diagram of a target data table to be queried in one embodiment;
[0029] Fig. 9 A schematic flow chart of steps for generating a block index record table and a segment index record table in another embodiment;
[0030] Fig.10 is a schematic diagram of a dimension combination table in one embodiment;
[0031] Fig.11 A schematic diagram of the relationship between a dimension value table, a dimension combination table, a block index record table, and a segment index record table in one embodiment;
[0032] Fig.12 is a flow chart of a data query method in one embodiment;
[0033] Fig.13 is a structural block diagram of a data query device in an embodiment;
[0034] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] The data query method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Both the terminal and the server can be used alone to execute the data query method provided in the embodiment of the present application. The terminal and the server can also be used in collaboration to execute the data query method provided in the embodiment of the present application. For example, the server obtains the query dimension and the query dimension identifier corresponding to the query dimension; based on the segment index record table, the query dimension and the query dimension identifier, the target segment identifier is determined; based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier, the target block identifier is determined; based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier, the target dimension combination identifier is determined; based on the target dimension combination identifier, the target query data is determined. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0037] In one embodiment, Figure 2 As shown, a data query method is provided, which can be applied to a computer device, which can be a terminal or a server, and can be executed by the terminal or the server itself alone, or can be implemented through interaction between the terminal and the server. This embodiment takes the method applied to a computer device as an example for explanation, and includes steps 202 to 210.
[0038] Step 202: Obtain the query dimension and the query dimension identifier corresponding to the query dimension.
[0039] The query dimension refers to the dimension for filtering data. The query dimension can be one or more. For example, the query dimension is the accounting date and the material batch number. The query dimension identifier refers to the value representing the query dimension value. The data type of the query dimension identifier is integer. The query dimension identifier can be an integer query dimension value or a query dimension code representing a non-integer query dimension value. The data type of the query dimension code is integer.
[0040] Exemplarily, a computer device obtains a query instruction, obtains a query dimension and a query dimension value corresponding to the query dimension from the query instruction, and determines a query dimension identifier corresponding to the query dimension based on the query dimension value corresponding to the query dimension.
[0041] Step 204: determine the target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier.
[0042] The segment index record table refers to a table that records the correspondence between dimensions, dimension identifiers, and segment identifiers. The segment index record table includes at least three dimensions, namely, dimensions, dimension identifiers, and segment identifiers. For example, Figure 3 The segment index record table shown includes three dimensions: dimension, dimension identifier and segment identifier. The segment identifier refers to the identifier of the segment where the block identifier of the dimension combination identifier is located, that is, the segment identifier represents the value of the segment where the block identifier corresponding to the dimension combination identifier is located, and the target segment identifier refers to the segment identifier that matches the query dimension and the query dimension identifier.
[0043] Exemplarily, for each query dimension, the computer device filters out matching segment identifiers corresponding to the query dimension and the dimension identifier of the query dimension from the segment index record table, and determines the target segment identifier based on the matching segment identifiers corresponding to each query dimension.
[0044] In one embodiment, when there are multiple query dimensions, the computer device queries the multiple query dimensions and the matching segment identifiers corresponding to the dimension identifiers of the query dimensions in parallel, and then determines the target segment identifier based on the matching segment identifiers corresponding to the respective query dimensions. By querying the multiple query dimensions and the matching segment identifiers corresponding to the dimension identifiers of the query dimensions in parallel, the efficiency of determining the target segment identifier is improved.
[0045] Step 206: Determine the target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier.
[0046] The block index record table refers to a table that records the corresponding relationships among segment identifiers, block identifiers, dimension identifiers, and dimension combination identifiers. The block index record table may be in a header table mode or a bitmap table mode. The block index record table corresponds to a dimension one by one, that is, one dimension corresponds to one block index table. For example, Figure 4 As shown in the figure, the dimension combination table includes four queryable dimensions, namely organization, period, subject and department. There are block index record tables corresponding to organization, period, subject and department, and the four block index record tables are in header table mode. The block identifier refers to the identifier of the block where the dimension combination identifier is located, that is, the block identifier represents the value of the block to which the dimension combination identifier belongs.
[0047] Exemplarily, for each query dimension, the computer device filters out the matching block identifiers corresponding to the query dimension identifier and the target segment identifier of the query dimension from the block index record table corresponding to the query dimension, and determines the target block identifier based on the matching block identifiers corresponding to each query dimension.
[0048] In one embodiment, when there are multiple query dimensions, the computer device screens out matching block identifiers corresponding to the query dimension identifiers and target segment identifiers of the query dimensions from the block index record table corresponding to the query dimensions in parallel, and then determines the target block identifier based on the matching block identifiers corresponding to the various query dimensions. By querying the matching block identifiers corresponding to the query dimension identifiers and target segment identifiers of multiple query dimensions in parallel, the efficiency of determining the target block identifier is improved.
[0049] Step 208, determining the target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier.
[0050] The dimension combination identifier refers to the value that represents the dimension combination. The dimension combination identifier corresponds to the dimension combination one by one, that is, the dimension combination identifier is unique, and different dimension combinations correspond to different dimension combination identifiers. The target dimension combination identifier refers to the dimension combination identifier that matches the query dimension and the query dimension identifier.
[0051] Exemplarily, for each query dimension, the computer device filters out the matching dimension combination identifiers corresponding to the query dimension identifier, the target segment identifier, and the target block identifier from the block index record table corresponding to the query dimension, and determines the target dimension combination identifier based on the matching dimension combination identifiers corresponding to each query dimension.
[0052] Step 210, determining target query data based on the target dimension combination identifier.
[0053] The target query data refers to the data matching the query dimension and the query dimension identifier.
[0054] Exemplarily, the computer device obtains a target storage address corresponding to the target dimension combination identifier, and obtains target query data based on the target storage address.
[0055] In the above data query method, the target segment identifier is first determined through the segment index record table, query dimension and query dimension identifier, and the target block identifier is secondly determined through the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier, and the target dimension combination identifier is determined again through the block index record table, the query dimension identifier, the target segment identifier and the target block identifier, and finally the target query data is determined through the target dimension combination identifier. In the entire query process, only in the step of determining the target query data through the target dimension combination identifier is the target query data associated with the massive data table, which improves the efficiency of data query compared to screening each dimension in the data table.
[0056] In one embodiment, based on the segment index record table, the query dimension, and the query dimension identifier, determining the target segment identifier includes:
[0057] For each query dimension, based on the query dimension and the query dimension identifier corresponding to the query dimension, determine the reference segment identifier corresponding to the query dimension from the candidate segment identifiers in the segment index record table; the segment index record table includes the correspondence between the candidate dimensions, the candidate dimension identifiers and the candidate segment identifiers; when there are at least two query dimensions, the intersection of the reference segment identifiers corresponding to the multiple query dimensions is calculated to obtain the target segment identifier; when there is one query dimension, the reference segment identifier corresponding to the query dimension is determined as the target segment identifier.
[0058] The candidate segment identifier refers to the segment identifier in the segment index record table, for example Figure 3 382 shown in . The reference segment identifier refers to a segment identifier that matches a query dimension and a query dimension identifier corresponding to the query dimension.
[0059] Exemplarily, a computer device obtains a segment index record table, and for each query dimension, determines, among the candidate segment identifiers in the segment index record table, a candidate segment identifier that matches the query dimension and the query dimension identifier corresponding to the query dimension as a reference segment identifier corresponding to the query dimension; if there are at least two query dimensions, the intersection of the reference segment identifiers corresponding to the multiple query dimensions is calculated to obtain a target segment identifier; if there is one query dimension, the reference segment identifier corresponding to the query dimension is determined as the target segment identifier.
[0060] In this embodiment, the target segment identifier is determined by the segment index record table, the query dimension and the query dimension identifier. If there are at least two query dimensions, the intersection of the reference segment identifiers corresponding to the multiple query dimensions is calculated to obtain the target segment identifier. If there is one query dimension, the reference segment identifier corresponding to the query dimension is determined as the target segment identifier, ensuring that the target segment identifier matches all query dimensions and query dimension identifiers, that is, using a multi-level query method to ensure that the results of each level of query simultaneously satisfy all query dimensions and query dimension identifiers.
[0061] In one embodiment, based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier, determining the target block identifier includes:
[0062] For each query dimension, obtain the block index record table corresponding to the query dimension; based on the target segment identifier and the query dimension identifier corresponding to the query dimension, determine the reference block identifier corresponding to the query dimension from the block index record table; when there are at least two query dimensions, find the intersection of the reference block identifiers corresponding to the multiple query dimensions to obtain the target block identifier; when there is one query dimension, determine the reference block identifier corresponding to the query dimension as the target block identifier.
[0063] The reference block identifier refers to a block identifier that matches a query dimension identifier corresponding to a query dimension and a target segment identifier.
[0064] Exemplarily, for each query dimension, the computer device obtains a block index record table corresponding to the query dimension, and determines from the block index record table a reference block identifier corresponding to the target segment identifier and the query dimension identifier corresponding to the query dimension; if there are at least two query dimensions, the intersection of the reference block identifiers corresponding to the multiple query dimensions is calculated to obtain a target block identifier; if there is one query dimension, the reference block identifier corresponding to the query dimension is determined as the target block identifier.
[0065] In this embodiment, the target block identifier is determined by the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier. If there are at least two query dimensions, the intersection of the reference block identifiers corresponding to the multiple query dimensions is calculated to obtain the target block identifier. If there is one query dimension, the reference block identifier corresponding to the query dimension is determined as the target block identifier, ensuring that the target block identifier matches all query dimensions and query dimension identifiers, that is, using a multi-level query method to ensure that the results of each level of query simultaneously satisfy all query dimensions and query dimension identifiers.
[0066] In one embodiment, based on the block index record table, the query dimension identifier, the target segment identifier, and the target block identifier, determining the target dimension combination identifier includes:
[0067] For each query dimension, obtain the block index record table corresponding to the query dimension; determine the reference key value from the block index record table based on the query dimension identifier, target segment identifier and target block identifier corresponding to the query dimension; obtain the reference dimension combination identifier corresponding to the reference key value from the block index record table; when there are at least two query dimensions, find the intersection of the reference dimension combination identifiers corresponding to the multiple query dimensions to obtain the target dimension combination identifier; when there is one query dimension, determine the reference dimension combination identifier corresponding to the query dimension as the target dimension combination identifier.
[0068] The reference key value refers to the key value that matches the query dimension identifier, the target segment identifier, and the target block identifier in the block index record table corresponding to the query dimension, for example, Figure 4 As shown, in the block index record table corresponding to the organization, the reference key value matching the block identifier 24415, the segment identifier 382 and the dimension identifier 100001 is 1, or, in the block index record table corresponding to the department, the reference key value matching the block identifier 24415, the segment identifier 382 and the dimension identifier 400001 is 5. The block index record table includes a header record and a row record, wherein the header record includes the corresponding relationship between the key value, the block identifier, the segment identifier and the dimension identifier, and the row record includes the corresponding relationship between the header record key value and the dimension combination identifier, for example, Figure 4 The block index record table shown in includes a header record and a row record.
[0069] Exemplarily, for each query dimension, the computer device obtains the block index record table corresponding to the query dimension, determines the reference key value that matches the query dimension identifier, the target segment identifier and the target block identifier from the header record of the block index record table, obtains the reference dimension combination identifier corresponding to the reference key value from the row record of the block index record table, and if there are at least two query dimensions, the intersection of the reference dimension combination identifiers corresponding to the multiple query dimensions is calculated to obtain the target dimension combination identifier; if there is only one query dimension, the reference dimension combination identifier corresponding to the query dimension is determined as the target dimension combination identifier.
[0070] In this embodiment, the target dimension combination identifier is determined through the block index record table, the query dimension identifier, the target segment identifier and the target block identifier. If there are at least two query dimensions, the intersection of the reference dimension combination identifiers corresponding to the multiple query dimensions is calculated to obtain the target dimension combination identifier. If there is one query dimension, the reference dimension combination identifier corresponding to the query dimension is determined as the target dimension combination identifier, ensuring that the target dimension combination identifier matches all query dimensions and query dimension identifiers, that is, using a multi-level query method to ensure that the results of each level of query simultaneously satisfy all query dimensions and query dimension identifiers.
[0071] In one embodiment, obtaining the query dimension and the query dimension identifier corresponding to the query dimension includes:
[0072] Obtain a query instruction; the query instruction includes at least one query dimension and a query dimension value corresponding to the query dimension; for each query dimension, obtain the dimension value data type corresponding to the query dimension; when the dimension value data type is non-integer, encode the query dimension corresponding to the query dimension value of the query dimension and determine it as the query dimension identifier corresponding to the query dimension; when the dimension value data type is integer, determine the query dimension value of the query dimension as the query dimension identifier corresponding to the query dimension.
[0073] Among them, the query instruction refers to the instruction for querying data, and the query instruction includes one or more query dimensions and the query dimension values corresponding to the query dimensions. The query dimension value refers to the numerical value corresponding to the query dimension. The dimension value data type refers to the data type of the dimension value, and the dimension value data type can be integer, floating point, text, etc. Non-integer refers to other data types other than integer, and non-integer can be floating point and text, etc. The query dimension code refers to the numerical value that represents the query dimension value, and the data type is integer.
[0074] Exemplarily, a computer device obtains a query instruction, obtains a query dimension and a query dimension value corresponding to the query dimension from the query instruction, obtains the dimension value data type corresponding to the query dimension for each query dimension, determines whether the dimension value data type is an integer, and if the dimension value data type is non-integer, obtains a dimension value table corresponding to the query dimension, obtains the query dimension code corresponding to the query dimension value from the dimension value table, and determines the query dimension code as the query dimension identifier corresponding to the query dimension; if the dimension value data type is an integer, determines the query dimension value of the query dimension as the query dimension identifier corresponding to the query dimension.
[0075] In this embodiment, when the dimension value data type is non-integer, the query dimension code corresponding to the query dimension value of the query dimension is determined as the query dimension identifier corresponding to the query dimension; when the dimension value data type is integer, the query dimension value of the query dimension is determined as the query dimension identifier corresponding to the query dimension, that is, the non-integer query dimension value is converted into an integer query dimension identifier, so as to provide the query dimension and the integer query dimension identifier for the subsequent query process.
[0076] In one embodiment, Figure 5 As shown, before obtaining the query dimension and the query dimension identifier corresponding to the query dimension, the following is also included:
[0077] Step 502, obtaining an original data table to be queried; the original data table to be queried has multiple dimensions.
[0078] The original data table to be queried refers to a table storing data in a relational database. Dimensions refer to fields in the original data table to be queried, for example, Figure 6 The original data table to be queried includes six dimensions, namely key value, sequence number, accounting date, material batch number, unit price amount and custom calibration.
[0079] Exemplarily, a computer device obtains an original data table to be queried, where the original data table to be queried includes multiple dimensions and multiple dimension values corresponding to each dimension.
[0080] Step 504: for dimensions whose dimension value data type is non-integer, generate a dimension value table corresponding to the dimension; the dimension value table includes the dimension value of the dimension and the dimension code corresponding to the dimension value, and the dimension code is an integer.
[0081] The dimension value table refers to a table that records the correspondence between dimension values and dimension codes. The dimension value table can correspond to dimensions one by one. For example, if the dimension value data type of a dimension is non-integer, then the dimension corresponds to a dimension value table, which records the correspondence between the dimension value and the dimension code of the dimension. The dimension value table corresponds to dimensions that can have the same data type as multiple dimension values. For example, Figure 7As shown, the dimension value table shown in 7(a) records the correspondence between the dimension value and the dimension code corresponding to the dimension whose dimension value data type is the date type, the dimension value table shown in 7(b) records the correspondence between the dimension value and the dimension code corresponding to the dimension whose dimension value data type is the text type, and the dimension value table shown in 7(c) records the correspondence between the dimension value and the dimension code corresponding to the dimension whose dimension value data type is the floating point type.
[0082] Exemplarily, for a dimension whose dimension value data type is non-integer, the dimension value corresponding to the dimension is obtained from the original data table to be queried, a dimension code corresponding to the dimension value is generated one-to-one, and based on the dimension value of the dimension and the corresponding dimension code, a dimension value table corresponding to the dimension is generated.
[0083] Step 506: Based on the dimension value table corresponding to the dimension, replace the non-integer dimension value in the original data table to be queried with the corresponding dimension code to obtain the target data table to be queried.
[0084] The target data table to be queried refers to a table whose dimension values are all of integer data type. The target data table to be queried corresponds to the original data table to be queried. For example, Figure 8 The target data table to be queried is shown in Figure 6 It corresponds to the original data table to be queried shown.
[0085] Exemplarily, based on the dimension value table corresponding to the dimension, the computer device replaces the non-integer dimension value in the original data table to be queried with the corresponding dimension code to obtain the target data table to be queried.
[0086] Step 508: Generate a block index record table and a segment index record table corresponding to each dimension based on the target data table to be queried.
[0087] Exemplarily, the computer device generates a dimension combination table based on the target data table to be queried, and generates a block index record table and a segment index record table corresponding to each dimension based on the dimension combination table.
[0088] In this embodiment, for dimensions whose dimension value data type is non-integer, a dimension value table including the dimension value and the dimension code corresponding to the dimension value is generated, and then based on the dimension value table, the non-integer dimension value in the original data table to be queried is replaced with the corresponding dimension code to obtain the target data table to be queried, which provides basic data for the subsequent generation of block index record table and segment index record table corresponding to each dimension.
[0089] In one embodiment, Fig. 9 As shown, based on the target data table to be queried, generating a block index record table and a segment index record table corresponding to each dimension includes:
[0090] Step 902: for each candidate combination in the target data table to be queried, based on the dimension values corresponding to each dimension in the candidate combination, generate a coding identifier corresponding to the candidate combination.
[0091] Among them, the candidate combination refers to a column of data in the target data table to be queried, and the candidate combination includes a dimension value corresponding to each dimension in the target data table to be queried. The coding identifier refers to a unique identifier that represents the candidate combination, that is, the coding identifier and the candidate combination correspond one-to-one, and different candidate combinations correspond to different coding identifiers. The coding identifier of the candidate combination can be generated by Hash coding, or by MD5 (Message-Digest Algorithm 5) or SHA (Secure Hash Algorithm) and the like.
[0092] Exemplarily, for each candidate combination in the target data table to be queried, the computer device generates a coding identifier corresponding to the candidate combination based on the dimension values corresponding to each dimension in the candidate combination.
[0093] Step 904: based on the coding identifiers corresponding to the multiple candidate combinations, deduplicate the multiple candidate combinations to obtain multiple dimensional combinations.
[0094] Among them, deduplication processing refers to the process of removing repeated candidate combinations. For example, the coding identifier corresponding to candidate combination 1 is 12123456, the coding identifier corresponding to candidate combination 2 is 12123466, the coding identifier corresponding to candidate combination 3 is 12123456, the coding identifier corresponding to candidate combination 4 is 121234576, and the coding identifier corresponding to candidate combination 5 is 12123456. The coding identifiers corresponding to candidate combination 1, candidate combination 3 and candidate combination 5 are all 12123456, indicating that candidate combination 1, candidate combination 3 and candidate combination 5 are the same. Candidate combination 1, candidate combination 3 and candidate combination 5 with repeated identifier 12123456 are deduplicated, and only one of candidate combination 1, candidate combination 3 and candidate combination 5 remains. Candidate combination 1, candidate combination 2 and candidate combination 4 obtained by deduplication processing are three-dimensional combinations.
[0095] Exemplarily, the computer device performs deduplication processing on multiple candidate combinations having the same coding identifier, and uses the candidate combinations obtained by the deduplication processing as dimensional combinations.
[0096] Step 906: Generate a dimension combination table based on the multiple dimension combinations; the dimension combination table includes the multiple dimension combinations and the dimension combination identifier corresponding to each dimension combination.
[0097] The dimension combination table refers to a table including multiple dimension combinations and dimension combination identifiers corresponding to the dimension combinations. Fig.10 As shown, the dimension combination table includes two dimension combinations, namely, organization 100001, period 200001, account 300001 and department 400001 is the first dimension combination, and the dimension combination identifier corresponding to this dimension combination is 100000000, and organization 100001, period 200001, account 300001 and department 400002 is the second dimension combination, and the dimension combination identifier corresponding to this dimension combination is 100000002.
[0098] Exemplarily, the computer device generates a unique dimension combination identifier corresponding to the dimension combination, and generates a dimension combination table based on the multiple dimension combinations and the dimension combination identifiers corresponding to the dimension combinations.
[0099] Step 908: for each dimension in the dimension combination table, determine the block index record table corresponding to the dimension based on the dimension value and the dimension combination identifier corresponding to the dimension; the block index record table includes the segment identifier and the block identifier determined by the dimension combination identifier.
[0100] Exemplarily, for each dimension in the dimension combination table, the computer device obtains the dimension value and the corresponding dimension combination identifier corresponding to the dimension, determines the block identifier and the segment identifier corresponding to the dimension combination identifier based on the dimension combination identifier, and generates a block index record table corresponding to the dimension based on multiple dimension combination identifiers corresponding to the dimension, the dimension value corresponding to the dimension combination identifier, the block identifier corresponding to the dimension combination identifier, and the segment identifier corresponding to the dimension combination identifier.
[0101] In one embodiment, based on the dimension combination identifier, determining the block identifier and segment identifier corresponding to the dimension combination identifier includes: obtaining a preset block threshold and a preset segment threshold, dividing the dimension combination identifier by the preset block threshold to obtain an initial block identifier, adding one to the initial block identifier to obtain a block identifier corresponding to the dimension combination identifier; dividing the block identifier by the preset segment threshold to obtain an initial segment identifier, adding one to the initial segment identifier to obtain a segment identifier corresponding to the dimension combination identifier. The preset block threshold and the preset segment threshold can be set according to actual needs. For example, if the dimension combination identifier is 100000000, the preset block threshold is 4096, and the preset segment threshold is 64, then the calculated block identifier is 24415 and the segment identifier is 382.
[0102] Step 910: Generate a segment index record table based on the dimension values and block identifiers in the block index record table corresponding to the multiple dimensions.
[0103] Exemplarily, the computer device obtains dimensions, segment identifiers and dimension values from a block index record table corresponding to multiple dimensions, and generates a segment index record table based on the correspondence between the dimensions, segment identifiers and dimension values.
[0104] In one embodiment, for each dimension in the target data table to be queried, the dimension value corresponding to the dimension is deduplicated to obtain the non-duplicate dimension value corresponding to the dimension; the non-duplicate dimension values of multiple dimensions are arranged and combined to generate a dimension combination table; the dimension combination table includes multiple dimension combinations and dimension combination identifiers corresponding to each dimension combination, and one dimension combination includes a non-duplicate dimension value for each dimension; for each dimension, based on the non-duplicate dimension value corresponding to the dimension and the dimension combination identifier, the block index record table corresponding to the dimension is determined; the block index record table includes a segment identifier and a block identifier determined by the dimension combination identifier; based on the dimension values and block identifiers in the block index record table corresponding to the multiple dimensions, a segment index record table is generated.
[0105] In this embodiment, a dimension combination table is generated through the target data table to be queried, and then a block index record table and a segment index record table corresponding to each dimension are generated through the dimension combination table, which provides accurate segment index record tables and block index record tables for data query and lays a foundation for realizing data query.
[0106] In an exemplary embodiment, the data query method includes:
[0107] Generate a dimension value table, a dimension combination table, a block index record table, and a segment index record table. The computer device obtains the original data table to be queried, which includes multiple dimensions and multiple dimension values corresponding to each dimension. For the dimension whose dimension value data type is non-integer, the dimension value corresponding to the dimension is obtained from the original data table to be queried, and a dimension code corresponding to the dimension value is generated one by one. Based on the dimension value of the dimension and the corresponding dimension code, a dimension value table corresponding to the dimension is generated. Based on the dimension value table corresponding to the dimension, the non-integer dimension value in the original data table to be queried is replaced with the corresponding dimension code to obtain the target data table to be queried.
[0108] For each candidate combination in the target data table to be queried, the computer device generates a coding identifier corresponding to the candidate combination based on the dimension values corresponding to each dimension in the candidate combination; deduplicates multiple candidate combinations with the same coding identifier, and uses the candidate combinations obtained by the deduplication as dimension combinations; generates a unique dimension combination identifier corresponding to the dimension combination, and generates a dimension combination table based on multiple dimension combinations and the dimension combination identifiers corresponding to the dimension combinations.
[0109] For each dimension in the dimension combination table, the computer device obtains the dimension value and the corresponding dimension combination identifier corresponding to the dimension, obtains a preset block threshold and a preset segment threshold, divides the preset block threshold by the dimension combination identifier to obtain an initial block identifier, adds one to the initial block identifier, and obtains a block identifier corresponding to the dimension combination identifier; divides the block identifier by the preset segment threshold to obtain an initial segment identifier, adds one to the initial segment identifier, and obtains a segment identifier corresponding to the dimension combination identifier; based on multiple dimension combination identifiers corresponding to the dimension, the dimension value corresponding to the dimension combination identifier, the block identifier corresponding to the dimension combination identifier, and the segment identifier corresponding to the dimension combination identifier, a block index record table corresponding to the dimension is generated.
[0110] The computer device obtains the dimension, segment identifier and dimension value from the block index record table corresponding to the multiple dimensions, and generates the segment index record table based on the correspondence between the dimension, segment identifier and dimension value. The relationship between the dimension value table, dimension combination table, block index record table and segment index record table is as follows: Fig.11 shown.
[0111] Data query process is as follows Fig.12 As shown, it includes: the computer device obtains a query instruction, obtains the query dimension and the query dimension value corresponding to the query dimension from the query instruction, obtains the dimension value data type corresponding to the query dimension for each query dimension, determines whether the dimension value data type is an integer, and if the dimension value data type is non-integer, obtains the dimension value table corresponding to the query dimension, obtains the query dimension code corresponding to the query dimension value from the dimension value table, and determines the query dimension code as the query dimension identifier corresponding to the query dimension; if the dimension value data type is an integer, determines the query dimension value of the query dimension as the query dimension identifier corresponding to the query dimension.
[0112] The computer device obtains a segment index record table, and for each query dimension, determines the candidate segment identifier in the segment index record table that matches the query dimension and the query dimension identifier corresponding to the query dimension as the reference segment identifier corresponding to the query dimension. If there are at least two query dimensions, the intersection of the reference segment identifiers corresponding to the multiple query dimensions is calculated to obtain the target segment identifier; if there is one query dimension, the reference segment identifier corresponding to the query dimension is determined as the target segment identifier.
[0113] The computer device obtains a block index record table corresponding to each query dimension, and determines a reference block identifier corresponding to the target segment identifier and the query dimension identifier corresponding to the query dimension from the block index record table. If there are at least two query dimensions, the intersection of the reference block identifiers corresponding to the multiple query dimensions is obtained to obtain the target block identifier; if there is one query dimension, the reference block identifier corresponding to the query dimension is determined as the target block identifier.
[0114] For each query dimension, the computer device obtains the block index record table corresponding to the query dimension, determines the reference key value that matches the query dimension identifier, the target segment identifier and the target block identifier from the header record of the block index record table, obtains the reference dimension combination identifier corresponding to the reference key value from the row record of the block index record table, and if there are at least two query dimensions, the intersection of the reference dimension combination identifiers corresponding to the multiple query dimensions is calculated to obtain the target dimension combination identifier; if there is only one query dimension, the reference dimension combination identifier corresponding to the query dimension is determined as the target dimension combination identifier.
[0115] The computer device obtains a target storage address corresponding to the target dimension combination identifier, and obtains target query data based on the target storage address.
[0116] In the above data query method, the target segment identifier is first determined through the segment index record table, query dimension and query dimension identifier, and the target block identifier is determined through the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier, and the target dimension combination identifier is determined again through the block index record table, the query dimension identifier, the target segment identifier and the target block identifier. Finally, the target query data is determined through the target dimension combination identifier. In the entire query process, only in the step of determining the target query data through the target dimension combination identifier, the target query data is associated with the massive data table. Compared with screening each dimension in the data table, the efficiency of data query is improved. Moreover, the multi-level query method is used to ensure that the results of each level of query simultaneously meet all query dimensions and query dimension identifiers, and the query results of each level are complete and independent. In addition, the multi-level query method can avoid memory overflow and downtime caused by excessive data combination relationships.
[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0118] Based on the same inventive concept, the embodiment of the present application also provides a data query device for implementing the data query method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data query device embodiments provided below can refer to the limitations on the data query method above, and will not be repeated here.
[0119] In one embodiment, Fig.13 As shown, a data query device is provided, including: an acquisition module 1302, a segment identification determination module 1304, a block identification determination module 1306, a combination identification determination module 1308 and a query module 1310, wherein:
[0120] An acquisition module 1302 is used to acquire a query dimension and a query dimension identifier corresponding to the query dimension;
[0121] The segment identifier determination module 1304 is used to determine the target segment identifier based on the segment index record table, the query dimension and the query dimension identifier;
[0122] The block identifier determination module 1306 is used to determine the target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier;
[0123] A combination identifier determination module 1308 is used to determine a target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier;
[0124] The query module 1310 is used to determine target query data based on the target dimension combination identifier.
[0125] In one embodiment, the segment identifier determination module 1304 is also used to: for each query dimension, based on the query dimension and the query dimension identifier corresponding to the query dimension, determine the reference segment identifier corresponding to the query dimension from the candidate segment identifiers in the segment index record table; the segment index record table includes the correspondence between the candidate dimensions, the candidate dimension identifiers and the candidate segment identifiers; when there are at least two query dimensions, find the intersection of the reference segment identifiers corresponding to the multiple query dimensions to obtain the target segment identifier; when there is one query dimension, determine the reference segment identifier corresponding to the query dimension as the target segment identifier.
[0126] In one embodiment, the block identifier determination module 1306 is also used to: for each query dimension, obtain a block index record table corresponding to the query dimension; based on the target segment identifier and the query dimension identifier corresponding to the query dimension, determine the reference block identifier corresponding to the query dimension from the block index record table; when there are at least two query dimensions, find the intersection of the reference block identifiers corresponding to multiple query dimensions to obtain the target block identifier; when there is one query dimension, determine the reference block identifier corresponding to the query dimension as the target block identifier.
[0127] In one embodiment, the combination identifier determination module 1308 is also used to: for each query dimension, obtain the block index record table corresponding to the query dimension; determine the reference key value from the block index record table based on the query dimension identifier, target segment identifier and target block identifier corresponding to the query dimension; obtain the reference dimension combination identifier corresponding to the reference key value from the block index record table; when there are at least two query dimensions, find the intersection of the reference dimension combination identifiers corresponding to multiple query dimensions to obtain the target dimension combination identifier; when there is one query dimension, determine the reference dimension combination identifier corresponding to the query dimension as the target dimension combination identifier.
[0128] In one embodiment, the acquisition module 1302 is also used to: obtain a query instruction; the query instruction includes at least one query dimension and a query dimension value corresponding to the query dimension; for each query dimension, obtain the dimension value data type corresponding to the query dimension; when the dimension value data type is non-integer, encode the query dimension corresponding to the query dimension value of the query dimension and determine it as the query dimension identifier corresponding to the query dimension; when the dimension value data type is integer, determine the query dimension value of the query dimension as the query dimension identifier corresponding to the query dimension.
[0129] In one embodiment, the data query device also includes a creation module, which is used to: obtain an original data table to be queried; there are multiple dimensions in the original data table to be queried; for dimensions whose dimension value data type is non-integer, generate a dimension value table corresponding to the dimension; the dimension value table includes the dimension value of the dimension and the dimension code corresponding to the dimension value, and the dimension code is an integer; based on the dimension value table corresponding to the dimension, replace the non-integer dimension value in the original data table to be queried with the corresponding dimension code to obtain the target data table to be queried; based on the target data table to be queried, generate a block index record table and a segment index record table corresponding to each dimension.
[0130] In one embodiment, the creation module is also used to: for each candidate combination in the target data table to be queried, based on the dimension values corresponding to each dimension in the candidate combination, generate a coding identifier corresponding to the candidate combination; based on the coding identifiers corresponding to multiple candidate combinations, deduplicate the multiple candidate combinations to obtain multiple dimension combinations; based on the multiple dimension combinations, generate a dimension combination table; the dimension combination table includes multiple dimension combinations and dimension combination identifiers corresponding to each dimension combination; for each dimension in the dimension combination table, based on the dimension value corresponding to the dimension and the dimension combination identifier, determine the block index record table corresponding to the dimension; the block index record table includes a segment identifier and a block identifier determined by the dimension combination identifier; based on the dimension values and block identifiers in the block index record table corresponding to the multiple dimensions, generate a segment index record table.
[0131] Each module in the above data query device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0132] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data query method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0133] Those skilled in the art will understand that Fig.14The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0136] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0137] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data query method, It is characterized in that The method comprises: Obtaining a query dimension and a query dimension identifier corresponding to the query dimension; Determine a target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier; Determine a target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier, and the target segment identifier; Determine a target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier, and the target block identifier; Based on the target dimension combination identifier, target query data is determined.
2. The method according to claim 1, It is characterized in that The determining the target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier includes: For each of the query dimensions, based on the query dimension and the query dimension identifier corresponding to the query dimension, determine the reference segment identifier corresponding to the query dimension from the candidate segment identifiers in the segment index record table; the segment index record table includes a correspondence between the candidate dimension, the candidate dimension identifier and the candidate segment identifier; When there are at least two of the query dimensions, finding the intersection of reference segment identifiers corresponding to the multiple query dimensions to obtain a target segment identifier; In the case that there is one query dimension, the reference segment identifier corresponding to the query dimension is determined as the target segment identifier.
3. The method according to claim 1, It is characterized in that The determining the target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier, and the target segment identifier includes: For each of the query dimensions, obtaining a block index record table corresponding to the query dimension; Based on the target segment identifier and the query dimension identifier corresponding to the query dimension, determining a reference block identifier corresponding to the query dimension from the block index record table; In the case where there are at least two query dimensions, intersection of reference block identifiers corresponding to a plurality of query dimensions is obtained to obtain a target block identifier; In the case that there is one query dimension, the reference block identifier corresponding to the query dimension is determined as the target block identifier.
4. The method according to claim 1, It is characterized in that The determining of the target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier, and the target block identifier includes: For each of the query dimensions, obtaining a block index record table corresponding to the query dimension; Determine a reference key value from the block index record table based on a query dimension identifier corresponding to the query dimension, the target segment identifier, and the target block identifier; Obtaining a reference dimension combination identifier corresponding to the reference key value from the block index record table; In the case where there are at least two of the query dimensions, finding the intersection of reference dimension combination identifiers corresponding to the multiple query dimensions to obtain a target dimension combination identifier; In the case that there is one query dimension, the reference dimension combination identifier corresponding to the query dimension is determined as the target dimension combination identifier.
5. The method according to claim 1, It is characterized in that The obtaining of the query dimension and the query dimension identifier corresponding to the query dimension includes: Obtaining a query instruction; the query instruction includes at least one query dimension and a query dimension value corresponding to the query dimension; For each of the query dimensions, obtain the dimension value data type corresponding to the query dimension; In the case where the dimension value data type is non-integer, the query dimension code corresponding to the query dimension value of the query dimension is determined as the query dimension identifier corresponding to the query dimension; When the dimension value data type is an integer, the query dimension value of the query dimension is determined as the query dimension identifier corresponding to the query dimension.
6. The method according to claim 1, It is characterized in that Before obtaining the query dimension and the query dimension identifier corresponding to the query dimension, the method further includes: Obtaining an original data table to be queried; wherein the original data table to be queried has multiple dimensions; For a dimension whose dimension value data type is non-integer, a dimension value table corresponding to the dimension is generated; the dimension value table includes the dimension value of the dimension and the dimension code corresponding to the dimension value, and the dimension code is an integer; Based on the dimension value table corresponding to the dimension, the non-integer dimension value in the original data table to be queried is replaced with the corresponding dimension code to obtain the target data table to be queried; Based on the target data table to be queried, a block index record table and a segment index record table corresponding to each dimension are generated.
7. The method according to claim 6, It is characterized in that The generating, based on the target data table to be queried, a block index record table and a segment index record table corresponding to each dimension comprises: For each candidate combination in the target data table to be queried, generating a coding identifier corresponding to the candidate combination based on the dimension values corresponding to each dimension in the candidate combination; Based on the coding identifiers corresponding to the multiple candidate combinations, deduplication processing is performed on the multiple candidate combinations to obtain multiple dimensional combinations; Based on the plurality of dimension combinations, a dimension combination table is generated; the dimension combination table includes the plurality of dimension combinations and a dimension combination identifier corresponding to each dimension combination; For each dimension in the dimension combination table, based on the dimension value corresponding to the dimension and the dimension combination identifier, determine a block index record table corresponding to the dimension; the block index record table includes a segment identifier and a block identifier determined by the dimension combination identifier; A segment index record table is generated based on the dimension values and block identifiers in the block index record table corresponding to the multiple dimensions.
8. A data query device, It is characterized in that The device comprises: An acquisition module, used to acquire a query dimension and a query dimension identifier corresponding to the query dimension; A segment identifier determination module, configured to determine a target segment identifier based on the segment index record table, the query dimension, and the query dimension identifier; A block identifier determination module, configured to determine a target block identifier based on the block index record table corresponding to the query dimension, the query dimension identifier and the target segment identifier; A combination identifier determination module, used to determine a target dimension combination identifier based on the block index record table, the query dimension identifier, the target segment identifier and the target block identifier; The query module is used to determine the target query data based on the target dimension combination identifier.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data query method and device
CN109561326A
Chat record query method and device, terminal and computer storage medium
CN109829086A
Rule engine establishing method and device based on attribute identification
CN114579569A
Data processing method and device, computer equipment and storage medium
CN117349320A
Method and system for query processing by combining indexes of multilevel granularity or composition
US20030195869A1
