Skip to main content

On joining and caching stochastic streams

Publication ,  Journal Article
Xie, J; Yang, J; Chen, Y
Published in: Proceedings of the ACM SIGMOD International Conference on Management of Data
December 1, 2005

We consider the problem of joining data streams using limited cache memory, with the goal of producing as many result tuples as possible from the cache. Many cache replacement heuristics have been proposed in the past. Their performance often relies on implicit assumptions about the input streams, e.g., that the join attribute values follow a relatively stationary distribution. However, in general and in practice, streams often exhibit more complex behaviors, such as increasing trends and random walks, rendering these "hardwired" heuristics inadequate. In this paper, we propose a framework that is able to exploit known or observed statistical properties of input streams to make cache replacement decisions aimed at maximizing the expected number of result tuples. To illustrate the complexity of the solution space, we show that even an algorithm that considers, at every time step, all possible sequences of future replacement decisions may not be optimal. We then identify a condition between two candidate tuples under which an optimal algorithm would always choose one tuple over the other to replace. We develop a heuristic that behaves consistently with an optimal algorithm whenever this condition is satisfied. We show through experiments that our heuristic outperforms previous ones. As another evidence of the generality of our framework, we show that the classic caching/paging problem for static objects can be reduced to a stream join problem and analyzed under our framework, yielding results that agree with or extend classic ones. Copyright 2005 ACM.

Duke Scholars

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

December 1, 2005

Start / End Page

359 / 370
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Xie, J., Yang, J., & Chen, Y. (2005). On joining and caching stochastic streams. Proceedings of the ACM SIGMOD International Conference on Management of Data, 359–370. https://doi.org/10.1145/1066157.1066199
Xie, J., J. Yang, and Y. Chen. “On joining and caching stochastic streams.” Proceedings of the ACM SIGMOD International Conference on Management of Data, December 1, 2005, 359–70. https://doi.org/10.1145/1066157.1066199.
Xie J, Yang J, Chen Y. On joining and caching stochastic streams. Proceedings of the ACM SIGMOD International Conference on Management of Data. 2005 Dec 1;359–70.
Xie, J., et al. “On joining and caching stochastic streams.” Proceedings of the ACM SIGMOD International Conference on Management of Data, Dec. 2005, pp. 359–70. Scopus, doi:10.1145/1066157.1066199.
Xie J, Yang J, Chen Y. On joining and caching stochastic streams. Proceedings of the ACM SIGMOD International Conference on Management of Data. 2005 Dec 1;359–370.

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

December 1, 2005

Start / End Page

359 / 370