Efficient joins with compressed bitmap indexes

We present a new class of adaptive algorithms that use compressed bitmap indexes to speed up evaluation of the range join query in relational databases. We determine the best strategy to process a join query based on a fast sub-linear time computation of the join selectivity (the ratio of the number of tuples in the result to the total number of possible tuples). In addition, we use compressed bitmaps to represent the join output compactly: the space requirement for storing the tuples representing the join of two relations is asymptotically bounded by min(h; n.cb), where h is the number of tuple pairs in the result relation, n is the number of tuples in the smaller of the two relations, and cb is the cardinality of the larger column being joined. We present a theoretical analysis of our algorithms, as well as experimental results on large-scale synthetic and real data sets. Our implementations are efficient, and consistently outperform well-known approaches for a range of join selectivity factors. For instance, our count-only algorithm is up to three orders of magnitude faster than the sort-merge approach, and our best bitmap index-based algorithm is 1.2x-80x faster than the sort-merge algorithm, for various query instances. We achieve these speedups by exploiting several inherent performance advantages of compressed bitmap indexes for join processing: an implicit partitioning of the attributes, space-efficiency, and tolerance of high-cardinality relations.

[1]  Vern Paxson,et al.  Bro: a system for detecting network intruders in real-time , 1998, Comput. Networks.

[2]  Kenneth A. Ross,et al.  PERF join: an alternative to two-way semijoin and bloomjoin , 1995, CIKM '95.

[3]  Elizabeth O'Neil,et al.  Database--Principles, Programming, and Performance , 1994 .

[4]  Alexander S. Szalay,et al.  There Goes the Neighborhood: Relational Algebra for Spatial Data Search , 2004, ArXiv.

[5]  Nick Koudas,et al.  Size separation spatial join , 1997, SIGMOD '97.

[6]  Yannis E. Ioannidis,et al.  Bitmap index design and evaluation , 1998, SIGMOD '98.

[7]  Thiago Luís Lopes Siqueira,et al.  Investigating the Effects of Spatial Data Redundancy in Query Performance over Geographical Data Warehouses , 2008, GeoInfo.

[8]  David J. DeWitt,et al.  An Evaluation of Non-Equijoin Algorithms , 1991, VLDB.

[9]  Doron Rotem,et al.  Bit Transposed Files , 1985, VLDB.

[10]  Nick Koudas Space efficient bitmap indexing , 2000, CIKM '00.

[11]  Yannis E. Ioannidis,et al.  An efficient bitmap encoding scheme for selection queries , 1999, SIGMOD '99.

[12]  Arie Shoshani,et al.  On the performance of bitmap indices for high cardinality attributes , 2004, VLDB.

[13]  Margaret H. Dunham,et al.  Join processing in relational databases , 1992, CSUR.

[14]  Theodore Johnson,et al.  Performance Measurements of Compressed Bitmap Indices , 1999, VLDB.

[15]  Patrick E. O'Neil,et al.  Improved query performance with variant indexes , 1997, SIGMOD '97.

[16]  G. Antoshenkov,et al.  Byte-aligned bitmap compression , 1995, Proceedings DCC '95 Data Compression Conference.

[17]  Henrique Madeira,et al.  The Dimension-Join: A New Index for Data Warehouses , 2001, SBBD.

[18]  Robert A. Power Large Catalogue Query Performance in Relational Databases , 2007, Publications of the Astronomical Society of Australia.

[19]  Goetz Graefe,et al.  Multi-table joins through bitmapped join indices , 1995, SGMD.