Skip to main content

A Multiple Continuous Query Optimization Method Based on Query Execution Pattern Analysis

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2973))

Abstract

Many data streams are provided through the network today, and continuous queries are often used to extract useful information from data streams. When a system must process many queries continuously, query optimization is quite important for their efficient execution. In this paper, we propose a novel multiple query optimization method for continuous queries based on query execution pattern analysis. In the advanced stream processing environment assumed in the paper, we use window operators to specify time intervals to select information of interest and the execution time specification to designate when the query should be evaluated. Queries having the same operators may share many intermediate results when they are executed at close instants, but may involve only disjoint data when executed at completely different instants. Thus, query execution timing as well as common subexpressions is a key to deciding an efficient query execution plan. The basic idea of the proposed method is to identify query execution patterns from data arrival logs of data streams and to make the most of the information in deciding an efficient query execution plan. The proposed query optimization scheme first analyzes data arrival logs and extracts query execution patterns. It then forms clusters of continuous queries such that queries in the same cluster are likely to be executed at close instants. Finally, it extracts common subexpressions from among queries in each cluster and decides the query execution plan. We also show experiment results using the prototype implementation, and discuss effectiveness of the proposed approach.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Avnur, R., Hellerstein, J.M.: Eddies: Continuously Adaptive Query Processing. In: Proc. ACM SIGMOD, pp. 261–272 (2000)

    Google Scholar 

  2. Carney, D., et al.: Monitoring Streams – A New Class of Data Management Applictions. In: Proc. VLDB, pp. 215–226 (2002)

    Google Scholar 

  3. Chen, J., DeWitt, D.J., Naughton, J.F.: Design and Evaluation of Alternative Selection Placement Strategies in Optimizing Continuous Queries. In: Proc. ICDE, pp. 345–356 (2002)

    Google Scholar 

  4. Chen, J., DeWitt, D.J., Tian, F., Wang, Y.: NiagaraCQ: A Scalable Continuous Query System for Internet Databases. In: Proc. ACM SIGMOD, pp. 379–390 (2000)

    Google Scholar 

  5. Chandrasekaran, S., Franklin, M.J.: Streaming Queries over Streaming Data. In: Proc. VLDB, pp. 203–214 (2002)

    Google Scholar 

  6. Gedik, B., Liu, L.: PeerCQ: A Decentralized and Self-Configuring Peer-to-Peer Informaiton Monitoring System. In: Proc. Intl. Conf. on Distributed Computing Systems, pp. 490–499 (2003)

    Google Scholar 

  7. Kang, J., Naughton, J.F., Viglas, S.D.: EvaluatingWindowJoins over Unbounded Streams. In: Proc. ICDE, pp. 341–352 (2003)

    Google Scholar 

  8. Liu, L., Pu, C., Tang, W.: Continual Queries for Internet Scale Event-Driven Information Delivery. IEEE TKDE 11(4), 610–628 (1999)

    Google Scholar 

  9. Madden, S., Franklin, M.J.: Fjording the Stream:AnArchitecture for Queries over Streaming Sensor Data. In: Proc. ICDE, pp. 555–566 (2002)

    Google Scholar 

  10. Madden, S., Franklin, M.J., Hellerstein, J.M., Hong, W.: The Design of an Acquisitional Query Processor For Sensor Networks. In: Proc. ACM SIGMOD, pp. 491–502 (2003)

    Google Scholar 

  11. Mistry, H., Roy, P., Sudarshan, S., Ramamritham, K.: Materialized View Selection and Maintenance Using Multi-Query Optimization. In: Proc. ACM SIGMOD, pp. 307–318 (2001)

    Google Scholar 

  12. Madden, S., Shah, M., Hellerstein, J.M., Raman, V.: Continuously Adaptive Continuous Queries over Streams. In: Proc. ACM SIGMOD, pp. 49–60 (2002)

    Google Scholar 

  13. Roy, P., Seshadri, S., Sudarshan, S., Bhobe, S.: Efficient and Extensible Algorithms for Multi Query Optimization. In: Proc. ACM SIGMOD, pp. 249–260 (2000)

    Google Scholar 

  14. Salton, G.: Automatic Information Organization and Retrieval. McGraw-Hill Book Company, New York (1968)

    Google Scholar 

  15. Sellis, T.K.: Multiple-Query Optimization. ACM TODS 13(1), 23–52 (1988)

    Article  Google Scholar 

  16. Tatbul, N., Cetintemel, U., Zdonik, S., Cherniack, M., Stonebraker, M.: Load Shedding in a Data Stream Manager. In: Proc. VLDB, pp. 309–320 (2003)

    Google Scholar 

  17. Terry, D., Goldberg, D., Nichols, D.: Continuous Queries over Append-Only Databases. In: Proc. ACM SIGMOD, pp. 321–330 (1992)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Watanabe, Y., Kitagawa, H. (2004). A Multiple Continuous Query Optimization Method Based on Query Execution Pattern Analysis. In: Lee, Y., Li, J., Whang, KY., Lee, D. (eds) Database Systems for Advanced Applications. DASFAA 2004. Lecture Notes in Computer Science, vol 2973. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24571-1_41

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-24571-1_41

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-21047-4

  • Online ISBN: 978-3-540-24571-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics