Skip to main content

Automated Vertical Partitioning with Deep Reinforcement Learning

  • Conference paper
  • First Online:
New Trends in Databases and Information Systems (ADBIS 2019)

Abstract

Finding the right vertical partitioning scheme to match a workload is one of the essential database optimization problems. With the proper partitioning, queries and management tasks can skip unnecessary data, improving their performance. Algorithmic approaches are common for determining a partitioning scheme, with solutions being shaped by their choice of cost models and pruning heuristics. In spite of their advantages, these can be inefficient since they don’t improve with experience (e.g., learning from errors in cost estimates or heuristics employed). In this paper we consider the feasibility of a general machine learning solution to overcome such drawbacks. Specifically, we extend the work in GridFormation, mapping the partitioning task to a reinforcement learning (RL) task. We validate our proposal experimentally using a TPC-H database and workload, HDD cost models and the Google Dopamine framework for deep RL. We report early evaluations using 3 standard DQN agents, establishing that agents can match the results of state-of-the-art algorithms. We find that convergence is easily achievable for single table-workload pairs, but that generalizing to random workloads requires further work. We also report competitive runtimes for our agents on both GPU and CPU inference, outperforming some state-of-the-art algorithms, as the number of attributes in a table increases.

We thank Dr. Christoph Steup, Milena Malysheva and Ivan Prymak for valuable feedback. This work was partially funded by the DFG (grant no.: SA 465/50-1).

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

Access this chapter

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

Notes

  1. 1.

    https://blogs.oracle.com/oracle-database/oracle-database-19c-now-available-on-oracle-exadata.

References

  1. Agrawal, S., Narasayya, V., Yang, B.: Integrating vertical and horizontal partitioning into automated physical database design. In: SIGMOD, pp. 359–370. ACM (2004)

    Google Scholar 

  2. Bellemare, M.G., Dabney, W., Munos, R.: A distributional perspective on reinforcement learning. In: ICML, pp. 449–458 (2017)

    Google Scholar 

  3. Durand, G.C., Pinnecke, M., Piriyev, R., et al.: GridFormation: towards self-driven online data partitioning using reinforcement learning. In: AIDM@SIGMOD, p. 1. ACM (2018)

    Google Scholar 

  4. Castro, P.S., Moitra, S., Gelada, C., et al.: Dopamine: a research framework for deep reinforcement learning (2018). arXiv preprint arXiv:1812.06110

  5. Dabney, W., Ostrovski, G., Silver, D., et al.: Implicit quantile networks for distributional reinforcement learning (2018). arXiv preprint arXiv:1806.06923

  6. Hessel, M., Modayil, J., Van Hasselt, H., et al.: Rainbow: combining improvements in deep reinforcement learning. In: AAAI (2018)

    Google Scholar 

  7. Hilprecht, B., Binnig, C., Röhm, U.: Towards learning a partitioning advisor with deep reinforcement learning. In: AIDM@SIGMOD (2019)

    Google Scholar 

  8. Jindal, A., Palatinus, E., Pavlov, V., et al.: A comparison of knives for bread slicing. Proc. VLDB Endow. 6(6), 361–372 (2013)

    Google Scholar 

  9. Krishnan, S., Yang, Z., Goldberg, K., et al.: Learning to optimize join queries with deep reinforcement learning (2018). arXiv preprint arXiv:1808.03196

  10. Marcus, R., Papaemmanouil, O.: Deep reinforcement learning for join order enumeration. In: AIDM@SIGMOD, p. 3. ACM (2018)

    Google Scholar 

  11. Marcus, R., Papaemmanouil, O.: Towards a hands-free query optimizer through deep learning (2018). arXiv preprint arXiv:1809.10212

  12. Sharma, A., Schuhknecht, F.M., Dittrich, J.: The case for automatic database administration using deep reinforcement learning (2018). arXiv preprint arXiv:1801.05643

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gabriel Campero Durand .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Campero Durand, G., Piriyev, R., Pinnecke, M., Broneske, D., Gurumurthy, B., Saake, G. (2019). Automated Vertical Partitioning with Deep Reinforcement Learning. In: Welzer, T., et al. New Trends in Databases and Information Systems. ADBIS 2019. Communications in Computer and Information Science, vol 1064. Springer, Cham. https://doi.org/10.1007/978-3-030-30278-8_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-30278-8_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-30277-1

  • Online ISBN: 978-3-030-30278-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics