Sketch-Based Multi-query Processing over Data Streams

  • Alin Dobra
  • Minos Garofalakis
  • Johannes Gehrke
  • Rajeev Rastogi
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2992)

Abstract

Recent years have witnessed an increasing interest in designing algorithms for querying and analyzing streaming data (i.e., data that is seen only once in a fixed order) with only limited memory. Providing (perhaps approximate) answers to queries over such continuous data streams is a crucial requirement for many application environments; examples include large telecom and IP network installations where performance data from different parts of the network needs to be continuously collected and analyzed.

Randomized techniques, based on computing small “sketch” synopses for each stream, have recently been shown to be a very effective tool for approximating the result of a single SQL query over streaming data tuples. In this paper, we investigate the problems arising when data-stream sketches are used to process multiple such queries concurrently. We demonstrate that, in the presence of multiple query expressions, intelligently sharing sketches among concurrent query evaluations can result in substantial improvements in the utilization of the available sketching space and the quality of the resulting approximation error guarantees. We provide necessary and sufficient conditions for multi-query sketch sharing that guarantee the correctness of the result-estimation process. We also prove that optimal sketch sharing typically gives rise to \(\mathcal{NP}\)-hard questions, and we propose novel heuristic algorithms for finding good sketch-sharing configurations in practice. Results from our experimental study with realistic workloads verify the effectiveness of our approach, clearly demonstrating the benefits of our sketch-sharing methodology.

References

  1. 1.
    Gilbert, A.C., Kotidis, Y., Muthukrishnan, S., Strauss, M.J.: How to Summarize the Universe: Dynamic Maintenance of Quantiles. In: VLDB 2002, Hong Kong, China (2002)Google Scholar
  2. 2.
    Bar-Yossef, Z., Jayram, T., Kumar, R., Sivakumar, D., Trevisan, L.: Counting distinct elements in a data stream. In: Rolim, J.D.P., Vadhan, S.P. (eds.) RANDOM 2002. LNCS, vol. 2483, p. 1. Springer, Heidelberg (2002)CrossRefGoogle Scholar
  3. 3.
    Gibbons, P.B., Tirthapura, S.: Estimating Simple Functions on the Union of Data Streams. In: SPAA 2001, Crete Island, Greece (2001)Google Scholar
  4. 4.
    Manku, G.S., Motwani, R.: Approximate Frequency Counts over Data Streams. In: VLDB 2002, Hong Kong, China (2002)Google Scholar
  5. 5.
    Alon, N., Gibbons, P.B., Matias, Y., Szegedy, M.: Tracking Join and Self-Join Sizes in Limited Storage. In: PODS 2001, Philadelphia, Pennsylvania (1999)Google Scholar
  6. 6.
    Alon, N., Matias, Y., Szegedy, M.: The Space Complexity of Approximating the Frequency Moments. In: STOC 1996, Philadelphia, Pennsylvania, pp. 20–29 (1996)Google Scholar
  7. 7.
    Indyk, P.: Stable Distributions, Pseudorandom Generators, Embeddings and Data Stream Computation. In: FOCS 2000, Redondo Beach, California, pp. 189–197 (2000)Google Scholar
  8. 8.
    Gilbert, A.C., Kotidis, Y., Muthukrishnan, S., Strauss, M.J.: Surfing Wavelets on Streams: One-pass Summaries for Approximate Aggregate Queries. In: VLDB 2000, Roma, Italy (2000)Google Scholar
  9. 9.
    Thaper, N., Guha, S., Indyk, P., Koudas, N.: Dynamic Multidimensional Histograms. In: SIGMOD 2002, Madison, Wisconsin (2002)Google Scholar
  10. 10.
    Garofalakis, M., Gehrke, J., Rastogi, R.: Querying and Mining Data Streams: You Only Get One Look. In: Tutorial at VLDB 2002, Hong Kong, China (2002)Google Scholar
  11. 11.
    Dobra, A., Garofalakis, M., Gehrke, J., Rastogi, R.: Processing Complex Aggregate Queries over Data Streams. In: SIGMOD 2002, Madison, Wisconsin, pp. 61–72 (2002)Google Scholar
  12. 12.
    Sellis, T.K.: Multiple-Query Optimization. ACM Transactions on Database Systems 13, 23–52 (1988)CrossRefGoogle Scholar
  13. 13.
    Dobra, A., Garofalakis, M., Gehrke, J., Rastogi, R.: Sketch-based multi-query processing over data streams (manuscript), available at: http://www.cise.ufl.edu/~adobra/papers/sketch-mqo.pdf
  14. 14.
    Motwani, R., Raghavan, P.: Randomized Algorithms. Cambridge University Press, Cambridge (1995)MATHGoogle Scholar
  15. 15.
    Stefanov, S.M.: Separable Programming. Applied Optimization, vol. 53. Kluwer Academic Publishers, Dordrecht (2001)MATHGoogle Scholar
  16. 16.
    Vitter, J.S., Wang, M.: Approximate Computation of Multidimensional Aggregates of Sparse Data UsingWavelets. In: SIGMOD 1999, Philadelphia, Pennsylvania (1999)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2004

Authors and Affiliations

  • Alin Dobra
    • 1
  • Minos Garofalakis
    • 2
  • Johannes Gehrke
    • 3
  • Rajeev Rastogi
    • 2
  1. 1.University of FloridaGainesvilleUSA
  2. 2.Bell LaboratoriesLucent TechnologiesMurray HillUSA
  3. 3.Cornell UniversityIthacaUSA

Personalised recommendations