Skip to main content

A Semantic Matrix for Aggregate Query Rewriting

  • Conference paper
  • First Online:
Information Search, Integration, and Personalization (ISIP 2015)

Abstract

In order to take into account the ever increasing volumes of data to be stored in computing systems and applications, the concept of cloud computing offers appropriate environments in which elastic architectures are provided under a pay-as-you-go cost model. Thus, when it comes to exploit these huge volumes of data, it is of paramount importance that optimization techniques can be used in order to reduce the computing costs. Query rewriting and caching is one of the most popular optimization techniques in this respect.

In this work, we propose a novel approach to deal with rewriting of aggregate queries, the most common queries in data warehousing applications. We propose a new strategy to generate possible rewritings for a new query, using the content of the cache, namely previously asked queries stored as cache entries. Our solution relies on a semantic matrix, and is generic enough to consider queries involving selection, projection and any aggregation functions.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Institutional subscriptions

Similar content being viewed by others

References

  1. Afrati, F., Kiourtis, N.: Query answering using views in the presence of dependencies. In: International Workshop on New Trends in Information Integration (NTII), pp. 8–11 (2008)

    Google Scholar 

  2. Armbrust, M., Fox, A., Griffith, R., Joseph, A.D., Katz, R.H., Konwinski, A., Lee, G., Patterson, D.A., Rabkin, A., Stoica, I., Zaharia, M.: A view of cloud computing. Commun. ACM 53(4), 50–58 (2010)

    Article  Google Scholar 

  3. Calvanese, D., Giacomo, G.D., Lenzerini, M., Vardi, M.Y.: What is query rewriting? (Position paper), pp. 1–13. www.dis.uniroma1.it/~lenzerin/krdb01/main.ps

  4. Chen, L., Rundensteiner, E.A., Wang, S.: Xcache: a semantic caching system for XML queries. In: ACM SIGMOD International Conference on Management of Data, p. 618. ACM (2002)

    Google Scholar 

  5. Chidlovskii, B., Borghoff, U.M.: Semantic caching of web queries. VLDB J. 9(1), 2–17 (2000)

    Article  Google Scholar 

  6. Dar, S., Franklin, M.J., Jónsson, B., Srivastava, D., Tan, M.: Semantic data caching and replacement. In: VLDB 1996, Proceedings of 22th International Conference on Very Large Data Bases, pp. 330–341. Morgan Kaufmann (1996)

    Google Scholar 

  7. Deshpande, P., Ramasamy, K., Shukla, A., Naughton, J.F.: Caching multidimensional queries using chunks. In: ACM SIGMOD International Conference on Management of Data, pp. 259–270. ACM Press (1998)

    Google Scholar 

  8. d’Orazio, L., Traoré, M.K.: Semantic caching for pervasive grids. In: International Database Engineering and Applications Symposium (IDEAS), ACM International Conference Proceeding Series, pp. 227–233. ACM (2009)

    Google Scholar 

  9. Elghandour, I., Aboulnaga, A.: Restore: reusing results of mapreduce jobs. PVLDB 5(6), 586–597 (2012)

    Google Scholar 

  10. Elghandour, I., Aboulnaga, A.: Restore: reusing results of mapreduce jobs in pig. In: ACM SIGMOD International Conference on Management of Data, pp. 701–704. ACM (2012)

    Google Scholar 

  11. Giannikis, G., Alonso, G., Kossmann, D.: Shareddb: killing one thousand queries with one stone. PVLDB 5(6), 526–537 (2012)

    Google Scholar 

  12. Halevy, A.Y.: Answering queries using views: a survey. VLDB J. 10, 270–294 (2001)

    Article  MATH  Google Scholar 

  13. Keller, A.M., Basu, J.: A predicate-based caching scheme for client-server database architectures. VLDB J. 5(1), 35–47 (1996)

    Article  Google Scholar 

  14. Kimball, R.: The Datawarehouse Toolkit. Wiley, New York (1996)

    Google Scholar 

  15. Laurent, D., Spyratos, N.: Rewriting aggregate queries using functional dependencies. In: International ACM Conference on Management of Emergent Digital EcoSystems (MEDES), pp. 40–47. ACM (2011)

    Google Scholar 

  16. Lillis, K., Pitoura, E.: Cooperative xpath caching. In: ACM SIGMOD International Conference on Management of Data, pp. 327–338. ACM (2008)

    Google Scholar 

  17. Nykiel, T., Potamias, M., Mishra, C., Kollios, G., Koudas, N.: Mrshare: sharing across multiple queries in mapreduce. PVLDB 3(1), 494–505 (2010)

    MATH  Google Scholar 

  18. Park, C., Kim, M., Lee, Y.: Rewriting OLAP queries using materialized views and dimension hierarchies in data warehouses. In: International Conference on Data Engineering, (ICDE), pp. 515–523. IEEE Computer Society (2001)

    Google Scholar 

  19. Perriot, R., d’Orazio, L., Laurent, D., Spyratos, N.: Rewriting aggregate queries using functional dependencies within the cloud. In: Kawtrakul, A., Laurent, D., Spyratos, N., Tanaka, Y. (eds.) ISIP 2013. CCIS, vol. 421, pp. 31–42. Springer, Heidelberg (2014)

    Google Scholar 

  20. Ren, Q., Dunham, M.H., Kumar, V.: Semantic caching and query processing. IEEE Trans. Knowl. Data Eng. 15(1), 192–210 (2003)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Romain Perriot .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Perriot, R., d’Orazio, L., Laurent, D., Spyratos, N. (2016). A Semantic Matrix for Aggregate Query Rewriting. In: Grant, E., Kotzinos, D., Laurent, D., Spyratos, N., Tanaka, Y. (eds) Information Search, Integration, and Personalization. ISIP 2015. Communications in Computer and Information Science, vol 622. Springer, Cham. https://doi.org/10.1007/978-3-319-43862-7_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-43862-7_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-43861-0

  • Online ISBN: 978-3-319-43862-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics