Boomerang Connection: Network Efficiency, Post-materialization, Distributed Connection Technology
By using boomerang connection technology, which utilizes partitioned parallel connections and boomerang phases, the amount of network data exchange is reduced, the network bandwidth bottleneck caused by early materialization methods is resolved, and the performance of distributed connection operations is improved.
Patent Information
- Application Number
- CN201880013347.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-09-29
- Filing Date
- 2018-06-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2038-06-12
AI Technical Summary
When processing large amounts of data, existing distributed connectivity technologies suffer from network bandwidth bottlenecks due to early materialization methods. Existing technologies struggle to effectively reduce network data exchange volume without increasing CPU utilization.
By employing boomerang join technology, network data exchange is reduced through partitioned parallel joins and boomerang phases. Only necessary join result tuples are shuffled on the network, avoiding the exchange of most column data.
It significantly reduces the amount of data exchanged over the network and improves the performance of distributed join operations, especially when performing large joins on column-oriented data, avoiding excessive consumption of CPU resources.
Smart Images

Figure CN110325978B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a distributed join technology, and more particularly, to a distributed join technology based on late-materialization for a shared-nothing system, which reduces the network bandwidth required to perform distributed join operations. Background Art
[0002] Distributed joins can be used to join data from tables that are horizontally distributed across multiple nodes implementing a multi-node database management system. Traditional distributed join techniques exchange all columns of a table required for the materialized result of the join operation over the network, thus causing the execution time of the join query to be dominated by network time. This technique is widely used and is often referred to as the "early materialization" approach, in which all required columns for the join are spliced together to assemble the materialized join result before being sent over the network.
[0003] The large amount of network bandwidth required to exchange data during early materialization methods for joins involving large amounts of data causes processing bottlenecks. As such, data reduction techniques such as Bloom filters are conventionally employed to reduce the amount of data exchanged. However, such data reduction techniques generally affect the number of rows exchanged during early materialization methods, and still require a large number of columns to be exchanged over the network.
[0004] In addition, early parallel database systems laid the foundation for distributed parallel join processing. For example, in the Gamma project, row-based tuples were routed to processing nodes using a hash-based split table. Exactly the same split table was applied to both input relations, so the relations were distributed and partitioned row by row for independent parallel join processing. However, given the large amount of data shuffled between nodes in early systems such as Gamma (sometimes even including database data that did not need to be included in the join materialization), these systems suffered from the above-mentioned network data exchange bottleneck.
[0005] Moreover, the SDD-1 algorithm introduced by Bernstein et al. in early distributed databases was designed to reduce network usage for distributed join processing. However, the algorithm is based on the idea that different database objects reside as a whole on different nodes, which is not the case in many modern distributed database management systems, which often partition database objects horizontally across multiple nodes in the system. In addition, the algorithm requires distributed execution rather than parallel execution of distributed join operations, and also does not consider column-oriented storage of database data.
[0006] With respect to post-materialization being performed by a single machine, Manegold et al. proposed using cache-aware radix partitioning projections for low-selectivity joins to eliminate the random access memory costs incurred during the materialization phase in a single machine. However, this solution is not applicable to modern distributed query processing systems because, for data that is horizontally partitioned between nodes in a shared-nothing system, the various attributes of a tuple cannot be consistently directly accessed through the record identifiers required by the technique. Moreover, the technique does not address the network bandwidth problem in a distributed system because the upstream operators (used by the technique) need to access the relevant attributes from the join results, and therefore, in order to apply the principles of this technique to a distributed system, those attributes need to be shipped to the corresponding processing nodes within the distributed system.
[0007] Also by processing joins on a single machine, Abadi et al. analyze the tradeoffs of materialization strategies in column-oriented database systems on a single machine and conclude that for operators with highly selective predicates, it is almost always better to use a late materialization strategy, and for joins, the correct input tables should be materialized early in almost all cases. Because Abadi analyzes materialization techniques for a single machine, it does not consider network bottlenecks or issues with performing materialization on distributed systems.
[0008] Alternatively, the tracking join approach focuses on reducing redundant data transfers across the network by generating an optimal transfer schedule for each distinct join key. However, this approach changes the skeleton of the join-processing algorithm of the primary partition and requires intensive computation in the CPU for each distinct join key. However, it does not reduce the footprint of individual tuples. Overall, this approach trades additional CPU work for the possibility of reduced network data transfers.
[0009] Since the large amount of network bandwidth required to exchange data during early materialization methods involving distributed join operations involving large amounts of data caused processing bottlenecks, it would be beneficial to reliably reduce the traffic exchanged on the network during distributed join operations without causing increased CPU usage.
[0010] The approaches described in this section are approaches that could be pursued, but are not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section are prior art merely by virtue of their inclusion in this section. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In the attached picture:
[0012] Figure 1 is a block diagram depicting an example database management system.
[0013] Figure 2Depicted is a flow chart for performing a post materialized join operation on a first database object and a second database object that are horizontally partitioned across a plurality of nodes to generate a join result materialization.
[0014] Figure 3A-3C Horizontally partitioned database objects stored within nodes of a database management system are depicted, and the exchange and processing of tuples associated with an example post-materialized distributed join operation is also depicted.
[0015] Figure 4 is a block diagram of a computer system upon which an embodiment may be implemented.
[0016] Figure 5 A block diagram of a basic software system that can be used to control the operation of a computer system. DETAILED DESCRIPTION
[0017] In the following description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent that the present invention can be practiced without these specific details. In other cases, well-known structures and devices are shown in block diagram form in order to avoid unnecessary obscurity of the present invention.
[0018] General Overview
[0019] Embodiments include a distributed join processing technique, referred to herein as a "boomerang join," that reduces the amount of data exchanged over the network by utilizing a late materialization technique. The boomerang join processing technique described herein provides significant performance gains, particularly for performing large distributed joins on column-oriented data. Embodiments of the boomerang join reduce the amount of data exchanged over the network, which is typically a bottleneck for processing distributed join operations in large shared-nothing database systems.
[0020] The embodiment first evaluates the join using a partitioned parallel join technique based on the join tuples representing the rows to be joined, i.e., including<join-key,record-identifier> Yes. For example, a shared-nothing database management system (DBMS) uses a hash partitioning technique to identify the partitions of the join tuples. Each node that receives the join tuples performs a local join on the received tuples, thereby producing a corresponding list of join result tuples (including<record-identifier-table1,record-identifier-table2> ) to identify matching records from the joined tables. Thus, preparing the join result materialization requires only shuffling very small join tuples over the network, without shuffling the payload columns from the tables being joined, a significant improvement over prior art techniques that require exchanging relatively small amounts of data over the network.
[0021] Since the join result tuple does not include all the information required to produce the join result generation (referred to herein as materialization), embodiments use the record identifiers from the join result tuple to extract the projection columns from the appropriate partitions of the table among the nodes of the system over the network. Therefore, to further reduce the amount of data that must be shuffled in the materialization phase in preparation for the boomerang join, embodiments perform an additional record identifier shuffling phase, referred to herein as the "boomerang" phase.
[0022] According to one or more embodiments, during the boomerang phase, the join result tuples are first shuffled to nodes that store data for the join result tuples from the relations that contributed a larger amount of projection columns to the join result materialization. After this shuffling, the node that receives the join result tuple extracts the projection columns for the join result tuple from the relation that contributed a smaller amount of data of the two relations being joined. As a result of this boomerang phase of shuffling the join result tuples, the total amount of data exchanged can be significantly reduced when compared to earlier materialization techniques, depending on the requirements of the join operation.
[0023] According to one or more additional embodiments, instead of sending the join result tuple to the source of the relation with the larger payload, during the boomerang phase, the join result tuple is first sent to the source of the relation with the smaller payload. On the receiving side, each node extracts the payload of the smaller relation (indicated by the received join result tuple) from the local memory and sends the concatenated tuple (including the extracted payload and the identifier of the record in the relation with the larger payload) to the source node of the other relation indicated in the corresponding join result tuple. According to such an embodiment, the boomerang phase only needs to shuffle the payload of the smaller relation on the network.
[0024] Therefore, one benefit of a boomerang join is that during the boomerang phase, the result tuples are shuffled so that transmitting projected columns from relations with larger payloads is avoided, and the system only needs to exchange projected columns from relations with smaller payloads over the network in order to prepare for materialization of the join result.
[0025] Join tables stored in a horizontally partitioned database
[0026] Often times, in shared-nothing database systems, very large tables storing database data are partitioned horizontally across the nodes of the system. For example, Figure 1 A shared-nothing DBMS 100 comprising three nodes 110 , 130 , and 150 is depicted. Figure 3A Also depicted are tables R and S that are horizontally partitioned across nodes 110, 130, and 150. Figure 1 and Figure 3A-3C) are presented as examples, and systems implementing the embodiments described herein may include any number of nodes with data partitioned thereon in any number of ways.
[0027] According to an embodiment, as described herein, the resources associated with nodes 110, 130, and 150 are stored, maintained, and manipulated. Figure 3A-3C The data depicted in nodes 110, 130, and 150 in FIG. For example, Figure 3A The database data depicted as being stored in node 110 is maintained in database data 118 in storage device 116 by database server instance 114 running on server device 112. In addition, Figure 3A-3C The processing of data depicted within the node 110 in FIG. 1 is performed by the database server instance 114, and data associated with such processing is stored as needed within volatile memory in the server device 112 and / or within the storage device 116. According to an embodiment, actions described herein as being performed by a node, such as the node 110, are performed by a database server instance or other resource associated with the node, such as by the database server instance 114 of the node 110.
[0028] like Figure 3A-3C As shown, each node 110, 130, and 150 maintains a partition of data from table R in storage (i.e., rows 312 and 314 on node 110; rows 332 and 334 on node 130; and rows 352 and 354 on node 150). In addition, each node 110, 130, and 150 maintains a partition of data from table S in storage (i.e., rows 316 and 318 on node 110; rows 336 and 338 on node 130; and rows 356 and 358 on node 150). Therefore, the data of table R and table S are horizontally partitioned across nodes 110, 130, and 150.
[0029] According to an embodiment, DBMS 100 including nodes 110, 130, and 150 receives a command to perform a join on table R and table S. For example, DBMS 100 receives the following query 1 to perform a join on table R and table S from a database client:
[0030] Query 1: SELECT R.R_PAYLOAD, S.S_PAYLOAD
[0031] FROM R,S
[0032] WHERE R.R_KEY=S.S_KEY
[0033] Thus, DBMS 100 performs a distributed join operation on the indicated database objects (i.e., table R and table S), which are horizontally partitioned across multiple nodes (i.e., nodes 110, 130, and 150). Query 1 depicts a join operation involving only one join key for each of the two database objects to be joined. However, according to embodiments, the join operation may involve any number of join keys across any number of tables.
[0034] When DBMS 100 receives a query (such as Query 1) that requires a distributed join operation, the query optimizer of DBMS 100 determines, based at least in part on database statistics and the query, whether to use a late materialized join according to an embodiment for the join operation. An embodiment is operable to perform such a distributed join operation in response to the query optimizer determining to do so, as described in further detail below.
[0035] Figure 2 Depicted is a flowchart 200 for performing a boomerang post materialized join operation on a first database object and a second database object horizontally partitioned across multiple nodes to produce a join result materialization according to an embodiment. In conjunction with flowchart 200, functions performed by multiple nodes but described for a single node are performed in parallel by all applicable nodes.
[0036] Hash partitioning for join operations
[0037] At step 202 of flowchart 200, a corresponding local join node from a plurality of nodes is assigned to each corresponding row in a plurality of rows in a first database object and a second database object. For example, a shared-nothing DBMS 100 including nodes 110, 130, and 150 assigns a corresponding one of the nodes (110, 130, or 150) as a local join node for each corresponding row of database objects to be joined (e.g., table R and table S).
[0038] According to an embodiment, the system uses any partitioning technique to assign local join nodes to records from the relations to be joined. For example, DBMS 100 utilizes a hash partitioning operation during which each node in the system 100 that stores at least one partition of table R or table S performs a specific hash function (e.g., [join-key] MOD 3) on the join keys of the rows of table R and / or table S maintained by the node.
[0039] Any given result of the hash function is mapped to a corresponding node in DBMS100 within the mapping data. For example, the example hash function [join-key] MOD 3 above has three possible results, namely, "0", "1", and "2". In the mapping data, "0" is a join node identifier mapped to node 110, "1" is a join node identifier mapped to node 130, and "2" is a join node identifier mapped to node 150. In this way, for each row, the result of the hash operation indicates the node of the system that is the local join node for the row. According to an embodiment, any hash function can be used to partition records between nodes of the system for join operations.
[0040] To illustrate the operation of hash-based partitioning, node 110 identifies a join node for each row of table R and table S maintained by node 110. For example, based on the join key ("9") from row 312, node 110 determines that the join node identifier for row 312 is 9MOD 3=0. Since node 110 is mapped to join node identifier "0", node 110 assigns itself as the join node for row 312. Nodes 110, 130, and 150 identify a join node for each row of table R and table S in a similar manner.
[0041] At step 204 of flowchart 200, a corresponding set of join tuples is transmitted over the network to each local join node, wherein each join tuple of the corresponding set of join tuples represents a corresponding row in a set of rows in a plurality of rows to which the local join node is assigned, and wherein each join tuple includes a join key from the represented row and a row identifier of the represented row.
[0042] For example, each of nodes 110, 130, and 150 generates a join tuple for each row maintained by a node that is assigned a join node other than the initiating node (i.e., the node maintaining the row). Each join tuple includes a join key from the represented row and a row identifier that uniquely identifies the represented row. For example, node 110 generates a join tuple 314A (which is subsequently transmitted to node 150 as described below) that includes the R_KEY and R-RID from row 314. Therefore, join tuple 314A uniquely represents row 314. According to an embodiment, node 110 does not generate a join tuple for row 312 that is different from the representation of the row maintained by node 110 because the join node of the row is the initiating node and the join tuple does not need to be shuffled to the non-initiating join node.
[0043] Each of nodes 110, 130, and 150 transmits to the other nodes of DBMS 100 a join tuple representing the rows assigned to those other nodes during the partitioning operation in step 202. For illustration, Figure 3AEach node is depicted as having received a join tuple to which the node is assigned (some of the depicted join tuples, such as join tuple 312A, represent data actually maintained by the node rather than a tuple different from the row maintained). More specifically, node 110 maintains or has received data for join tuples 312A, 354A, 338A, and 356A (which represent rows 312, 354, 338, and 356, respectively) because the join keys (R_KEY and S_KEY) of those tuples hash to join node identifier "0". Node 130 maintains or has received data for join tuples 334A, 352A, 316A, and 336A (which represent rows 334, 352, 316, and 336, respectively) because the join keys of those tuples hash to join node identifier "1". Additionally, node 150 maintains or has received data for join tuples 314A, 332A, 318A, and 358A (which represent rows 314, 332, 318, and 358, respectively) because the join keys of those tuples hash to join node identifier "2."
[0044] Local join operation based on join tuples
[0045] At step 206, each local join node of the plurality of nodes performs a local join operation on a corresponding set of join tuples to produce a corresponding set of join result tuples; wherein each join result tuple includes a first row identifier from the first database object and a second row identifier from the second database object, which identifies a corresponding row matched by the local join operation. For example, node 110 performs a local join operation on a set of join tuples assigned to node 110 by performing a join based on R_KEY=S_KEY among those tuples assigned to the node. The join is a "local" join because the node does not consider tuples assigned to any other node to perform the join because all tuples with a join key that may match any tuple assigned to a given node are also assigned to that node.
[0046] The local join at each node results in a corresponding set of join result tuples that reflect the join matches identified during the local join operation. Specifically, each join result tuple generated by a node represents a pair of rows (one from table R and one from table S) that include matching join keys (i.e., the same join key value). As such, each join result tuple includes an identifier for a row from table R and an identifier for a row from table S that has a matching join key. For example, if Figure 3AAs depicted, the local join operation on node 110 returns join result tuple 320, indicating that the row from table R with row identifier “5” matches the row from table S with row identifier “3.” Additionally, the local join operation on node 130 returns join result tuples 340 and 342, and the local join operation on node 150 returns join result tuple 360.
[0047] Embodiments enable the use of any kind of join algorithms, including cache and hardware-aware algorithms.For example, one or more embodiments implement steps 202-206 of flowchart 200 using a hardware-aware distributed radix hash join.
[0048] Shuffle result tuples to perform join materialization
[0049] At step 208, each of the plurality of nodes receives a materialized set of corresponding join result tuples sent from one or more other nodes of the plurality of nodes. For example, each of nodes 110, 130, and 150 receives a set of join result tuples during the join result boomerang phase.
[0050] Shuffle tuples during the boomerang phase based on larger contributors to materialization
[0051] According to one or more embodiments, during the boomerang phase, each node receives a set of join result tuples from the joined relation that contributes the largest amount of data to the join result materialization, which relates to rows maintained by the node. In this document, the joined relation that contributes the largest amount of data to the join result materialization is referred to herein as the relation or table with the larger / largest payload.
[0052] For example, the first database object is identified as the target database object based at least in part on determining that a first amount of data required to materialize the join results for the rows of the first database object is greater than a second amount of data required to materialize the join results for the rows of the second database object. To illustrate, at compile time of Query 1, DBMS 100 identifies the target database object with the largest payload based at least in part on the join specification generated for Query 1 and database statistics (including the number / size of columns required by the join specification). According to one or more embodiments, in determining the target database object, the DBMS may also consider the number of times data from a given table matches data from another table in the join operation.
[0053] For example, based on the join specification for the join operation in Query 1, DBMS 100 determines that table R contributes more data to the join materialization than table S. In other words, DBMS 100 determines that table R has the largest payload.
[0054] Furthermore, according to an embodiment, during the boomerang phase, each local join node in the plurality of nodes sends each join result tuple in at least a portion of the corresponding set of join result tuples to the node in the plurality of nodes that initiated the row in the target database object identified by the first row identifier in each join result tuple. Figure 3B During the depicted boomerang phase, node 110 sends the join result tuple 320 to the node that originated the row identified in the join result tuple from table R (table R is the relation with the largest payload). Figure 3B As shown, node 110 determines that node 150 stores row 354 corresponding to R-RID "5" from join result tuple 320. As such, during the boomerang phase, node 110 sends join result tuple 320 to node 150 (as depicted by join result tuple 320A at node 150).
[0055] According to an embodiment, the node identifies which node originates a particular row identified by a given row identifier based on mapping data that maps the row identifier to the node that originates (i.e., maintains) the data for the identified row. Continuing with the previous example, the mapping data maintained by the system maps R-RIDs "4" and "5" to node 150 as the originating node for those rows. Node 110 determines, based on that mapping data, that node 150 stores the row corresponding to R-RID "5".
[0056] According to another embodiment, a node identifies which node originated a particular row identified by a given row identifier based on information identifying the initiating node encoded within the row identifier itself. For example, a particular R-RID may be "5-2", indicating that the row identifier is "5" and the initiating node identifier is "2" (i.e., node 150). For clarity, this embodiment is not described in detail. Figure 3B Drawn in.
[0057] Materialization phase after the boomerang phase based on the largest contributors to materialization
[0058] At step 210 of flowchart 200, each of the plurality of nodes materializes a corresponding portion of the join result materialization based at least in part on the materialized set of corresponding join result tuples received by the node. According to an embodiment that bases the boomerang phase on larger contributors to the join result materialization (i.e., relations with the largest payload), the node materializes the portion of the join result materialization corresponding to the materialized set of join result tuples received by the node by: (a) retrieving over the network the projected columns of the relations with the smaller payload and (b) retrieving from memory the projected columns of the relations with the larger payload.
[0059] According to an embodiment, the materialized set of join result tuples received at a particular node includes those join result tuples generated by any node in DBMS 100, the join result tuples including the identifier of the relation with the largest payload that originated at the particular node. For example, node 150 receives a materialized set of join result tuples associated with the boomerang phase (i.e., join result tuples 320A and 342A), where each join result tuple in the materialized set relates to a row from the relation with the largest payload (table R) stored at node 150. During the materialization phase, node 150 retrieves projected columns of relations with smaller payloads over the network as needed.
[0060] Specifically, during the materialization phase, a particular node among the plurality of nodes materializes a particular row of a join result materialization based at least in part on a particular join result tuple in a materialized set of particular join result tuples received by the particular node by retrieving, from memory of the particular node, a first projected column from a first database object for a first row of the first database object, the first row being identified by a particular first row identifier included in the particular join result tuple. For example, to materialize a row of the join result materialization corresponding to join result tuple 320A, node 150 retrieves from memory 156 ( Figure 1 ) retrieves the payload column (R_PAYLOAD "P5") of row 354 corresponding to R-RID "5" of join result tuple 320A.
[0061] In addition, the particular node continues the materialization phase for the particular row of the join result materialization by requesting from a second node in the plurality of nodes a second projected column from a second database object for a second row of the second database object, the second row being identified by a particular second row identifier included in the particular join result tuple. For example, node 150 determines that node 130 is the originator of row 338 corresponding to S-RID “3” from join result tuple 320A (i.e., according to the above-described technique for determining the row originator node). As such, node 150 requests from node 130 the projected column of table S (i.e., S_PAYLOAD “P9”) for row 338 from table S, e.g., by sending the S-RID from join result tuple 320A to node 130. Of course, in the event that both rows involved in the particular join result tuple are stored on the same node, there is no need to retrieve data from the second node.
[0062] The particular node completes the materialization phase of the particular row of the join result materialization by creating the particular row of the join result materialization including the first projected column of the first row and the second projected column of the second row. For example, node 150 receives the projected columns of table S from row 338 and uses R_PAYLOAD ("P5") from row 354 and S_PAYLOAD ("P9") from row 338 to materialize the particular row of the join result materialization corresponding to join result tuple 320A.
[0063] Shuffle tuples during the boomerang phase based on smaller contributors to materialization
[0064] According to the above embodiment, join result materialization requires sending (a) a materialized set of join result tuples to the node that originated the row data of the relation with the largest payload and (b) row identifiers of rows in the relation with smaller payloads to the node that originated the row data of the relation with smaller payloads. However, by changing the initial node to which the join result tuples are sent in the boomerang phase, the amount of data being sent over the network can be further reduced.
[0065] Therefore, according to one or more additional embodiments, instead of sending the join result tuple to the originating node of the row from the relation with the larger payload, the join result tuple is sent to the originator of the relation with the smaller payload during step A of the boomerang phase. During step B of the boomerang phase, the node that received the join result tuple from step A of the boomerang phase creates a concatenated join result tuple that includes the projected columns from the relation with the smaller payload, and then sends the concatenated join result tuple to the originator of the row identified within the concatenated tuple from the relation with the largest payload.
[0066] Thus, according to such an embodiment, DBMS 100 identifies the first database object (i.e., table R) as the target database object based at least in part on determining that a first amount of data required to materialize the join results for the rows of the first database object is less than a second amount of data required to materialize the join results for the rows of the second database object. This determination can be made in the manner set forth above in conjunction with determining the relationship with the largest payload.
[0067] During step A of the boomerang phase, each local join node in the plurality of nodes sends each join result tuple in at least a portion of the corresponding set of join result tuples to the node in the plurality of nodes that originated the row in the target database object (i.e., the smaller contributor) identified by the first row identifier in each join result tuple. For example, node 110 sends the join result tuple 320 generated from the local join operation to the node that originated the portion of the data of the join result tuple from table R (in this example, table R is determined to be the relation with the smaller payload). To illustrate, Figure 3C As shown, node 110 determines (based on one or more of the techniques described above) that node 150 originates row 354 corresponding to R-RID “5” from join result tuple 320. As such, during step A of the boomerang phase, node 110 sends join result tuple 320 to node 150 (e.g., Figure 3C Resulting join tuple 320A at node 150 in FIG.
[0068] The node that receives the join result tuple in step A of the boomerang phase creates a concatenated tuple using the received join result tuple and the data of the table with the smaller payload, and then sends the concatenated tuple to the node that originated the data of the larger contributor during step B of the boomerang phase. For example, node 150 receives the join result tuple 320 from node 110. As such, node 150 retrieves the first projection column from the first row identified by the particular first row identifier from the received join result tuple. For example, node 150 retrieves the first projection column from storage device 156 ( Figure 1 ) retrieves the R_PAYLOAD column of the row 354 corresponding to the R-RID “5” from the received join result tuple 320 (ie, R_PAYLOAD “P5”).
[0069] Node 140 then creates a concatenated join result tuple that includes (a) the first projection column and (b) a particular second row identifier from a particular join result tuple. For example, node 150 creates a concatenated join result tuple 320A that includes the R_PAYLOAD data from row 354 and the row identifier for table S from the join result tuple 320 (i.e., S-RID "3"). Figure 3C In the depicted example, the concatenated join result tuple 320A also includes the R-RID “5” from the join result tuple 320 .
[0070] During step B of the boomerang phase, node 150 sends the concatenated join result tuple to another node of the plurality of nodes that stores a record that matches the particular second row identifier. For example, node 150 sends the concatenated join result tuple 320A to node 130, which is the originator of the data for row 338 identified by S-RID “3” from join result tuple 320A. Node 150 determines the originator of the row identified by the particular S-RID according to the above-described techniques. Thus, during step B of the boomerang phase, each of nodes 110, 130, and 150 receives a materialized set of join result tuples including concatenated join result tuples that relate to rows from the relation with the largest payload maintained at the corresponding node.
[0071] like Figure 3C As depicted, the materialized set of join result tuples for node 150 is empty. Additionally, the materialized set of join result tuples for node 130 includes concatenated join result tuples 320B and 342B, and the materialized set of join result tuples for node 110 includes concatenated join result tuples 360B and 340B.
[0072] Materialization phase after the boomerang phase based on smaller contributors to materialization
[0073] As described above, at step 210 of flowchart 200, during the materialization phase, each of the plurality of nodes materializes a corresponding portion of the join result materialization based at least in part on the materialized set of corresponding join result tuples received by the node. According to the above embodiment, another node of the plurality of nodes materializes a particular row of the join result materialization based at least in part on the concatenated join result tuples in the materialized set of particular join result tuples received by the particular node by first retrieving a second projection column from a second database object for a second row of the second database object from a memory of the other node, the second row being identified by a particular second row identifier. For example, Figure 3C As depicted, node 130 receives the concatenated join result tuple 320B. Thus, during the materialization phase, node 130 retrieves the concatenated join result tuple 320B from storage device 136 ( Figure 1 ) retrieves the projected column from table S of row 338 (ie, S_PAYLOAD “P9”) corresponding to S-SID “3” included in the concatenated join result tuple 320B.
[0074] To complete the materialization phase for the join result tuple, another node then creates a specific row of the join result materialization, including the first projection column of the first row and the second projection column of the second row. For example, node 130 creates a specific row of the join result materialization corresponding to the concatenated join result tuple 320B, including the projection column of table R from the concatenated join result tuple 320B (i.e., R_PAYLOAD "P5") and the projection column S retrieved for table S of the concatenated join result tuple 320B (i.e., S_PAYLOAD "P9").
[0075] According to such embodiments based on smaller contributors to join materialization, materialization of the join result requires only shuffling of the payload of the smaller relation through the network, without requiring additional shuffling of identifiers through the network as required by the above-described embodiments based on larger contributors to join materialization.
[0076] Database Management System
[0077] Embodiments of the present invention are used in the context of a database management system. Therefore, a description of a DBMS is useful. A DBMS manages a database. A DBMS may include one or more database servers, as described in further detail below. A database includes database data and a database dictionary stored on a permanent storage mechanism (such as a collection of hard disks). Database data may be stored in one or more data containers. Each container contains records. The data within each record is organized into one or more fields. In the relational DBMS mentioned herein, data containers are referred to as relations or tables, records are referred to as rows, and fields are referred to as columns. According to other embodiments in an object-oriented database, data containers are referred to as object classes, records are referred to as objects, and fields are referred to as attributes. Other database architectures may use other terms.
[0078] A user can interact with an instance of a database server of a DBMS by submitting commands to the database server instance that cause the database server instance to perform operations on data stored in the database. For example, a user at a client device submits a database command that requires a distributed connection (such as query 1) to the database server instance 114 via a database client, and the database client maintains a connection with the database server instance 114. A user can be one or more applications running on a client device that cause the database client to interact with the database server instance 114. Multiple parties can access database resources through a given application. Multiple parties and / or users may also be collectively referred to as users herein.
[0079] No shared database
[0080] In a shared-nothing system (such as DBMS 100), all processors, memories, and disks are grouped into nodes. As in a shared-disk system, in a shared-nothing system, each node itself may constitute a shared-everything system or a shared-disk system. A shared-nothing database assumes that a process can access data only if the data is contained on a disk belonging to the same node as the process. Therefore, if a particular node wants to perform an operation on a data item owned by another node, then the particular node must send a request to the other node for the other node to perform the operation. Therefore, instead of shipping data between nodes, a shared-nothing database is said to perform "function shipping."
[0081] Because any given piece of data is owned by only one node, only that one node (the "owner" or "originator" of the data) will have a copy of the data in its cache. Shared-nothing databases can run on both shared-disk and shared-nothing multiprocessing systems. In order to run a shared-nothing database on a shared-disk machine, a mechanism can be provided to partition the database and assign ownership of each partition to a specific node.
[0082] Example network layout
[0083] According to one or more embodiments, one or more of nodes 110, 130, and 150 implement a shared-nothing database management system 100. According to one or more embodiments, nodes 110, 130, and 150 are at least part of a node cluster managed by a multi-node DBMS 100, such as a massively parallel (MPP) shared-nothing database environment. According to one or more embodiments, any number of nodes may be part of a node cluster managed by a multi-node DBMS such as DBMS 100. Specifically, resources from multiple nodes in a multi-node database system may be allocated to run software for a particular database server.
[0084] Server devices 112, 132, and 152 are implemented by any type of computing device capable of running a database server instance to manage data in the storage device of the server device and capable of communicating with other nodes in the cluster. Figure 1 , server device 112 is configured with database server instance 114 , server device 132 is configured with database server instance 134 , and server device 152 is configured with database server instance 154 .
[0085] A database server instance (or "instance") is a server that includes a combination of software and an allocation of resources from a node. Specifically, a server such as a database server is a combination of integrated software components and an allocation of computing resources (such as memory, nodes (i.e., computing devices), and / or processes on nodes for executing the integrated software components on processors) that are dedicated to performing specific functions on behalf of one or more clients.
[0086] Database server instance 114 maintains access to and manages database data 118 stored in storage 116, database server instance 134 maintains access to and manages database data 138 stored in storage 136, and database server instance 154 maintains access to and manages database data stored in storage 156. According to one or more embodiments, access to a given database includes access to (a) a collection of disk drives storing data for the database, and (b) data blocks stored thereon.
[0087] According to one or more embodiments, database data 118, 138, and 158 are maintained at least in part as column-oriented data. Embodiments may also be applied to row-oriented data, where each row from a database table being joined that is stored as row-oriented data may be used in (or decomposed into) a column-oriented format.
[0088] According to one or more embodiments, as described herein, one or more functions attributed to processes running on nodes 110, 130, and 150 may be performed by any other logical entity that is part of DBMS 100. Depending on the specific implementation, server devices 112, 132, and 152 may be configured with other mechanisms, processes, and functions. Moreover, according to one or more embodiments, example DBMS 100 may include other devices, including client devices, server devices, storage devices, networks, and display devices.
[0089] In an embodiment, each process and / or function described in conjunction with each of nodes 110, 130, and 150 is performed automatically and may be implemented in any of a general purpose computer or a special purpose computer using one or more computer programs, other software elements, and / or digital logic while performing data retrieval, transformation, and storage operations involving interaction with and transformation of the physical state of the computer's memory.
[0090] Analytical estimates of network savings for large-to-large table joins
[0091] According to an embodiment, a query optimizer is required to analyze the amount of data to be exchanged between nodes of a shared-nothing system for a large table to large table join having a different high number of values for the two tables and an average of one match per output table tuple. Figure 3A-3C An example of such an analysis is described in the context of the example depicted in FIG.
[0092] Specifically, the query optimizer can use the equation described below to estimate the relative cost of performing a join operation using various techniques, including the early materialization technique and the boomerang late materialization join technique according to an embodiment.<key,RID> The size of the joined tuple is represented as ||t|| in this paper. For R and S tables, the size of the projected attributes after joining is represented by ||Π R || and ||Π S The size of the cluster in terms of the number of nodes is represented by N.
[0093] First, an equation is given to predict the amount of data exchanged during an early materialized join. The early materialized join is performed over the network over all projected attributes during partitioning. In a uniform random distribution of join keys to all nodes, each of nodes 110, 130, and 150 needs to send (|R|+|S|) / N×(N-1) / N tuples over the network. Therefore, the total data (T) exchanged by all nodes over the network is E ) is given by Equation 1.
[0094] TE=((N–1) / N)·(|R|·(||t||+||ΠR||)+|S|·(||t||+||ΠS||)) (1)
[0095] Second, an equation is given to predict the amount of data exchanged for a naive materialization strategy for a late materialized join, assuming that each of nodes 110, 130, and 150 extracts the relevant payloads for both inner and outer relations. In addition to the tuple exchange in the join phase for this naive materialization strategy, the RIDs and payloads of both relation R and relation S will be shuffled through the network for each of the |S| result tuples. The total amount of data exchanged (T N ) is given by Equation 2.
[0096] TN=((N–1) / N)·(|R|·(2·||t||+||ΠR||)+|S|·(2·||t||+||ΠS||)) (2)
[0097] Finally, equations for an embodiment including the boomerang technique for late materialized joins are given. As described above, the benefit of this technique is that shuffling of the payload of one of the relations is completely avoided. Thus, in the boomerang phase, a number of RIDs that approximate the number of rows in the expected join result are shuffled. Afterwards, only the payloads of relations with smaller payload sizes (B) are shuffled over the network. The total amount of data exchanged over the network (T B ) is given by Equation 3.
[0098] TB=((N–1) / N)·(|R|·||t||+2·|S|·||t||+|S|·(||ΠB||+||t||)); where B=argminΠ(R,S) (3)
[0099] As shown in Equation 3, (a) if the payload size of the smaller relation is larger than the size of the join result tuple, and (b) if there is a significant difference in the payload sizes of the two relations, the boomerang materialization technique results in a significant reduction in network data exchange.
[0100] Hardware Overview
[0101] According to one embodiment, the techniques described herein are implemented by one or more special-purpose computing devices. The special-purpose computing device may be hardwired to perform these techniques, or may include digital electronic devices (such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) permanently programmed to perform these techniques), or may include one or more general-purpose hardware processors programmed to perform these techniques according to program instructions in firmware, memory, other storage devices, or a combination thereof. Such special-purpose computing devices may also combine customized hard-wired logic, ASICs, or FPGAs with customized programming to implement these techniques. The special-purpose computing device may be a desktop computer system, a portable computer system, a handheld device, a networking device, or any other device that combines hard-wiring and / or program logic to implement these techniques.
[0102] For example, Figure 4 4 is a block diagram illustrating a computer system 400 upon which embodiments of the present invention may be implemented. Computer system 400 includes a bus 402 or other communication mechanism for communicating information, and a hardware processor 404 coupled with bus 402 for processing information. Hardware processor 404 may be, for example, a general purpose microprocessor.
[0103] Computer system 400 also includes a main memory 406, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 402 for storing information and instructions to be executed by processor 404. Main memory 406 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 404. When stored in a non-transitory storage medium accessible to processor 404, these instructions cause computer system 400 to become a special-purpose machine customized to perform the operations specified in the instructions.
[0104] Computer system 400 also includes a read only memory (ROM) 408 or other static storage device coupled to bus 402 for storing static information and instructions for processor 404. A storage device 410, such as a magnetic disk, optical disk, or solid state drive, is provided and coupled to bus 402 for storing information and instructions.
[0105] The computer system 400 may be coupled to a display 412, such as a cathode ray tube (CRT), via the bus 402 for displaying information to a computer user. An input device 414, including alphanumeric and other keys, is coupled to the bus 402 for communicating information and command selections to the processor 404. Another type of user input device is a cursor control 416, such as a mouse, trackball, or cursor direction keys, for communicating direction information and command selections to the processor 404 and for controlling cursor movement on the display 412. Such input devices typically have two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), which allows the device to specify a position in a plane.
[0106] Computer system 400 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that is combined with a computer system to make or program computer system 400 into a special purpose machine. According to one embodiment, computer system 400 performs the techniques described herein in response to processor 404 executing one or more sequences of one or more instructions contained in main memory 406. These instructions may be read into main memory 406 from another storage medium, such as storage device 410. Execution of the sequences of instructions contained in main memory 406 causes processor 404 to perform the process steps described herein. In alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions.
[0107] As used herein, the term "storage medium" refers to any non-transient medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical disks, magnetic disks, or solid-state drives, such as storage device 410. Volatile media include dynamic memory, such as main memory 406. Common forms of storage media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a hole pattern, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips, or cassette tapes.
[0108] Storage media are distinct from but can be used in conjunction with transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that comprise bus 402. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
[0109] Various forms of media may be involved in carrying one or more sequences of one or more instructions to processor 404 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 400 may receive the data on the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal and appropriate circuitry may place the data on bus 402. Bus 402 carries the data to main memory 406, from which processor 404 retrieves and executes the instructions. The instructions received by main memory 406 may optionally be stored on storage device 410 before or after execution by processor 404.
[0110] Computer system 400 also includes a communication interface 418 coupled to bus 402. Communication interface 418 provides bidirectional data communication coupled to network link 420, wherein network link 420 is connected to local network 422. For example, communication interface 418 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem that provides a data communication connection with a corresponding type of telephone line. As another example, communication interface 418 can be a local area network (LAN) card to provide a data communication connection with a compatible LAN. A wireless link can also be implemented. In any such implementation, communication interface 418 sends and receives electrical signals, electromagnetic signals, or optical signals that carry digital data streams representing various types of information.
[0111] The network link 420 typically provides data communication to other data devices through one or more networks. For example, the network link 420 can provide a connection to a host computer 424 or to data equipment operated by an Internet Service Provider (ISP) 426 through a local network 422. The ISP 426 in turn provides data communication services through a global packet data communication network, now commonly referred to as the "Internet" 428. Both the local network 422 and the Internet 428 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 420 and through the communication interface 418 (which carry the digital data to and from the computer system 400) are example forms of transmission media.
[0112] Computer system 400 can send messages and receive data, including program code, through the network(s), network link 420, and communication interface 418. In the Internet example, server 430 can send the requested code for an application program through Internet 428, ISP 426, local network 422, and communication interface 418.
[0113] The received code may be executed by processor 404 as it is received, and / or stored in storage device 410 or other non-volatile storage for later execution.
[0114] In the foregoing specification, embodiments of the present invention have been described with reference to numerous specific details, which may vary from implementation to implementation. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive. The sole and exclusive indicator of the scope of the invention, and what the applicants intend as the scope of the invention, is the literal and equivalent range of the set of claims issuing from this application in the specific form in which such claims issue, including any subsequent corrections.
[0115] Software Overview
[0116] Figure 5 4 is a block diagram of a basic software system 500 that may be used to control the operation of computer system 400. Software system 500 and its components, including their connections, relationships, and functions, are merely exemplary and are not meant to limit implementation of the example embodiment(s). Other software systems suitable for implementing the example embodiment(s) may have different components, including components with different connections, relationships, and functions.
[0117] Software system 500 is provided for directing the operation of computer system 400. Software system 500, which may be stored in system memory (RAM) 406 and on fixed storage devices (eg, hard disk or flash memory) 410, includes a kernel or operating system (OS) 510.
[0118] OS 510 manages low-level aspects of computer operation, including managing the execution of processes, memory allocation, file input and output (I / O), and device I / O. One or more applications, represented as 502A, 502B, 502C, ... 502N, may be "loaded" (e.g., transferred from fixed storage device 410 into memory 406) for execution by system 500. Applications or other software intended for use on computer system 400 may also be stored as downloadable computer-executable instruction sets, for example, for downloading and installation from an Internet location (e.g., a Web server, app store, or other online service).
[0119] The software system 500 includes a graphical user interface (GUI) 515 for receiving user commands and data in a graphical (e.g., "point and click" or "touch gesture") manner. In turn, these inputs can be operated by the system 500 according to instructions from the operating system 510 and / or (one or more) applications 502. The GUI 515 is also used to display the results of the operations from the OS 510 and (one or more) applications 502, so that the user can provide additional input or terminate the session (e.g., log off).
[0120] The OS 510 may execute directly on the bare hardware 520 (e.g., the processor(s) 404) of the computer system 400. Alternatively, a hypervisor or virtual machine monitor (VMM) 530 may be inserted between the bare hardware 520 and the OS 510. In this configuration, the VMM 530 acts as a software "buffer" or virtualization layer between the OS 510 and the bare hardware 520 of the computer system 400.
[0121] VMM 530 instantiates and runs one or more virtual machine instances ("guests"). Each guest includes a "guest" operating system (such as OS 510) and one or more applications (such as (one or more) applications 502) designed to execute on the guest operating system. VMM 530 presents a virtual operating platform to the guest operating system and manages the execution of the guest operating system.
[0122] In some instances, VMM 530 can allow a guest operating system to run as if it were running directly on bare hardware 520 of computer system 400. In these instances, the same version of the guest operating system that is configured to execute directly on bare hardware 520 can also execute on VMM 530 without modification or reconfiguration. In other words, VMM 530 can provide full hardware and CPU virtualization to guest operating systems in some cases.
[0123] In other instances, the guest operating system may be specifically designed or configured to execute on VMM 530 to improve efficiency. In these instances, the guest operating system is "aware" that it is executing on a virtual machine monitor. In other words, VMM 530 may provide para-virtualization to the guest operating system in certain circumstances.
[0124] A computer system process includes an allocation of hardware processor time and an allocation of memory (physical and / or virtual) for storing instructions executed by the hardware processor, for storing data generated by the hardware processor executing instructions, and / or for storing hardware processor state (e.g., contents of registers) between allocations of hardware processor time when the computer system process is not running. A computer system process runs under the control of an operating system and may run under the control of other programs executing on the computer system.
[0125] cloud computing
[0126] The term "cloud computing" is used generally herein to describe a computing model that enables on-demand access to a shared pool of computing resources, such as computer networks, servers, software applications, and services, and allows resources to be rapidly provisioned and released with minimal management effort or service provider interaction.
[0127] A cloud computing environment (sometimes called a cloud environment or just a cloud) can be implemented in a variety of different ways to best suit different requirements. For example, in a public cloud environment, the underlying computing infrastructure is owned by an organization that makes its cloud services available to other organizations or the public. In contrast, a private cloud environment is generally intended for use by or within a single organization. A community cloud is intended to be shared by several organizations within a community; while a hybrid cloud includes two or more types of clouds (e.g., private, community, or public) bound together by data and application portability.
[0128] In general, the cloud computing model enables some of those responsibilities that may have previously been provided by an organization's own information technology department to be delivered instead as a service layer within the cloud environment for use by consumers (either internally or externally to the organization, depending on the public / private nature of the cloud). Depending on the specific implementation, the precise definition of the components or features provided by or within each cloud service layer may vary, but common examples include: Software as a Service (SaaS), in which consumers use software applications running on the cloud infrastructure, while the SaaS provider manages or controls the underlying cloud infrastructure and applications. Platform as a Service (PaaS), in which consumers can use software programming languages and development tools supported by the PaaS provider to develop, deploy, and otherwise control their own applications, while the PaaS provider manages or controls other aspects of the cloud environment (i.e., everything under the runtime execution environment). Infrastructure as a Service (IaaS), in which consumers can deploy and run arbitrary software applications, and / or provide processing, storage, networking, and other basic computing resources, while the IaaS provider manages or controls the underlying physical cloud infrastructure (i.e., everything below the operating system layer). Database as a Service (DBaaS), in which the consumer uses a database server or database management system running on a cloud infrastructure, while the DbaaS provider manages or controls the underlying cloud infrastructure, applications, and servers (including one or more database servers).
[0129] The above basic computer hardware and software and cloud computing environment are provided for the purpose of illustrating the basic underlying computer components that can be used to implement the example embodiment(s). However, the example embodiment(s) are not necessarily limited to any particular computing environment or computing device configuration. Rather, the example embodiment(s) may be implemented in any type of system architecture or processing environment that a person skilled in the art would understand in light of the present disclosure as being capable of supporting the features and functions of the example embodiment(s) presented herein.
Claims
1. A computer-implemented method for a database management system to perform a join operation on a first database object and a second database object that are horizontally partitioned across multiple nodes to produce a join result materialization, comprising: assigning a respective local join node from the plurality of nodes to each respective row in a plurality of rows in the first database object and the second database object; A corresponding set of join tuples is transmitted to each local join node through the network, wherein each join tuple in the corresponding set of join tuples: a corresponding row in a set of rows representing the plurality of rows to which the local join node is assigned; and including a join key from the represented row and a row identifier for the represented row; each local join node of the plurality of nodes performs a local join operation on the corresponding set of join tuples to produce a corresponding set of join result tuples; wherein the plurality of join result tuples include the corresponding set of join result tuples from the local join nodes among the plurality of nodes; wherein each of the plurality of join result tuples comprises a respective first row identifier from the first database object and a respective second row identifier from the second database object identifying a respective row matched by the local join operation; Each node of the plurality of nodes receives a materialized set of corresponding join result tuples sent from one or more other nodes of the plurality of nodes; as well as each node of the plurality of nodes materializes a respective portion of a join result materialization based at least in part on the materialized set of the respective join result tuples received by the node; The method is performed by one or more computing devices.
2. The method of claim 1, further comprising assigning a specific local join node among the plurality of nodes to a specific row among the plurality of rows, comprising: performing a hash partition operation on a specific join key in the specific row to generate a specific hash value for the specific row; wherein the specific local joining node is associated with the specific hash value; as well as The particular local join node is assigned to the particular row based on the particular hash value of the particular row being associated with the particular local join node.
3. The method according to claim 1, further comprising a specific joining node among the plurality of nodes performing a specific local joining operation on a specific joining tuple set transmitted to the specific joining node to generate a specific joining result tuple set, comprising: matching the first join tuple with the second join tuple based on that a first join tuple from the first database object in the specific join tuple set and a second join tuple from the second database object in the specific join tuple set have the same join key; as well as A specific join result tuple in the specific join result tuple set is generated, comprising a first component row identifier of the first join tuple and a second component row identifier of the second join tuple.
4. The method of claim 1, further comprising: identifying the first database object as a target database object based at least in part on determining that a first amount of data required to materialize join results for rows of the first database object is greater than a second amount of data required to materialize join results for rows of the second database object; and Each local join node of the plurality of nodes sends each join result tuple produced by the local join node in at least a portion of the corresponding set of join result tuples to a node of the plurality of nodes that originated a row in a target database object identified by a first row identifier in each join result tuple.
5. The method of claim 4, further comprising: A specific node among the plurality of nodes materializes a specific row of a join result materialization based at least in part on a specific join result tuple in a materialized set of specific join result tuples received by the specific node; wherein the specific join result tuple includes (a) a specific first row identifier identifying a first row of the first database object and (b) a specific second row identifier identifying a second row of the second database object; Wherein materializing the specific row comprises: retrieving from memory of the particular node a first projected column from the first database object for a first row of the first database object identified by the particular first row identifier; requesting, from a second node of the plurality of nodes, a second projected column from the second database object for a second row of the second database object identified by the particular second row identifier; and The particular row of the join result materialization is created, including both the first projected column of the first row and the second projected column of the second row.
6. The method of claim 4, further comprising: A specific node among the plurality of nodes receives a materialized set of specific join result tuples; Wherein each tuple in the materialized set of the particular join result tuples includes a respective first row identifier identifying a respective row of the target database object stored at the particular node.
7. The method of claim 1, further comprising: identifying the first database object as a target database object based at least in part on determining that a first amount of data required to materialize join results for rows of the first database object is less than a second amount of data required to materialize join results for rows of the second database object; and Each local join node of the plurality of nodes sends each join result tuple produced by the local join node in at least a portion of the corresponding set of join result tuples to a node of the plurality of nodes that originated a row in a target database object identified by a first row identifier in each join result tuple.
8. The method of claim 7, further comprising: A specific node among the plurality of nodes receives a specific join result tuple sent from one or more other nodes among the plurality of nodes; The particular node retrieves a first projection column from a first row identified by a particular first row identifier from the particular join result tuple; The specific node creates a concatenated join result tuple, the concatenated join result tuple including (a) the first projection column and (b) a specific second row identifier from the specific join result tuple; and The specific node sends the concatenated join result tuple to another node among the plurality of nodes that stores a record matching the specific second row identifier; The materialized set of the specific join result tuples received at the another node among the plurality of nodes includes the concatenated join result tuple.
9. The method of claim 8, further comprising: The another node of the plurality of nodes materializes a particular row of a join result materialization based at least in part on the concatenated join result tuple in the materialized set of the particular join result tuples received by the particular node; Wherein materializing the specific row comprises: retrieving from the memory of the another node a second projected column from the second database object for a second row of the second database object identified by the particular second row identifier; The particular row of the join result materialization is created, including both the first projected column of the first row and the second projected column of the second row.
10. The method of claim 1, further comprising: The database management system receives a query including a join operation; In response to receiving the query, a query optimizer of the database management system determines whether to use a late materialized join for a join operation based at least in part on database statistics and the query; as well as The database management system performs a join operation on the first database object and the second database object to generate a join result materialization in response to the query optimizer determining to use a late materialized join for the query.
11. One or more computer-readable storage media storing instructions, which, when executed by one or more processors, cause the method of any one of claims 1 to 10 to be performed.
12. A computer program product comprising instructions which, when executed by one or more processors, cause the method of any one of claims 1 to 10 to be performed.
13. A computing device comprising: one or more processors; as well as A memory coupled to the one or more processors and comprising instructions stored on the memory, which, when executed by the one or more processors, cause the method of any one of claims 1-10 to be performed.
