Skip to main content

2017 | OriginalPaper | Buchkapitel

Optimization of Memory Operations in Generalized Search Trees of PostgreSQL

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

search-config
loading …

Abstract

Our team is working on new algorithms for intra-page indexing in PostgreSQL generalized search trees. During this work, we encountered that slight modification of the algorithm for modification of a tuple on a page can significantly affect the performance. This effect is caused by optimization of page compaction operations and speeds up inserts and updates of a data. Most important performance improvement is gained using sorted data insertion, time to insert data into an index can be reduced by a factor of 3. For a randomized data performance increase is around 15%. Size of the index also significantly reduced. This paper describes implementation and evaluation of the technique in PostgreSQL codebase. Proposed patch is committed to upstream and expected to be released with the PostgreSQL 10.

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 Bayer, R.: Binary b-trees for virtual memory. In: Proceedings of the 1971 ACM SIGFIDET (Now SIGMOD) Workshop on Data Description, Access and Control, pp. 219–235. ACM (1971) Bayer, R.: Binary b-trees for virtual memory. In: Proceedings of the 1971 ACM SIGFIDET (Now SIGMOD) Workshop on Data Description, Access and Control, pp. 219–235. ACM (1971)
2.
Zurück zum Zitat Beckmann, N., Seeger, B.: A revised r*-tree in comparison with related index structures. In: SIGMOD 2009 Proceedings of the 2009 ACM SIGMOD International Conference on Management of Data (2009) Beckmann, N., Seeger, B.: A revised r*-tree in comparison with related index structures. In: SIGMOD 2009 Proceedings of the 2009 ACM SIGMOD International Conference on Management of Data (2009)
3.
Zurück zum Zitat Borodin, A., Kiselev, Y., Mirvoda, S., Porshnev, S.: On design of domain-specific query language for the metallurgical industry. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015. CCIS, vol. 521, pp. 505–515. Springer, Cham (2015). doi:10.1007/978-3-319-18422-7_45 Borodin, A., Kiselev, Y., Mirvoda, S., Porshnev, S.: On design of domain-specific query language for the metallurgical industry. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015. CCIS, vol. 521, pp. 505–515. Springer, Cham (2015). doi:10.​1007/​978-3-319-18422-7_​45
4.
Zurück zum Zitat Borodin, A., Mirvoda, S., Porshnev, S.: Database index debug techniques: a case study. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015-2016. CCIS, vol. 613, pp. 648–658. Springer, Cham (2016). doi:10.1007/978-3-319-34099-9_50 CrossRef Borodin, A., Mirvoda, S., Porshnev, S.: Database index debug techniques: a case study. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015-2016. CCIS, vol. 613, pp. 648–658. Springer, Cham (2016). doi:10.​1007/​978-3-319-34099-9_​50 CrossRef
8.
Zurück zum Zitat Chilingarian, I., Bartunov, O., Richter, J., Sigaev, T.: Postgresql: the suitable DBMS solution for astronomy and astrophysics. In: Astronomical Data Analysis Software and Systems (ADASS) XIII, vol. 314, p. 225 (2004) Chilingarian, I., Bartunov, O., Richter, J., Sigaev, T.: Postgresql: the suitable DBMS solution for astronomy and astrophysics. In: Astronomical Data Analysis Software and Systems (ADASS) XIII, vol. 314, p. 225 (2004)
9.
Zurück zum Zitat Garcia-Molina, H., Ullman, J.D., Widom, J.: Database System Implementation, vol. 654. Prentice Hall, Upper Saddle River (2000) Garcia-Molina, H., Ullman, J.D., Widom, J.: Database System Implementation, vol. 654. Prentice Hall, Upper Saddle River (2000)
10.
Zurück zum Zitat Guttman, A.: R-trees: A Dynamic Index Structure for Spatial Searching, vol. 14. ACM, New York (1984) Guttman, A.: R-trees: A Dynamic Index Structure for Spatial Searching, vol. 14. ACM, New York (1984)
11.
Zurück zum Zitat Hameurlain, A., Morvan, F.: Big data management in the cloud: evolution or crossroad? In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015-2016. CCIS, vol. 613, pp. 23–38. Springer, Cham (2016). doi:10.1007/978-3-319-34099-9_2 CrossRef Hameurlain, A., Morvan, F.: Big data management in the cloud: evolution or crossroad? In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015-2016. CCIS, vol. 613, pp. 23–38. Springer, Cham (2016). doi:10.​1007/​978-3-319-34099-9_​2 CrossRef
12.
Zurück zum Zitat Hellerstein, J.M., Naughton, J.F., Pfeffer, A.: Generalized search trees for database systems, September 1995 Hellerstein, J.M., Naughton, J.F., Pfeffer, A.: Generalized search trees for database systems, September 1995
13.
Zurück zum Zitat Kornacker, M., Mohan, C., Hellerstein, J.M.: Concurrency and recovery in generalized search trees. In: ACM SIGMOD Record, vol. 26, pp. 62–72. ACM (1997) Kornacker, M., Mohan, C., Hellerstein, J.M.: Concurrency and recovery in generalized search trees. In: ACM SIGMOD Record, vol. 26, pp. 62–72. ACM (1997)
14.
Zurück zum Zitat Korotkov, A.: A new double sorting-based node splitting algorithm for r-tree. In: Proceedings of the Spring/Summer Young Researchers Colloquium on Software Engineering. vol. 5 (2011) Korotkov, A.: A new double sorting-based node splitting algorithm for r-tree. In: Proceedings of the Spring/Summer Young Researchers Colloquium on Software Engineering. vol. 5 (2011)
15.
Zurück zum Zitat Krechowicz, A., Deniziak, S., Łukawski, G., Bedla, M.: Preserving data consistency in scalable distributed two layer data structures. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015. CCIS, vol. 521, pp. 126–135. Springer, Cham (2015). doi:10.1007/978-3-319-18422-7_11 Krechowicz, A., Deniziak, S., Łukawski, G., Bedla, M.: Preserving data consistency in scalable distributed two layer data structures. In: Kozielski, S., Mrozek, D., Kasprowski, P., Małysiak-Mrozek, B., Kostrzewa, D. (eds.) BDAS 2015. CCIS, vol. 521, pp. 126–135. Springer, Cham (2015). doi:10.​1007/​978-3-319-18422-7_​11
Metadaten
Titel
Optimization of Memory Operations in Generalized Search Trees of PostgreSQL
verfasst von
Andrey Borodin
Sergey Mirvoda
Ilia Kulikov
Sergey Porshnev
Copyright-Jahr
2017
DOI
https://doi.org/10.1007/978-3-319-58274-0_19

Premium Partner