Implicit Partition
Through the implicit partitioning method and insertion strategy, the database slice structure is dynamically adjusted to solve the performance optimization problem of the database management system under complex queries and data changes, and achieve efficient data management and adaptability.
Patent Information
- Application Number
- CN202010521710.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-11
- Filing Date
- 2020-06-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-10
AI Technical Summary
Existing database management systems are difficult to effectively optimize performance when processing complex queries and large amounts of data. Especially when data grows and changes, static partitioning methods cannot adapt to these changes, resulting in performance degradation.
Use the implicit partitioning method to generate a hierarchically arranged node structure by selecting multiple indexes, dynamically identify and store data value ranges, use insertion strategies to adjust the partitioning structure, ensure that data is stored in appropriate database slices, and dynamically adjust to adapt to the data change.
It achieves efficient data management under complex queries and data changes, avoids the shortcomings of static partitioning methods, improves database performance and response time, and has strong adaptability.
Smart Images

Figure CN112069191B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to data processing and, more particularly, to implicit partitioning. Background Art
[0002] Database management systems have become an integral part of many computer systems. For example, some systems process hundreds or even thousands of transactions per second. On the other hand, some systems perform very complex multi-dimensional analysis of data. In both cases, the underlying database may need to process responses to queries very quickly to meet the transaction time requirements of the system. The data stored by such a system may be stored in one or more partitions. The underlying database faces the challenge of optimizing performance given the complexity of the queries, the amount of data stored, and / or its capacity. Summary of the invention
[0003] In some implementations, the present subject matter relates to a computer-implemented method for implicitly partitioning data. The method may include: selecting an index from a plurality of indexes, the index corresponding to a plurality of data value ranges stored in a plurality of database slices of a database; generating a partitioning structure for the selected index, the partitioning structure comprising a plurality of hierarchically arranged nodes, each node corresponding to a data value range from the plurality of stored data value ranges, and at least one database slice storing the corresponding data value range; receiving another data value range to store in the database; using the generated partitioning structure to identify a node in the generated partitioning structure corresponding to the received data value range, and at least one corresponding database slice is configured to store the received data value range; and storing the received data value range in the identified at least one database slice.
[0004] In some implementations, the current subject matter can include one or more of the following optional features. In some implementations, the identification of the node can include, upon determining that the identified database slice cannot store the received data value range, identifying another database slice configured to store the received another data value range. The storing can then include storing the received data value range in the identified database slice.
[0005] In some implementations, the identification of the node may include generating another database slice configured to store the received range of data values. The method may also include modifying the generated partitioning structure to include at least another node corresponding to the received range of data values. Upon determining that the identified database slice cannot store the received range of data values, another database slice may be generated. Then, storing may include storing the received range of data values in the generated database slice.
[0006] In some implementations, the selected index may be used to identify at least one of a node and a database slice.
[0007] In some implementations, identification can be performed using at least one insert strategy that defines at least one node in the generated partitioning structure corresponding to the received data value range and at least one corresponding database slice configured to store the received data value range.
[0008] In some implementations, the identification of the node may include identifying another node in the generated partition structure corresponding to the received data value range using a predetermined threshold hop distance between the identified node and the generated partition structure based on the insertion strategy, and identifying at least one database slice corresponding to the other node configured to store the received data value range. The predetermined threshold hop distance may be at least two hops.
[0009] In some implementations, the storing may include at least one of: inserting the received range of data values into the at least one identified database slice, modifying the data stored in the at least one identified database slice using the received range of data values, deleting the data stored in the at least one identified database slice, and any combination thereof.
[0010] In some implementations, the method may further include: selecting another index from among the multiple indexes, which index may correspond to another multiple data value ranges stored in multiple database slices of the database; generating another partitioning structure for the selected index, which another partitioning structure may include another multiple hierarchically arranged nodes, and each node may correspond to another data value range from among the multiple another data value ranges stored, and at least one database slice stores the corresponding data value range; using the generated another partitioning structure and the generated partitioning structure to identify at least one database slice configured to store the received data value range; and storing the received data value range in the identified at least one database slice.
[0011] Also described is a non-transitory computer program product (i.e., a physically embodied computer program product) storing instructions that, when executed by one or more data processors of one or more computing systems, cause at least one data processor to perform the operations described herein. Similarly, a computer system that may include one or more data processors and a memory coupled to the one or more data processors is also described. The memory may temporarily or permanently store instructions that cause at least one processor to perform one or more operations described herein. In addition, the method may be implemented by one or more data processors within a single computing system or distributed among two or more computing systems. Such computing systems may be connected via one or more connections and may exchange data and / or commands or other instructions, etc., including but not limited to connections via a network (e.g., the Internet, a wireless wide area network, a local area network, a wide area network, a wired network, etc.), via direct connections between one or more of a plurality of computing systems, etc.
[0012] The details of one or more variations of the subject matter described herein are set forth in the accompanying drawings and the description below. Other features and advantages of the subject matter described herein will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate certain aspects of the subject matter disclosed herein and, together with the description, help explain some principles associated with the disclosed implementations.
[0014] Figure 1 An exemplary system for generating partition specifications according to some implementations of the current subject matter is shown;
[0015] Figure 2 shows an exemplary partitioning specification (e.g., in the form of a tree structure) that has been generated based on one or more slices according to some implementations of the current subject matter;
[0016] Figure 3a-3g illustrates various stages of an exemplary process for generating a partition specification according to some implementations of the current subject matter;
[0017] Figure 4 Another exemplary system for generating a partition specification according to some implementations of the current subject matter is shown;
[0018] Figure 5 is a diagram illustrating an exemplary system including a data storage application according to some implementations of the current subject matter;
[0019] Figure 6 It is shown Figure 5 A diagram of the details of the system;
[0020] Figure 7 is an exemplary system according to some implementations of the current subject matter; and
[0021] Figure 8 are exemplary methods according to some implementations of the current subject matter. DETAILED DESCRIPTION
[0022] To address these and potential other deficiencies of currently available solutions, one or more implementations of the present subject matter involve methods, systems, articles of manufacture, etc., which, among other possible advantages, can provide the ability to implicitly partition data for management, storage, retrieval, and / or any other operation.
[0023] Database management systems and the operations performed on the data managed by the database management system are becoming increasingly complex. For example, a database management system (or simply a database) can support relatively complex online analytical processing (OLAP, which can perform multidimensional analysis) to more straightforward transaction-based online transaction processing (OLTP). In addition, the database can be configured as a row storage database or a column storage database, each of which can have certain aspects about queries and other operations in the database. For example, a database may use a dictionary to encode data, while some databases may not. In addition to these different database layer differences, queries executed in the database may include complex sequences of operations to generate corresponding responses. In order to implement complex sequences, a query execution plan (or simply a query plan) can be implemented. A query plan can represent a series of operations, such as instructions, commands, etc., to access data in a database. The database may also include a query plan optimizer to determine an effective way to execute the query plan.
[0024] From the perspective of an application or client, accessing a database can be very cumbersome. For example, an application may need to query different types of databases using complex queries. Therefore, the application layer may need to be configured to handle various types of databases and various query types. Additionally or alternatively, each database may need to process queries from the application into a format and structure that a given database can handle. Pushing complex operations and support for a variety of different database types to the application layer may violate the desire to have a relatively light weight and / or easy to deploy application. On the other hand, pushing complex operations to the database layer where the data is stored may consume processing and / or memory resources in the database, and therefore may reduce the performance and response time of queries on the database layer.
[0025] A database system may use one or more partitioning configurations to store data. Partitioning in a database may refer to dividing a logical database or its elements into independent parts. Partitioning allows for improved manageability, performance, load balancing, and the like. In some cases, partitions may be distributed across multiple nodes, each of which may allow users to perform various operations (e.g., execution of transactions, etc.) on the partitions. This distribution may improve the performance of nodes that may experience frequent transactions that may involve retrieval, insertion, modification, view generation, and the like of data while maintaining data availability and security. Data partitioning may be performed by establishing separate smaller databases, splitting selected elements, and the like. Data may be partitioned using horizontal or vertical partitioning methods. Horizontal partitioning may place different rows into different tables (e.g., splitting users of different age groups). Vertical partitioning may create new tables with fewer columns, and additional tables may be used to store any remaining columns.
[0026] Data can be partitioned using "static partitions". For example, an administrator and / or software application can define specific data ranges that can be used for the purpose of partitioning the data. This may typically require specific knowledge of the data, the actual range of data values, and / or any other parameters used to define such predetermined partitions. At runtime, when a query is executed, certain partitions may be excluded from the query and / or result data set due to the predetermined data partitioning scheme. In some implementations, this behavior can even be enhanced using a "synopsis" (or outline) of each partition: if known, this can allow further "pruning" (or exclusion) of certain data partitions. However, the use of such static partitions may be cumbersome because it may not only require knowledge of the actual data value ranges, but may also not be able to effectively adapt to the growth and / or changes of the data.
[0027] In some implementations, the current subject matter can implicitly partition data without prior knowledge of data values and / or specific data ranges, where data partitioning is performed "on-the-fly" by determining the ideal partitioning point of the data value. This implicit partitioning can effectively adapt to the growth of data and changes to data values through modification, insertion, deletion, etc. In addition, the current subject matter can perform modifications to the previous partitioning structure (which has been determined based on the previous state of the data value) when inserting data values (and / or modifying, deleting, etc.) to ensure that the data value is optimally partitioned by insertion (and / or modification, deletion, etc.). The partitioning structure can be defined in the form of a tree for indexing, which identifies a specific set of data values in the database, which will be discussed below. Each node (or leaf, used interchangeably) in the tree can indicate a specific data value range, for example, an index "id" <200 corresponding to a branch (i.e., a node with any linked child nodes) of the data value range in the partition specification tree; an index "id" ≥200 corresponding to another branch, etc., which, in turn, can be further subdivided "on-the-fly". The insertion of new data may result in the creation of new slices (e.g., new small partitions) corresponding to the new data range values, and thus further branching of the partition tree. Slices may be created based on a particular insertion policy, which may be insertable and subject to change. For example, the policy may define that a new slice may need to be created even if a particular slice is not full (i.e., a new data value may be inserted); or, the policy may define that a new slice may not be created until a certain distance exists between nodes for a particular range of data values in the tree. In addition, the particular index for which the partition specification tree is created may be used to determine the right slice containing a particular range of data values, which may be useful for partition pruning purposes.
[0028] In some implementations, the current subject matter can be configured to generate partition specifications for data that can be stored in a database system. As described above, partition specifications can be defined "on the fly" using data slices included in a database and / or its partitions (it can be assumed that the data stored in the database is implicitly partitioned) and / or any new data value ranges that can be provided for insertion (e.g., resulting in the generation of new slices). The current subject matter can generate partition specifications using a tree structure, where nodes in the tree can correspond to specific data slices in the database. Data slices can be relatively small, thereby preventing data from moving across slice boundaries.
[0029] Figure 1An exemplary system 100 for generating partition specifications according to some implementations of the current subject matter is shown. The system 100 may include one or more users (user 1, user 2, ... user n) 102, an execution engine 104, and a database system 106, which may store data in one or more slices 108. The users 102, the execution engine 104, and the database system 106 may be communicatively coupled to each other using any type of network, including but not limited to wired, wireless, and / or a combination of both. The user 102 may include at least one of the following: a computer processor, a computing network, a software application, a server, a user interface, and / or any combination of hardware and / or software components. The database system 106 may include at least one of the following: a database, a storage location, a memory location, and / or any combination of hardware and / or software components. In some implementations, the database system 106 may be a High Performance Analytic Appliance ("HANA") system developed by SAP SE of Walldorf, Germany, as described below.
[0030] The execution engine 104 may include any combination of software and / or hardware components, and may be configured to receive and execute queries from one or more users 102 to obtain data from one or more slices 108 in the database system 106, insert data into one or more slices 108 in the database system 106, modify data stored in one or more slices 108 in the database system 106, delete data stored in one or more slices 108 in the database system 106, generate one or more new slices 108 (e.g., for insertion of new data), etc., and any combination thereof. In some implementations, the execution engine 104 may be included in the database system 106. Using one or more insertable strategies, data may be inserted, modified, deleted, etc., new slices may be created, existing slices may be modified, deleted, etc., which may result in modifications to an existing defined partitioning tree structure (e.g., adding more tree branches, splitting tree branches, etc.).
[0031] Execution of a query may typically require the generation of a query plan or query execution plan, which may be an ordered set of operations that may be used to access stored data (e.g., access data in a SQL relational database management system). After a query is submitted to the database system 106, the requested data may be retrieved based on the parameters of the query. The retrieved data may be aggregated / combined with any other data that the user may be looking for. Insertion, modification, deletion, etc. of data in the database system 106 may be performed using various SQL or other statements.
[0032] Figure 22 shows exemplary partitioning specifications 212 and 214 (eg, in the form of a tree structure) that have been generated based on one or more of slices 1 202-5 210. Figure 2 As shown, slices 202-205 can be tables including indexes. For example, slice 1 202 can include an identifier column and a minimum ("min") and maximum ("max") column. The identifier column can include "id", "city", and "order_date". Each of these identifiers includes a range of values, for example, the "id" identifier can include a range of "100-8100", the "city" identifier can include a range of "Heidelberg-New York", and the "order_date" identifier can include a range of "2018-04-01-2018-04-02".
[0033] Similarly, slice 2 204 may include different ranges for its identifiers. For example, the "id" identifier range may be "110-200"; the "city" identifier may include the range of "Aachen-Wuerzburg", and the "order_date" identifier may include the range of "2018-04-01-2018-05-01". In slice 3 206, the "id" identifier may include the range of "8100-8200", the "city" identifier may include the range of "Chicago-Washington", and the "order_date" identifier may include the range of "2018-04-02-2018-05-01". In slice 4 208, the "id" identifier may include the range of "180-250", the "city" identifier may include the range of "Bonn-Wolfsburg", and the "order_date" identifier may include the range of "2018-04-15-2018-05-15". Finally, in Sheet 5 210, the "id" identifier may include a range of "8150-8250", the "city" identifier may include a range of "Denver-Washington", and the "order_date" identifier may include a range of "2018-04-16-2018-05-16". In some implementations, sheets may also be organized by subject (e.g., Sheets 2 and 4 include data related to U.S. orders; Sheets 3 and 5 include data related to German orders, and Sheet 1 includes all data related to U.S. and German orders).
[0034] In some implementations, slices can be used to generate partition specifications (e.g., trees 212 and 214) where data can be organized based on identifiers, based on ranges identified in the slices. Partition specifications can be used for insertion, retrieval, modification, deletion, etc. of data stored in the slices. These specifications can be used to create new data slices if necessary or desired. For example, Figure 2 The data range values shown in may have been implicitly partitioned by having slices 2 and 4 containing data range values for Germany and slices 3 and 5 containing data range values for the U.S. This information, along with additional data range values that may be added and / or newly created data slices, may be used to define and further grow and / or modify a partitioning tree structure (e.g., structure 212).
[0035] like Figure 2 As shown, tree 212 can be hierarchically organized based on identifiers "id" in slices 1-5, which are parent nodes 213 and can be linked to one or more child nodes. For example, "id" parent node 213 can be linked to nodes 215 corresponding to "id" in a range less than 300 ("<300") and nodes 217 corresponding to "id" in a range greater than or equal to 300 ("≥300"). It can be understood that any other number or multiple numbers can be used to generate partition specifications based on the tree. In addition, more than one node can be linked to parent node 213.
[0036] Node 215 may be further linked to child nodes 219 and 221, wherein node 219 may include data corresponding to an "id" identifier less than 200 ("<200"), and node 221 may include data corresponding to an "id" identifier greater than or equal to 200 ("≥200"). In addition, node 217 may be linked to child nodes 223 and 225, wherein child node 223 may include data corresponding to an "id" identifier less than 8210 ("<8210"), and node 225 may include data corresponding to an "id" identifier greater than or equal to 8210 ("≥8210").
[0037] Based on this partitioning, node 219 may correspond to some or all of the data in slice 1; node 221 may correspond to some or all of the data in slices 1 and 3; node 223 may correspond to some or all of the data in slices 1 and 2, and node 225 may correspond to some or all of the data in slices 2 and 4. Using this partitioning specification, data corresponding to a particular "id" identifier may be retrieved, inserted, modified, deleted, etc. In this regard, a query of SELECT * FROM Orders WHERE "id" = 160 will result in the selection of slice 1 202 (corresponding to node 219) for the purpose of performing data management functions. In some implementations, these data management functions may depend on whether a particular slice is full, locked, etc. As described below, new slices may be created, such as for inserting new data.
[0038] Similarly, tree 214 may be hierarchically organized based on an identifier “order_date” in slices 1-5, where the identifier “order_date” is a parent node 227. The “order_date” parent node 227 may be linked to nodes 229 and 231, where node 229 includes data corresponding to “order_date” in a range less than 2018-04-10 (“<2018-04-10”) and node 231 corresponding to “order_date” in a range greater than or equal to 2018-04-10 (“≥2018-04-10”). As may be appreciated, any other order date or dates may be used to generate partitioning specifications based on the tree, and / or more than one node may be linked to parent node 227.
[0039] Node 229 may be further linked to child nodes 233 and 235, wherein node 229 may include data corresponding to an “order_date” identifier that is less than 2018-04-03 (“<2018-04-03”), and node 235 may include data corresponding to an “order_date” identifier that is greater than or equal to 2018-04-03 (“≥2018-04-03”). In addition, node 231 may be linked to child nodes 237 and 239, wherein child node 237 may include data corresponding to an “order_date” identifier that is less than 2018-05-01 (“<2018-05-01”), and node 231 may include data corresponding to an “order_date” identifier that is greater than or equal to 2018-05-01 (“≥2018-05-01”).
[0040] Based on this partitioning, node 233 can correspond to some or all of the data in slices 1 and 2; node 235 can correspond to some or all of the data in slices 1 and 2; node 237 can correspond to some or all of the data in slices 1, 2, 3, and 4; and node 239 can correspond to some or all of the data in slices 1, 2, 3, and 4.
[0041] Figure 3a-3g Shows various stages of an exemplary process for generating partitioning specifications according to some implementations of the current subject matter. In some exemplary implementations, an INSERT statement (e.g., INSERT{"id":100, "city":"Heidelberg", "order_date":"2018-04-01"}) can be used to initiate the partitioning specification. Assume that slice 1 302 (as Figure 3a shown) is not full, and each of the indexes "id", "city", and "order_date" can be used to generate a tree corresponding to a particular index (as Figure 3a shown, slice 1 302a includes the "New York" data value of the "city" index, which is not visible in tree 304; if the maximum value of the index "id" equals "100", i.e., the same as the minimum value, the tree and the slice will be synchronized). For example, tree 304 with nodes 303 and 305 can correspond to the index "id" (i.e., the parent node 303 can correspond to "id" and can be linked to the child node 305, which can correspond to values of "id" less than 200 ("<200"), which can be heuristically determined for the purpose of defining the initial data value range boundaries). Tree 306 with nodes 307 and 309 can correspond to the index "city" (i.e., the parent node 307 can correspond to "city" and can be linked to the child node 309, which can correspond to values of "city" less than M ("<M") (assuming "city" lists cities in alphabetical order)). Tree 308 with nodes 311 and 313 can correspond to the index "order_date" (i.e., the parent node 311 can correspond to "order_date" and can be linked to the child node 313, which can correspond to values of "order_date" less than 2018-04-02 ("<2018-04-02"). The data corresponding to the INSERT statement will be inserted into slice 1 302.
[0042] Figure 3b Shows that in addition to the data already inserted as Figure 3a shown, additional data is inserted into slice 1 302 (slice 302b as Figure 3b shown) (assuming it is not full). The data insertion can be completed using the following statement:
[0043] INSERT
[0044] {"id": 100, "city": "Heidelberg", "order_date": "2018-04-01"}
[0045] {"id": 8050, "city": "New York", "order_date": "2018-04-02"}
[0046] Because the additional INSERT statements include additional data, the additional nodes may be linked to one or more indexes 304, 306, 308, such as Figure 3b As shown. For example, the parent node "id" 303 can be linked to the node 315, which can correspond to the "id" data value greater than or equal to 200 (i.e., "id": "8050"). In addition, the parent node "city" 307 can be linked to the node 317, which can correspond to the "city" data value greater than or equal to M (i.e., "city": "New York"). The parent node "order_date" 311 can be linked to the node 319 corresponding to the "order_date" data value greater than or equal to 2018-04-02 (i.e., "order_date": "2018-04-02").
[0047] Figure 3c The further construction of the partition specification in conjunction with the "id" index 304 is shown. Specifically, the following INSERT statement can be used to insert various data (for ease of discussion, only part of the statement is shown below):
[0048] INSERT
[0049] {"id":140...
[0050] {"id":150...
[0051] {"id":160...
[0052] {"id":170...
[0053] {"id":180...
[0054] {"id":190...
[0055] To insert the above data, new nodes 321 and 323 may be linked to node 305. Node 321 may correspond to data values where "id" is less than 160, and node 323 may correspond to data values where "id" is greater than or equal to 160. The value of 160 may be selected arbitrarily. In some exemplary implementations, this selection may be based on the distribution of the data being inserted (e.g., the data values may be equally split by the selected value).
[0056] Figure 3d Further growth of the partition specification is shown in relation to the "id" index 304. As shown, data values in the "id" index tree may be inserted using the following INSERT statement (only a portion of the statement is shown below for ease of discussion):
[0057] INSERT
[0058] {"id":8040...
[0059] {"id":8060...
[0060] {"id":8070...
[0061] {"id":8100...
[0062] To insert the above data, new nodes 325 and 327 may be linked to node 315. Node 325 may correspond to data values where "id" is greater than 200 and specifically less than 8100, and node 327 may correspond to data values where "id" is greater than 200 and further greater than or equal to 8100. The value of 8100 may again be chosen arbitrarily and may be based on the distribution of the data being inserted (e.g., the data values may be equally split by the chosen value).
[0063] Figure 3e Shows the use of Figure 3a-3d 302. However, because slice 1 is full, data cannot be inserted into slice 1 302. In this case, it can be determined that slice 2 312 can be used to insert data. The following statement can be used to insert data: INSERT {"id":"110","city":"Bonn","order_date":"2018-04-02"}.
[0064] Based on the above INSERT statements, it appears that in the "id" index 304, data can be inserted according to node 321, which corresponds to an "id" data value that is less than 200 and further less than 160 (i.e., "id": "110"). In addition, in the "order_date" index 308, data can be inserted according to node 313, which corresponds to an "order_date" value that is less than 2018-04-02 (i.e., "order_date": "2018-04-01"). It appears that nodes 321 and 313 correspond to slice 1 (as indicated by the circles around the nodes), and therefore, data can be inserted according to Figure 3e The partition specification shown inserts the data into slice 1. However, because slice 1 is full, i.e., no more data can be inserted into slice 1, slice 2 312 can be created so that the above data (i.e., the data in nodes 321 and 313) can be inserted into slice 2 312. In some implementations, slice 2 312 can be an existing slice, or can be a newly generated slice for inserting the above data (and other data).
[0065] Figure 3f An exemplary data insertion based on the "distance" between the minimum and maximum values of the index is shown, where the "distance" can be defined in terms of jumps in the tree. For example, in the statement INSERT {"id":"170","city":"Cologne","order_date":"2018-04-01"}, data can be inserted into existing slices 1 and 2 (assuming the slices are not full). Figure 3f As shown, in addition to slice 1 302 (including a large index value range), slice 2 312 may include data values corresponding to index "id" between 110 and 170, and therefore, both nodes 321 and 323 of tree 304 may be used to insert data corresponding to slice 2. Thus, node 323 may be used to determine which slice to use to insert data according to the above statement, i.e., slice 1 and / or slice 2 may be used. If slice 1 is full, slice 2 may be used.
[0066] Figure 3gAn exemplary data insertion based on the distance between the minimum and maximum values of an index is shown. However, the distance in this example is large, so a new slice may need to be created to accommodate the insertion. For example, in the statement INSERT {"id":"8150","city":"New York","order_date":"2018-04-01"}, the distance between the "id" index of leaves 321 and 323 and the "id" value specified in the INSERT statement (i.e., "8150") is too large in terms of jumps in the tree, so a new slice may need to be created to accommodate the insertion of this data. In this case, node 327 can correspond to the creation of a new slice 3 314, which can accommodate the insertion of the data based on the INSERT statement above. Therefore, even if there is still room in slice 2 312, a new slice (i.e., slice 3 314) can be created. The distances in the tree may indicate that the data is not closely related and should be physically placed in different slices.
[0067] The above data insertion can be performed using data stored in a database management system (e.g. Figure 1 In some implementations, such an insertion strategy may be pluggable and may be changed for a particular set of data when some data is already stored. This means that data does not need to be moved according to a new strategy. The new strategy may specify how new data is inserted and may define dependencies between data values and slices. Figure 3a-3g As shown, an insertion strategy can be generated that can include one or more of the following provisions: (1) adding more values to a leaf can cause the tree to expand; (2) the first slice can always be fully populated; (3) once the first slice is full, the first INSERT of new data can generate a new slice (e.g., "slice 2" (e.g., Figure 3e-3f ), a second or subsequent INSERT of new data may place the data into the same new slice (i.e., "slice 2") or generate another new slice ("slice 3" (e.g., as shown in Figure 3g As shown), the decision to generate a new slice can be based on the "distance" in the tree (the "distance" can be selected based on the data being inserted, the data already stored, etc. For example, if the data value is only <= 2 hops away from the existing slice in the tree, the data can be inserted into the existing slice; if the data value is > 2, a new slice can be generated. In an alternative implementation, assuming that the distance between the data values is within a predetermined threshold, the current subject may have an insertion strategy that may require the generation of a new slice regardless of whether the first slice is full, rather than determining whether to generate a new slice. In yet another alternative implementation, the current subject system may wait until the first slice is full before it generates a new slice. The current subject may measure the maximum distance in the tree and use the determined distance (i.e., number of hops) to determine where to insert future data values.
[0068] Figure 4 Another exemplary system 400 for generating partition specifications according to some implementations of the current subject matter is shown. System 400 is similar to Figure 2 The system 200 shown in FIG. 4 may include slices 1 402-5 414 and generated partition trees 412 and 414, wherein tree 412 may be generated for the index "id" and tree 414 may be generated for the index "order_date". Tree 412 may include links to Figure 4 413 of child nodes 415 and 417 of the values shown. Each node 415 and 417 may further include respective child nodes. In particular, node 417 may include child node 441, which may correspond to an index "id" data value greater than or equal to 8100. In addition, child node 441 may include its own child nodes 443 (value less than 8130) and 445 (value greater than or equal to 8130). Similarly, tree 414 may include child nodes 429 and 431 and their respective child nodes.
[0069] Based on the structure of trees 412 and 414, an insert statement of INSERT "id": 8115,"city":"Washington","order_date":"2018-04-11" may result in the data being inserted into slice 3 (as indicated by the circles around nodes 443 and 437) because slice 3 is the only common slice associated with leaves 443 and 437. If slice 3 is full, a new slice may be generated to insert the data.
[0070] In some implementations, the current subject matter can be implemented in various in-memory database systems, such as the High Performance Analytical Appliance (“HANA”) system developed by SAP SE of Walldorf, Germany. Various systems, such as enterprise resource planning (“enterprise resource planning”, ERP) systems, supply chain management (“supply chain management system”, SCM) systems, supplier relationship management (“supplier relationship management”, SRM) systems, customer relationship management (“customer relationship management”, CRM) systems, and / or other systems, can interact with the memory system for the purpose of accessing data. Other systems and / or combinations of systems can be used for implementation of the current subject matter. The following is a discussion of an exemplary memory system.
[0071] Figure 5An exemplary system 500 is shown in which a computing system 502 may include one or more programmable processors that may be collocated, linked via one or more networks, etc., and according to some implementations of the current subject matter, the computing system 502 may execute one or more modules, software components, etc. of a data storage application 504. The data storage application 504 may include one or more of a database, an enterprise resource program, a distributed storage system (e.g., NetApp File Archiver available from NetApp of Sunnyvale, CA), etc.
[0072] One or more modules, software components, and the like may be accessed by local users of the computing system 502 and by remote users accessing the computing system 502 from one or more client machines 506 via a network connection 510. One or more user interface screens generated by the one or more first modules may be displayed to the user via a local display or via a display associated with one of the client machines 506. Data units of the data storage application 504 may be temporarily stored in a persistence layer 512 (e.g., a page buffer or other type of temporary persistence layer), which may write the data in the form of storage pages to one or more storage devices 514, such as via an input / output component 516. The one or more storage devices 514 may include one or more physical storage media or devices (e.g., hard drives, permanent flash memory, random access memory, optical media, magnetic media, etc.) that are configured to write data for long-term storage. It should be noted that the storage devices 514 and the input / output components 516 may be included in the computing system 502, although they may not be stored in a local or remote location. Figure 5 502 is shown as being external to computing system 502.
[0073] The data retained in long-term storage 514 may be organized into pages, each of which has a defined amount of storage space allocated to it. In some implementations, the amount of storage space allocated to each page may be constant and fixed. However, other implementations in which the amount of storage space allocated to each page may vary are also within the scope of the current subject matter.
[0074] Figure 6An exemplary software architecture 600 is shown in accordance with some implementations of the current subject matter. A data storage application 504, which may be implemented in one or more hardware and software, may include one or more database applications, network-attached storage systems, and the like. According to at least some implementations of the current subject matter, such a data storage application 504 may include a persistence layer 512 or other type of memory buffer, or otherwise interface with a persistence layer 512 or other type of memory buffer, such as via a persistence interface 602. A page buffer 604 within the persistence layer 512 may store one or more logical pages 606, and may optionally include shadow pages, active pages, and the like. The logical pages 606 retained in the persistence layer 512 may be written to a storage device (e.g., long-term storage device, etc.) 514 via an input / output component 516, which may be a software module, a subsystem implemented in one or more software and hardware, and the like. The storage device 514 may include one or more data volumes 610, in which stored pages 612 are allocated at physical memory blocks.
[0075] In some implementations, the data storage application 504 may include or otherwise communicate with a page manager 614 and / or a savepoint manager 616. The page manager 614 may communicate with a page management module 620 at the persistence layer 512, which may include a free block manager 622 that monitors page state information 624, such as the state of physical pages within the storage device 514 and logical pages within the persistence layer 512 (and optionally in the page buffer 604). The savepoint manager 616 may communicate with a savepoint coordinator 626 at the persistence layer 512 to handle savepoints, which are used to create a consistent persistent state of the database for restarting after a possible crash.
[0076] In some implementations of the data storage application 504, the page management module of the persistence layer 512 can implement shadow paging. A free block manager 622 within the page management module 620 can maintain the state of the physical page. The page buffer 604 can include a fixed page state buffer that operates as discussed herein. A converter component 640 can be part of or in communication with the page management module 620, and the converter component 640 can be responsible for mapping between logical pages and physical pages written to the storage device 514. The converter 640 can maintain the current mapping of the logical page to the corresponding physical page in the converter table 642. The converter 640 can maintain the current mapping of the logical page 606 to the corresponding physical page in one or more converter tables 642. When the logical page 606 is read from the storage device 514, the converter 640 can be used to look up the storage page to be loaded from the one or more converter tables 642. When the logical page is written to the storage device 514 for the first time after the save point, a new free physical page is allocated to the logical page. The free block manager 622 marks the new physical page as “used” and the new mapping is stored in the one or more converter tables 642 .
[0077] The persistence layer 512 can ensure that the changes made in the data storage application 504 are durable, and the data storage application 504 can be restored to the most recently submitted state after restart. Writing data to the storage device 514 does not need to be synchronized with the end of the write transaction. Therefore, uncommitted changes can be written to the disk, and when the write transaction is completed, the committed changes may not have been written to the disk. After the system crashes, the changes made by the unfinished transaction can be rolled back. The changes that have occurred in the committed transaction should not be lost in the process. A recorder component 644 can also be included to store the changes made to the data of the data storage application in a linear log. The recorder component 644 can be used to replay the operations since the last save point during recovery to ensure that all operations are applied to the data, and before rolling back the unfinished transactions at the end of the recovery process, the transaction with the recorded "commit" record is committed.
[0078] For some data storage applications, writing data to disk is not necessarily synchronized with the end of the write transaction. A situation may arise where uncommitted changes are written to disk, while, when the write transaction completes, committed changes have not yet been written to disk. After a system crash, changes made by uncompleted transactions must be rolled back, and changes made by committed transactions must not be lost.
[0079] To ensure that committed changes are not lost, the logger component 644 can write redo log information whenever a change is made. This information can be written to disk at the latest when the transaction ends. While normal data is written to the data volume, the log entries can reside in a separate log volume. With the redo log, committed changes can be recovered even if the corresponding data page is not written to disk. To undo uncommitted changes, the persistence layer 512 can use a combination of undo log entries (from one or more logs) and shadow paging.
[0080] Persistence interface 602 can handle read and write requests for storage (e.g., in-memory stores, etc.). Persistence interface 602 can also provide write methods for writing data with and without logging. If a recorded write operation is used, persistence interface 602 calls logger 644. In addition, logger 644 provides an interface that allows storage storage (e.g., in-memory stores, etc.) to add log entries directly to a log queue. The logger interface also provides a method for requesting that log entries in the in-memory log queue be flushed to disk.
[0081] The log entry contains a log sequence number, a log entry type, and a transaction identifier. Depending on the type of operation, the logger 644 records additional information. For example, for an entry of type "update", this would be the identification of the affected record and the after image of the modified data.
[0082] When the data storage application 504 is restarted, the log entries need to be processed. To speed up this process, the redo logs are not always processed from the beginning. Instead, as described above, save points can be performed periodically, which write all changes made since the last save point to disk (e.g., in memory, etc.). When the system is started, only the logs created after the last save point need to be processed. After the next backup operation, the old log entries before the save point position can be deleted.
[0083] When logger 644 is called to write a log entry, it does not write to disk immediately. Instead, it may place the log entry into a log queue in memory. The entries in the log queue may be written to disk at the latest when the corresponding transaction completes (commits or aborts). To ensure that the committed changes are not lost, the commit operation will not complete successfully until the corresponding log entry is flushed to disk. Writing the log queue entry to disk may also be triggered by other events, such as when the log queue page is full or when a savepoint is executed.
[0084] For the current topic, the logger 644 can write the database log (or simply referred to as "log" in this article) sequentially to the memory buffer in a natural order (e.g., an ordered order (sequential order) etc.). If several physical hard disks / storage devices are used to store the log data, several log partitions can be defined. Thereafter, the logger 644 (which is used to generate and organize the log data as described above) can load balance the writes to the log buffer across all available log partitions. In some cases, the load balancing is performed according to a polling distribution scheme, in which various write operations are directed to the log buffer in a sequential and continuous manner. With this arrangement, the log buffer of a single log segment of a specific partition of a multi-partition log is not continuous. However, the log buffer can be reordered to the correct order from all partitioned log segments during the recovery process.
[0085] As described above, the data storage application 504 can use shadow paging so that the savepoint manager 616 can write transactionally consistent savepoints. With this arrangement, the data backup includes a copy of all data pages included in a particular savepoint, which is the first step in the data backup process. The current subject matter can also be applied to other types of data page storage devices.
[0086] In some implementations, the current subject matter can be configured to be implemented in system 700, such as Figure 7As shown. System 700 may include a processor 710, a memory 720, a storage device 730, and an input / output device 740. Each of components 710, 720, 730, and 740 may be interconnected using a system bus 750. Processor 710 may be configured to process instructions for execution within system 700. In some implementations, processor 710 may be a single-threaded processor. In an alternative implementation, processor 710 may be a multi-threaded processor. Processor 710 may further be configured to process instructions stored in memory 720 or on storage device 730, including receiving or sending information through input / output device 740. Memory 720 may store information in system 700. In some implementations, memory 720 may be a computer-readable medium. In an alternative implementation, memory 720 may be a volatile memory unit. In yet other implementations, memory 720 may be a non-volatile memory unit. Storage device 730 is capable of providing mass storage for system 700. In some implementations, storage device 730 may be a computer-readable medium. In alternative implementations, storage device 730 may be a floppy disk device, a hard disk device, an optical disk device, a magnetic tape device, a non-volatile solid-state memory, or any other type of storage device. Input / output device 740 may be configured to provide input / output operations to system 700. In some implementations, input / output device 740 may include a keyboard and / or a pointing device. In alternative implementations, input / output device 740 may include a display unit for displaying a graphical user interface.
[0087] Figure 8 An exemplary method 800 for implicitly partitioning data according to some implementations of the current subject matter is shown. At 802, an index (e.g., "id", "city", "order_date", etc.) from a plurality of indexes may be selected. The index may correspond to a table stored in a database (e.g., Figure 1 In 804, a partitioning structure (structures 212, 214, such as those shown in FIG. 214 ) may be generated for the selected index. Figure 2 The partition structure may include a plurality of hierarchically arranged nodes (eg, nodes 213, 215, 217, etc., as shown in FIG. Figure 2 Each node may correspond to a data value range in the stored plurality of data value ranges (eg, node 215 corresponds to an "id" value less than 300, as shown in FIG. 214 ). Figure 2), and at least one database slice stores the corresponding data value range. At 806, another data value range can be received to be stored in the database (e.g., INSERT {"id":100,"city":"Heidelberg","order_date":"2018-04-01"}). At 808, using the generated partitioning structure, a node in the generated partitioning structure corresponding to the received data value range and at least one corresponding database slice (e.g., slice 1) configured to store the received another data value range can be identified. At 810, the received data value range can be stored in the identified at least one database slice.
[0088] In some implementations, the current subject matter can include one or more of the following optional features. In some implementations, the identification of the node can include identifying another database slice configured to store the received another data value range when it is determined that the identified database slice cannot store the received another data value range. The storing can then include storing the received another data value range in the identified another database slice.
[0089] In some implementations, the identification of the node may include generating another database slice configured to store the received another data value range. The method may also include modifying the generated partitioning structure to include at least another node corresponding to the received another data value range. Upon determining that the identified database slice cannot store the received another data value range, another database slice may be generated. Then, storing may include storing the received another data value range in the generated another database slice.
[0090] In some implementations, the selected index may be used to identify at least one of a node and a database slice.
[0091] In some implementations, identification can be performed using at least one insertion strategy that defines at least one node in the generated partitioning structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range.
[0092] In some implementations, the identification of the node may include identifying another node in the generated partition structure based on the insertion strategy, using a predetermined threshold hop distance between the identified node and another node in the generated partition structure corresponding to the received another data value range, and identifying at least one database slice corresponding to the other node configured to store the received another data value range. The predetermined threshold hop distance may be at least two hops.
[0093] In some implementations, the storage may include at least one of: inserting the received another range of data values into the identified at least one database slice, modifying the data stored in the identified at least one database slice using the received another range of data values, deleting the data stored in the identified at least one database slice, and any combination thereof.
[0094] In some implementations, the method may also include: selecting another index from among the multiple indexes, which may correspond to another multiple data value ranges stored in multiple database slices of the database; generating another partitioning structure for the selected another index, which may include another multiple hierarchically arranged nodes, and each node may correspond to another data value range from among the multiple stored another data value ranges and the at least one database slice stores the corresponding another data value range; using the generated another partitioning structure and the generated partitioning structure, identifying at least one database slice configured to store the received another data value range; and storing the received another data value range in the identified at least one database slice.
[0095] The systems and methods disclosed herein can be embodied in various forms, including, for example, data processors, such as computers, digital electronic circuits, firmware, software, or combinations thereof that also include databases. In addition, the above-mentioned features and other aspects and principles of the disclosed implementations can be implemented in various environments. Such environments and related applications can be specially constructed to perform various processes and operations according to the disclosed implementations, or they can include general-purpose computers or computing platforms selectively activated or reconfigured by code to provide necessary functions. The processes disclosed herein are not inherently related to any particular computer, network, architecture, environment, or other device, and can be implemented by appropriate combinations of hardware, software, and / or firmware. For example, various general-purpose machines can be used with programs written according to the teachings of the disclosed implementations, or it is more convenient to build special-purpose devices or systems to perform the required methods and techniques.
[0096] The systems and methods disclosed herein may be implemented as a computer program product, i.e., a computer program tangibly embodied in an information carrier, for example, in a machine-readable storage device or in a propagated signal, for execution by a data processing apparatus or for controlling the operation of a data processing apparatus, for example, a programmable processor, a computer, or multiple computers. The computer program may be written in any form of programming language, including compiled or interpreted languages, and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. The computer program may be deployed to be executed on one computer or on multiple computers at one site, or distributed across multiple sites and interconnected by a communication network.
[0097] As used herein, the term "user" may refer to any entity, including a person or a computer.
[0098] Although in some cases, ordinal numbers such as first, second, etc. can be related to order; as used herein, ordinal numbers do not necessarily imply order. For example, ordinal numbers can only be used to distinguish one item from another item. For example, distinguishing a first event from a second event, but need not imply any time order or fixed reference system (such that the first event in one paragraph of the specification can be different from the first event in another paragraph of the specification).
[0099] The foregoing description is intended to illustrate rather than to limit the scope of the invention, which is defined by the scope of the appended claims. Other implementations are within the scope of the appended claims.
[0100] These computer programs may also refer to programs, software, software applications, applications, components or codes, including machine instructions for programmable processors, and may be implemented in high-level procedural and / or object-oriented programming languages and / or assembly / machine languages. As used herein, the term "machine-readable medium" refers to any computer program product, device and / or equipment, such as a disk, an optical disk, a memory and a programmable logic device (PLD), for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor. The machine-readable medium may store such machine instructions in a non-transient manner, such as, for example, as a non-transient solid-state memory or a magnetic hard drive or any equivalent storage medium. The machine-readable medium may alternatively or additionally store such machine instructions in a transient manner, such as, for example, as a processor cache or other random access memory associated with one or more physical processor cores.
[0101] To provide interaction with a user, the subject matter described herein can be implemented on a computer having a display device, such as, for example, a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor, for displaying information to the user, and a keyboard and a pointing device, such as, for example, a mouse or a trackball, by which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user. For example, the feedback provided to the user can be any form of sensory feedback, such as, for example, visual feedback, auditory feedback, or tactile feedback; and the input from the user can be received in any form, including but not limited to sound, voice, or tactile input.
[0102] The subject matter described herein can be implemented in a computing system that includes a back-end component, such as, for example, one or more data servers, or includes a middleware component, such as, for example, one or more application servers, or includes a front-end component, such as, for example, one or more client computers with a graphical user interface or a web browser, through which a user can interact with the implementation of the subject matter described herein, or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by digital data communication of any form or medium, such as, for example, a communication network. Examples of communication networks include, but are not limited to, a local area network ("LAN"), a wide area network ("WAN"), and the Internet.
[0103] A computing system may include clients and servers. Clients and servers are typically, but not exclusively, remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0104] The implementations set forth in the foregoing description do not represent all implementations consistent with the subject matter described herein. Instead, they are merely some examples consistent with aspects related to the described subject matter. Although some variations have been described in detail above, other modifications or additions are also possible. In particular, further features and / or variations may be provided in addition to those set forth herein. For example, the above implementations may be directed to various combinations and sub-combinations of the disclosed features and / or combinations and sub-combinations of several further features disclosed above. In addition, the logic flows depicted in the accompanying drawings and / or described herein do not necessarily require the specific order shown or the ordered order to achieve the desired results. Other implementations may be within the scope of the appended claims.
Claims
1. A computer-implemented method comprising: selecting an index identifying a particular set of data values from among a plurality of indexes, the index corresponding to a plurality of ranges of data values stored in a plurality of database slices of a database; A partition specification is generated for the selected index using a tree structure comprising a plurality of hierarchically arranged nodes, each node corresponding to: a range of data values from among the stored multiple ranges of data values, and at least one database slice from the plurality of database slices storing a corresponding range of data values; receiving another range of data values to store in a database; Using the generated partition specification, identifying a node in the generated tree structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range; and storing the received another range of data values in the identified at least one database slice, the data values corresponding to the selected index, if the distance between the identified node in the generated tree structure and the node corresponding to the minimum of the data values does not exceed a predetermined threshold hop distance, and If the distance between the identified node in the generated tree structure and the node corresponding to the minimum value among the data values exceeds a predetermined threshold jump distance, the generated tree structure is modified to include a new node corresponding to the received another data value range, a new database slice corresponding to the new node is generated, and the received another data value range is stored in the new database slice, wherein the data value corresponds to the selected index.
2. The method according to claim 1, wherein: The identifying includes identifying another database slice configured to store the received another data value range upon determining that the identified database slice cannot store the received another data value range.
3. The method according to claim 2, wherein: The storing includes storing the received another range of data values in the identified another database slice. 4 . The method of claim 3 , further comprising modifying the generated tree structure to include at least another node corresponding to another received data value range.
5. The method according to claim 3, wherein: Upon determining that the identified database slice is unable to store the received another range of data values, the another database slice is generated.
6. The method according to claim 5, wherein: The storing includes storing the received another range of data values in the generated another database slice.
7. The method according to claim 1, wherein: At least one of the node and the database slice is identified using the selected index.
8. The method according to claim 1, wherein: The identification is performed using at least one insertion strategy that defines at least one of a node in the generated tree structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range.
9. The method according to claim 1, wherein: The predetermined threshold hop distance is at least two hops.
10. The method according to claim 1, wherein: The storage includes at least one of: inserting the received another data value range into at least one identified database slice, modifying the data stored in at least one identified database slice using the received another data value range, deleting the data stored in at least one identified database slice, and any combination thereof.
11. The method according to claim 1, further comprising selecting another index of the plurality of indexes corresponding to another plurality of ranges of data values stored in the plurality of database slices of the database; generating another tree structure for the selected another index, the another tree structure comprising another plurality of hierarchically arranged nodes, each node corresponding to another data value range of the stored plurality of another data value ranges, and at least one database slice storing the corresponding another data value range; using the generated another tree structure and the generated tree structure, identifying at least one database slice configured to store the received another range of data values; and The received another range of data values is stored in the identified at least one database slice.
12. A system comprising: at least one programmable processor; and A non-transitory machine-readable medium storing instructions that, when executed by the at least one programmable processor, cause the at least one programmable processor to perform operations comprising: selecting an index identifying a particular set of data values from among a plurality of indexes, the index corresponding to a plurality of ranges of data values stored in a plurality of database slices of a database; A partition specification is generated for the selected index using a tree structure comprising a plurality of hierarchically arranged nodes, each node corresponding to: a range of data values from among the stored multiple ranges of data values, and at least one database slice from the plurality of database slices storing a corresponding range of data values; receiving another range of data values to store in a database; Using the generated partition specification, identifying a node in the generated tree structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range; and storing the received another range of data values in the identified at least one database slice, the data values corresponding to the selected index, if the distance between the identified node in the generated tree structure and the node corresponding to the minimum of the data values does not exceed a predetermined threshold hop distance, and If the distance between the identified node in the generated tree structure and the node corresponding to the minimum value among the data values exceeds a predetermined threshold jump distance, the generated tree structure is modified to include a new node corresponding to the received another data value range, a new database slice corresponding to the new node is generated, and the received another data value range is stored in the new database slice, wherein the data value corresponds to the selected index.
13. The system according to claim 12, wherein: The identifying includes, upon determining that the identified database slice cannot store the received another data value range, identifying another database slice configured to store the received another data value range; The storing includes storing the received another data value range in the identified another database slice.
14. The system of claim 12, the operations further comprising modifying the generated tree structure to include at least another node corresponding to another received range of data values; When it is determined that the identified database slice cannot store the received another range of data values, generating another database slice; The storing includes storing the received another range of data values in the generated another database slice.
15. The system of claim 12, wherein: At least one of the node and the database slice is identified using the selected index.
16. The system of claim 12, wherein: The identification is performed using at least one insertion strategy that defines at least one of a node in the generated tree structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range.
17. The system of claim 12, wherein: The operation also includes selecting another index of the plurality of indexes corresponding to another plurality of ranges of data values stored in the plurality of database slices of the database; generating another tree structure for the selected another index, the another tree structure comprising another plurality of hierarchically arranged nodes, each node corresponding to another data value range of the stored plurality of another data value ranges, and at least one database slice storing the corresponding another data value range; identifying, using the generated another tree structure and the generated tree structure, at least one database slice configured to store the received another range of data values; and The received another range of data values is stored in the identified at least one database slice.
18. A computer program product comprising a non-transitory machine-readable medium storing instructions that, when executed by at least one programmable processor, cause the at least one programmable processor to perform operations comprising: selecting an index identifying a particular data set value from a plurality of indexes, the index corresponding to a plurality of data value ranges stored in a plurality of database slices of a database; A partition specification is generated for the selected index using a tree structure comprising a plurality of hierarchically arranged nodes, each node corresponding to: a range of data values from among the stored multiple ranges of data values, and at least one database slice from the plurality of database slices storing a corresponding range of data values; receiving another range of data values to store in a database; Using the generated partition structure, identifying a node in the generated tree structure corresponding to the received another data value range and at least one corresponding database slice configured to store the received another data value range; and storing the received another range of data values in the identified at least one database slice, the data values corresponding to the selected index, if the distance between the identified node in the generated tree structure and the node corresponding to the minimum of the data values does not exceed a predetermined threshold hop distance, and If the distance between the identified node in the generated tree structure and the node corresponding to the minimum value among the data values exceeds a predetermined threshold jump distance, the generated tree structure is modified to include a new node corresponding to the received another data value range, a new database slice corresponding to the new node is generated, and the received another data value range is stored in the new database slice, wherein the data value corresponds to the selected index.
