Skip to main content

2016 | OriginalPaper | Buchkapitel

Estimating Costs of Materialization Methods for SQL:1999 Recursive Queries

verfasst von : Aleksandra Boniewicz, Piotr Wiśniewski, Krzysztof Stencel

Erschienen in: Beyond Databases, Architectures and Structures. Advanced Technologies for Data Mining and Knowledge Discovery

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Although querying hierarchies and networks is one of common tasks in numerous business application, the SQL standard has not acquired appropriate features until its 1999 edition. Furthermore, neither relational algebra nor calculus offer them. Since the announcement of the abovementioned standard, various database vendors introduced SQL:1999 recursive queries into their products. Yet, there are popular database management systems that do not support such recursion. MySQL is probably the most profound example. If the DBMS used is contacted via an object-relational mapper (ORM), there is a possibility to offer recursive queries provided by this middleware layer. Moreover, data structures materialized in the DBMS can be used to accelerate such queries. In prequel papers, we have presented a product line of features that eventually allow MySQL users to run SQL:1999 recursive queries via ORM. They were: (1) appropriate ORM programmer interfaces, (2) optimization methods of recursive queries, and (3) methods to build materialized data structures that accelerate recursive queries. We have indicated four such methods, i.e.: full paths, logarithmic paths, materialized paths and logarithmic paths. In this paper we aim to assist a database/system architect in the choice of the optimal solutions for the expected workload. We have performed exhaustive experiments to build a cost model for each of the solutions. Their results have been analyzed to build empirical formulae of the cost model. Using this formulae and estimated properties of the expected workload, the database architect or administrator can choose the best materialization method for his/her application.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Bauer, C., King, G.: Java Persistence with Hibernate. Manning Publications Co., Greenwich (2006) Bauer, C., King, G.: Java Persistence with Hibernate. Manning Publications Co., Greenwich (2006)
2.
Zurück zum Zitat Boniewicz, A., Gawarkiewicz, M., Wiśniewski, P.: Automatic selection of functional indexes for object relational mappings system. IJSEA 7(4), 189–196 (2013) Boniewicz, A., Gawarkiewicz, M., Wiśniewski, P.: Automatic selection of functional indexes for object relational mappings system. IJSEA 7(4), 189–196 (2013)
3.
Zurück zum Zitat Boniewicz, A., Stencel, K., Wiśniewski, P.: Unrolling SQL: 1999 recursive queries. In: Kim, T., Ma, J., Fang, W., Zhang, Y., Cuzzocrea, A. (eds.) EL, DTA and UNESST 2012. CCIS, vol. 352, pp. 345–354. Springer, Heidelberg (2012)CrossRef Boniewicz, A., Stencel, K., Wiśniewski, P.: Unrolling SQL: 1999 recursive queries. In: Kim, T., Ma, J., Fang, W., Zhang, Y., Cuzzocrea, A. (eds.) EL, DTA and UNESST 2012. CCIS, vol. 352, pp. 345–354. Springer, Heidelberg (2012)CrossRef
4.
Zurück zum Zitat Boniewicz, A., Wisniewski, P., Stencel, K.: On materializing paths for faster recursive querying. In: Catania, B. (ed.) New Trends in Databases and Information Systems. AISC, vol. 241, pp. 105–112. Springer, Switzerland (2013)CrossRef Boniewicz, A., Wisniewski, P., Stencel, K.: On materializing paths for faster recursive querying. In: Catania, B. (ed.) New Trends in Databases and Information Systems. AISC, vol. 241, pp. 105–112. Springer, Switzerland (2013)CrossRef
5.
Zurück zum Zitat Boniewicz, A., Wisniewski, P., Stencel, K.: On redundant data for faster recursive querying via ORM systems. In: FedCSIS, pp. 1439–1446 (2013) Boniewicz, A., Wisniewski, P., Stencel, K.: On redundant data for faster recursive querying via ORM systems. In: FedCSIS, pp. 1439–1446 (2013)
6.
Zurück zum Zitat Brandon, D.: Recursive database structures. J. Comput. Sci. Coll. 21(2), 295–304 (2005) Brandon, D.: Recursive database structures. J. Comput. Sci. Coll. 21(2), 295–304 (2005)
7.
Zurück zum Zitat Burzańska, M., Stencel, K., Suchomska, P., Szumowska, A., Wiśniewski, P.: Recursive queries using object relational mapping. In: Kim, T., Lee, Y., Kang, B.-H., Ślęzak, D. (eds.) FGIT 2010. LNCS, vol. 6485, pp. 42–50. Springer, Heidelberg (2010)CrossRef Burzańska, M., Stencel, K., Suchomska, P., Szumowska, A., Wiśniewski, P.: Recursive queries using object relational mapping. In: Kim, T., Lee, Y., Kang, B.-H., Ślęzak, D. (eds.) FGIT 2010. LNCS, vol. 6485, pp. 42–50. Springer, Heidelberg (2010)CrossRef
8.
Zurück zum Zitat Burzańska, M., Stencel, K., Wiśniewski, P.: Pushing predicates into recursive SQL common table expressions. In: Grundspenkis, J., Morzy, T., Vossen, G. (eds.) ADBIS 2009. LNCS, vol. 5739, pp. 194–205. Springer, Heidelberg (2009)CrossRef Burzańska, M., Stencel, K., Wiśniewski, P.: Pushing predicates into recursive SQL common table expressions. In: Grundspenkis, J., Morzy, T., Vossen, G. (eds.) ADBIS 2009. LNCS, vol. 5739, pp. 194–205. Springer, Heidelberg (2009)CrossRef
9.
Zurück zum Zitat Celko, J.: Joe Celko’s Trees and Hierarchies in SQL for Smarties, 2nd edn. Elsevier/Morgan Kaufmann, Boston (2012) Celko, J.: Joe Celko’s Trees and Hierarchies in SQL for Smarties, 2nd edn. Elsevier/Morgan Kaufmann, Boston (2012)
10.
Zurück zum Zitat Gawarkiewicz, M., Wiśniewski, P.: Partial aggregation using Hibernate. In: Kim, T., Adeli, H., Slezak, D., Sandnes, F.E., Song, X., Chung, K., Arnett, K.P. (eds.) FGIT 2011. LNCS, vol. 7105, pp. 90–99. Springer, Heidelberg (2011)CrossRef Gawarkiewicz, M., Wiśniewski, P.: Partial aggregation using Hibernate. In: Kim, T., Adeli, H., Slezak, D., Sandnes, F.E., Song, X., Chung, K., Arnett, K.P. (eds.) FGIT 2011. LNCS, vol. 7105, pp. 90–99. Springer, Heidelberg (2011)CrossRef
11.
Zurück zum Zitat Ghazal, A., Crolotte, A., Seid, D.Y.: Recursive SQL query optimization with k-iteration lookahead. In: Bressan, S., Küng, J., Wagner, R. (eds.) DEXA 2006. LNCS, vol. 4080, pp. 348–357. Springer, Heidelberg (2006)CrossRef Ghazal, A., Crolotte, A., Seid, D.Y.: Recursive SQL query optimization with k-iteration lookahead. In: Bressan, S., Küng, J., Wagner, R. (eds.) DEXA 2006. LNCS, vol. 4080, pp. 348–357. Springer, Heidelberg (2006)CrossRef
12.
Zurück zum Zitat Keller, W.: Mapping objects to tables. A pattern language. In: EuroPLoP, pp. 1–26 (1997) Keller, W.: Mapping objects to tables. A pattern language. In: EuroPLoP, pp. 1–26 (1997)
13.
Zurück zum Zitat Melnik, S., Adya, A., Bernstein, P.A.: Compiling mappings to bridge applications and databases. ACM Trans. Database Syst. 33(4), 1–50 (2008)CrossRef Melnik, S., Adya, A., Bernstein, P.A.: Compiling mappings to bridge applications and databases. ACM Trans. Database Syst. 33(4), 1–50 (2008)CrossRef
14.
Zurück zum Zitat O’Neil, E.J.: Object/relational mapping 2008: Hibernate and the Entity Data Model (EDM). In: SIGMOD, pp. 1351–1356 (2008) O’Neil, E.J.: Object/relational mapping 2008: Hibernate and the Entity Data Model (EDM). In: SIGMOD, pp. 1351–1356 (2008)
15.
Zurück zum Zitat Ordonez, C.: Optimization of linear recursive queries in SQL. IEEE Trans. Knowl. Data Eng. 22(2), 264–277 (2010)MathSciNetCrossRef Ordonez, C.: Optimization of linear recursive queries in SQL. IEEE Trans. Knowl. Data Eng. 22(2), 264–277 (2010)MathSciNetCrossRef
16.
Zurück zum Zitat Przymus, P., Boniewicz, A., Burzańska, M., Stencel, K.: Recursive query facilities in relational databases: a survey. In: Zhang, Y., Cuzzocrea, A., Ma, J., Chung, K., Arslan, T., Song, X. (eds.) DTA and BSBT 2010. CCIS, vol. 118, pp. 89–99. Springer, Heidelberg (2010)CrossRef Przymus, P., Boniewicz, A., Burzańska, M., Stencel, K.: Recursive query facilities in relational databases: a survey. In: Zhang, Y., Cuzzocrea, A., Ma, J., Chung, K., Arslan, T., Song, X. (eds.) DTA and BSBT 2010. CCIS, vol. 118, pp. 89–99. Springer, Heidelberg (2010)CrossRef
17.
Zurück zum Zitat Szumowska, A., Burzańska, M., Wiśniewski, P., Stencel, K.: Efficient implementation of recursive queries in major object relational mapping systems. In: Kim, T., Adeli, H., Slezak, D., Sandnes, F.E., Song, X., Chung, K., Arnett, K.P. (eds.) FGIT 2011. LNCS, vol. 7105, pp. 78–89. Springer, Heidelberg (2011)CrossRef Szumowska, A., Burzańska, M., Wiśniewski, P., Stencel, K.: Efficient implementation of recursive queries in major object relational mapping systems. In: Kim, T., Adeli, H., Slezak, D., Sandnes, F.E., Song, X., Chung, K., Arnett, K.P. (eds.) FGIT 2011. LNCS, vol. 7105, pp. 78–89. Springer, Heidelberg (2011)CrossRef
18.
Zurück zum Zitat Wiśniewski, P., Szumowska, A., Burzańska, M., Boniewicz, A.: Hibernate the recursive queries - defining the recursive queries using Hibernate ORM. In: Eder, J., Bieliková, M., Min Tjoa, A. (eds.) ADBIS 2011. CEUR Workshop Proceedings, vol. 789, pp. 190–199 (2011) Wiśniewski, P., Szumowska, A., Burzańska, M., Boniewicz, A.: Hibernate the recursive queries - defining the recursive queries using Hibernate ORM. In: Eder, J., Bieliková, M., Min Tjoa, A. (eds.) ADBIS 2011. CEUR Workshop Proceedings, vol. 789, pp. 190–199 (2011)
Metadaten
Titel
Estimating Costs of Materialization Methods for SQL:1999 Recursive Queries
verfasst von
Aleksandra Boniewicz
Piotr Wiśniewski
Krzysztof Stencel
Copyright-Jahr
2016
DOI
https://doi.org/10.1007/978-3-319-34099-9_17

Premium Partner