Title
Query processing techniques for solid state drives
Abstract
Solid state drives perform random reads more than 100x faster than traditional magnetic hard disks, while offering comparable sequential read and write bandwidth. Because of their potential to speed up applications, as well as their reduced power consumption, these new drives are expected to gradually replace hard disks as the primary permanent storage media in large data centers. However, although they may benefit applications that stress random reads immediately, they may not improve database applications, especially those running long data analysis queries. Database query processing engines have been designed around the speed mismatch between random and sequential I/O on hard disks and their algorithms currently emphasize sequential accesses for disk-resident data. In this paper, we investigate data structures and algorithms that leverage fast random reads to speed up selection, projection, and join operations in relational query processing. We first demonstrate how a column-based layout within each page reduces the amount of data read during selections and projections. We then introduce FlashJoin, a general pipelined join algorithm that minimizes accesses to base and intermediate relational data. FlashJoin's binary join kernel accesses only the join attributes, producing partial results in the form of a join index. Subsequently, its fetch kernel retrieves the attributes for later nodes in the query plan as they are needed. FlashJoin significantly reduces memory and I/O requirements for each join in the query. We implemented these techniques inside Postgres and experimented with an enterprise SSD drive. Our techniques improved query runtimes by up to 6x for queries ranging from simple relational scans and joins to full TPC-H queries.
Year
DOI
Venue
2009
10.1145/1559845.1559854
SIGMOD Conference
Keywords
Field
DocType
intermediate relational data,disk-resident data,query runtimes,hard disk,query processing technique,database query processing engine,long data analysis query,query plan,full tpc-h query,large data center,solid state drive,data structure,relational data,indexation,data analysis
Hash join,Query optimization,Data mining,Data structure,Joins,Relational database,Recursive join,Computer science,Parallel computing,Database,Query plan,Speedup
Conference
Citations 
PageRank 
References 
91
3.82
25
Authors
5
Name
Order
Citations
PageRank
Dimitris Tsirogiannis147519.18
Stavros Harizopoulos2101866.91
Mehul A. Shah33547317.66
Janet L. Wiener43813600.46
Goetz Graefe52972716.84