Back to search

Technische Universität Dresden

Memory-Efficient Query Processing for Main-Memory Databases

Abstract

dc:description.abstract

Memory consumption in database systems is a critical issue. While most techniques to reduce memory consumption focus on minimizing table data impact, mitigating the impact of memory consumption imposed by query processing tends to get overlooked. Common techniques, however, exist, and encompass traditional techniques like hash table and probe side partitioning when executing joins, employing data structures with minimal memory footprint during query processing, and compressing intermediate results. The dynamics within allocation of memory consumers on the other hand are not well studied. In modern query processors, we can leverage the dynamics of pipeline execution to optimize memory consumption. In-memory database systems like SAP HANA use pipelining query execution engines to execute queries. For executing pipelines, state-of-the-art engines utilize fine-grained parallelism to fully utilize all available hardware threads. Due to this, only one pipeline should be executed at any time, which necessitates ordering of execution. A direct result of the execution of pipelines are intermediate results. Those intermediate results are contained in so-called pipeline breakers. Pipeline breakers dominate memory consumption in query processing. A pipeline breaker only materializes when a pipeline is executed, hence only consumes memory from this point until deallocation. The intermediate result within pipeline breaker is deallocated once the intermediate result has been consumed. We found that we can lower the memory consumption by optimizing Pipeline Execution Orders (PEOs), which is the execution order of executable pipelines in query engines. This opportunity is enabled by effectively changing the time when pipeline breakers materialize through this ordering. Within this doctoral thesis, I explore the optimization of memory consumption by enumerating PEOs and assigning them with memory consumption estimates. I show that we can effectively lower the memory consumption by up to 11.1% in a pipelining engine prototype with strong confidence. I established mathematical methods to precisely calculate the enumeration overhead of our approach. I further implemented our approach in an industrial database system prototype with my component called PEOopt, which can contribute memory consumption reduction up to 36%.

Degree

thesis:*
Level thesis:degree_level
thesis.doctoral
Department thesis:degree_department
Informatik
Grantor dc:publisher
Technische Universität Dresden
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Landgraf, Lukas

Subjects

dc:subject × 5

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • free
  • info:eu-repo/semantics/openAccess
Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*
Dc Publisher Identifier
2024114-8
Ddb Identifier Erstkat Id
1989572332

Chain of custody

source
Harvested from
QUCOSA
Base URL
www.qucosa.de/oai/
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Landgraf, Lukas. Memory-Efficient Query Processing for Main-Memory Databases. thesis.doctoral thesis, Technische Universität Dresden, 2026. https://nbn-resolving.org/urn:nbn:de:bsz:14-qucosa2-1075115