Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

Transition System for a Three-Processor, Four Relation Multijoin



Here's a complete graphical representation of all the ways in which we can move from a given initial state X (subscript 0), where the data is in four relations that are physically stored in three different systems, to one of three possible end states (F (subscript 1), F (subscript 2), F (subscript 3)) in which all the relations have been joined into a single relation residing in one processor.

Along the way, there are 11 possible intermediate states. We move from one state to another by performing one of three possible actions: joining two relations already in a single processor, moving a relation to another processor and joining it with a relation already there, or doing any two of these in parallel.

For simplicity's sake, this diagram uses 1 to represent the relation r (subscript 1), and so on. While some paths from X (subscript 0) to the end states are clearly shorter than others, we can find the most efficient path (and thereby the most efficient end state) only by calculating the costs of the operations involved for each state cha nge. For example, in joining a small relation with a large one, where each resides on a different machine, it's obviously more efficient to move the small one than to move the large one.


Back to article: Optimize Database QueriesSearchSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network