Method for external sorting in shared-nothing parallel architectures
AssigneeInternational Business Machines Corporation
InventorsArun N. Swami, Honesty C. Young
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsArun N. Swami, Honesty C. Young
Estimating the term…
A system and method is provided for distributed relational databases for parallel sorting of a relation wherein the relation is a set of tuples to be sorted on multiple sort sites which completely decouples the return phase from the sort phase in order to eliminate the merge phase. The method involves selecting one coordinator site from any of the available logical sites, then generating and sorting a local sample on each of the available storage sites before sending the local random sample from each storage site to the designated coordinator site wherein the local random samples are merged to provide a single global sample. The coordinator site determines the global interval key values based on the global sample. The interval key values being determined such that each interval fits in a single sort site's main memory, wherein the tuples between two interval key values define the interval. The interval key values are sent to the various storage sites wherein each storage site scans its portion of the relation in order to determine for each tuple the assigned interval and its corresponding sort site before sending each tuple to the assigned sort site. At each sort site the tuples are stored in temporary files using a single temporary file for each interval whereafter repeating, for each interval on each sort site, the steps of reading an interval and performing an in-memory sort in any fashion of the interval read before sending the tuples of the sorted interval to the sink site.
A method for parallel sorting of a relation which is to be sorted on multiple sort sites and then sent to a single sink site, the relation including a plurality of tuples, the tuples being distributed over a plurality of storage sites, each sort site having at least a predetermined memory capacity, the method comprising the steps of:
A computer program product for use in a node of a distributed database computer system having a plurality of nodes configured in a network, the nodes including a plurality of sort sites, each of the sort sites having a main memory, and each sort site having at least a predetermined memory capacity, for sorting of a relation wherein the relation is distributed over a plurality of storage sites and wherein the sorted relation is sent to a single sink site, the computer program product comprising:
A distributed relational database system for parallel sorting of a relation which is a set of tuples to be sorted on multiple sites, the system comprising:
A sort node, for use in a distributed relational database, the distributed relational database having a plurality of nodes configured in a network, the network including a plurality of sort sites and a sink site, each of the sort sites corresponding with a respective interval, and each sort site having at least a predetermined memory capacity, the respective intervals being defined as falling between adjacent ones of a sequence of interval key values, the sort node comprising:
A storage node, for use in a distributed relational database, the distributed relational database having a plurality of nodes configured in a network, the network including a designated coordinator site and a plurality of sort sites, each sort site having at least a predetermined memory capacity, the storage node comprising:
A coordinator node, for use in a distributed relational database, the distributed relational database having a plurality of nodes configured in a network, the network including a plurality of other sites, the plurality of other sites including a plurality of sort sites, each of the sort sites having a main memory including at least a predetermined memory capacity, the coordinator node comprising:
Dependencies are inferred from the claim text.