On saying “Enough already!” in SQL

  • Authors:
  • Michael J. Carey;Donald Kossmann

  • Affiliations:
  • IBM Almaden Research Center, San Jose, CA;University of Passau, 94030 Passau, Germany and IBM Almaden Research Center, San Jose, CA

  • Venue:
  • SIGMOD '97 Proceedings of the 1997 ACM SIGMOD international conference on Management of data
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we study a simple SQL extension that enables query writers to explicitly limit the cardinality of a query result. We examine its impact on the query optimization and run-time execution components of a relational DBMS, presenting two approaches—a Conservative approach and an Aggressive approach—to exploiting cardinality limits in relational query plans. Results obtained from an empirical study conducted using DB2 demonstrate the benefits of the SQL extension and illustrate the tradeoffs between our two approaches to implementing it.