Skip to main content
Log in

Seeking the truth about ad hoc join costs

  • Published:
The VLDB Journal Aims and scope Submit manuscript

Abstract.

In this paper, we re-examine the results of prior work on methods for computing ad hoc joins. We develop a detailed cost model for predicting join algorithm performance, and we use the model to develop cost formulas for the major ad hoc join methods found in the relational database literature. We show that various pieces of “common wisdom” about join algorithm performance fail to hold up when analyzed carefully, and we use our detailed cost model to derive op timal buffer allocation schemes for each of the join methods examined here. We show that optimizing their buffer allocations can lead to large performance improvements, e.g., as much as a 400% improvement in some cases. We also validate our cost model's predictions by measuring an actual implementation of each join algorithm considered. The results of this work should be directly useful to implementors of relational query optimizers and query processing systems.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Edited by M. Adiba. Received May 1993 / Accepted April 1996

Rights and permissions

Reprints and permissions

About this article

Cite this article

Haas, L., Carey, M., Livny, M. et al. Seeking the truth about ad hoc join costs. The VLDB Journal 6, 241–256 (1997). https://doi.org/10.1007/s007780050043

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s007780050043

Navigation