Abstract
AbstractThis work aims to reduce queries on big data to computations on small data, and hence make querying big data possible under bounded resources. A query Q is boundedly evaluable when posed on any big dataset $${\cal D}$$
D
, there exists a fraction $${{\cal D}_Q}$$
D
Q
of $${\cal D}$$
D
such that $$Q({\cal D}) = Q({{\cal D}_Q})$$
Q
(
D
)
=
Q
(
D
Q
)
, and the cost of identifying $${{\cal D}_Q}$$
D
Q
is independent of the size of $${\cal D}$$
D
. It has been shown that with an auxiliary structure known as access schema, many queries in relational algebra (RA) are boundedly evaluable under the set semantics of RA. This paper extends the theory of bounded evaluation to RAaggr, i.e., RA extended with aggregation, under the bag semantics. (1) We extend access schema to bag access schema, to help us identify $${{\cal D}_Q}$$
D
Q
for RAaggr queries Q. (2) While it is undecidable to determine whether an RAaggr query is boundedly evaluable under a bag access schema, we identify special cases that are decidable and practical. (3) In addition, we develop an effective syntax for bounded RAaggr queries, i.e., a core subclass of boundedly evaluable RAaggr queries without sacrificing their expressive power. (4) Based on the effective syntax, we provide efficient algorithms to check the bounded evaluability of RAaggr queries and to generate query plans for bounded RAaggr queries. (5) As proof of concept, we extend PostgreSQL to support bounded evaluation. We experimentally verify that the extended system improves performance by orders of magnitude.
Publisher
Springer Science and Business Media LLC
Subject
Applied Mathematics,Computer Science Applications,Modelling and Simulation,Control and Systems Engineering
Reference54 articles.
1. C. H. Papadimitriou. Computational Complexity, Reading, USA: Addison-Wesley, 1994.
2. S. Akateboul, Ft. Hull, V. Vianu. Foundations of Databases, Boston, USA: Addison Wesley, 1995.
3. R. Horak. Telecommunications and Data Communications Handbook, New York, USA: Wiley, 2007.
4. W. F. Fan, X. Wang, Y. H. Wu, D. Deng. Distributed graph simulation: Impossibility and possibility. Proceedings of the VLDB Endowment, vol. 7, no. 12, pp. 1083–1094, 2014. DOI: https://doi.org/10.14778/2732977.2732983.
5. W. F. Fan, F. Geerts, Y. Cao, T. Deng, P. Lu. Querying big data by accessing small data. In Proceedings of the 34th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, ACM, Melbourne, Victoria, Auatralia, pp. 173–184, 2015. DOI: https://doi.org/10.1145/2745754.2745771.