arXiv:2608.28352cs.DBAug 2026

Manuscript Offprint

arXiv:2608.28352

No Silver Bullet: Boosting GaussDB Performance on the 30TB TPC-H Workload

Tim Zeyl, Jason Lam, Shu Lin, Reza Pournaghi, Qi Cheng, Calvin Wong, Kaixiang Du, Yuliang He, Yang Sun, Weicheng Wang, Paul Lee, Chen Ruo, Yang Xinyi, Li Qunan, Wang Junjie, Hu Dongxing, Chong Chen, Per-Ake Larson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Tim Zeyl

Huawei, Canada

Qi Cheng

Huawei, Canada

Yang Sun

Huawei, Canada

Yang Xinyi

Huawei, China

Jason Lam

Huawei, Canada

Calvin Wong

Huawei, Canada

Weicheng Wang

Huawei, Canada

Li Qunan

Huawei, China

Chong Chen

Huawei, Canada

Shu Lin

Huawei, Canada

Kaixiang Du

Huawei, Canada

Paul Lee

Huawei, Canada

Wang Junjie

Huawei, China

Reza Pournaghi

Huawei, Canada

Yuliang He

Huawei, Canada

Chen Ruo

Huawei, China

Hu Dongxing

Huawei, China

Per-Åke Larson

Huawei, Canada

ABSTRACT

GaussDB is Huawei's premier database system, designed for large-scale deployments and the most demanding workloads. It is a distributed shared-nothing system, capable of handling all types of workloads. This paper outlines a series of modifications to GaussDB aimed at improving its performance on large-scale and complex analytical workloads. After these changes, its performance on the TPC-H workload exceeded the best published result by 40% at 30 TB.

The key enhancements to achieve this elite performance include adopting a pipeline execution model, a faster and more scalable inter-node data shuffle, exploiting a unified bus and unified remote memory access. We also expanded the support of cost-based Bloom filter placement and implemented several Bloom filter streaming strategies, enabling their use across nodes.

1 INTRODUCTION

TPC-H [46] remains one of the most important workloads for assessing analytical queries in relational database management systems. It is reported in many papers each year (e.g., [19, 25, 30, 36, 39, 49, 54]) and enterprises rely on it to decide between database systems [41]. Vendors and researchers use it to understand specific technological challenges, or choke points [7, 14], that allow them to make targeted improvements that lead to better system performance. In this paper, we summarize the specific improvements we made to GaussDB, Huawei's premier database offering, to achieve elite performance on TPC-H at 30 TB. The TPC-H results presented in this paper remain unaudited at the time of writing, though we believe we have adhered to the detailed benchmark specifications laid out by the Transaction Processing Performance Council (TPC).

Scalability is one of the biggest challenges we faced. As relational databases scale to tens of terabytes, database clusters need to scale the number of worker nodes that store and process those data. We identified several issues that needed to be addressed as we scaled out our clusters to support larger and larger database sizes.

First, low CPU utilization was often observed during query processing, which we attributed in part to our Volcano [18] execution model. This execution model required a large number of threads when running under a high degree of parallelism (DOP) in our symmetric multi-processing (SMP) system on each node. Communication and data exchange across threads require operating system (OS)-level scheduling. However, the OS scheduler is not optimized for query processing, relying on mechanisms such as pthread condition variables, and leading to a significant CPU overhead for inter-thread communication. This led us to implement a pipeline execution model (section 3) that proved to be an important factor in maintaining performance at scale.

Second, with naïve communication logic for data exchange, we observed poor scalability of network traffic. When shuffle is performed, logical communication channels between SMP threads on every node must be established with every SMP thread on every other node, leading to severe I/O bottlenecks as the number of nodes (or DOP) increases. We tackled this challenge with a more scalable shuffle, described in section 4, which reduced connections by an exponential factor.

Third, as databases grow, the amount of network traffic required during shuffle also grows. We found that TCP-based communication could lead to network becoming a bottleneck. We realized that we had an opportunity to speed up network traffic during shuffle by making use of Huawei's Unified Bus (UB) communication channels, as described in subsection 4.2.

Fourth, we further observed that certain strategies for streaming Bloom filters across data nodes exhibited poor scaling behavior, so we designed new streaming strategies for Bloom filters as described in section 5. We also extended our Bloom filter-aware cost-based optimization [53] to support distributed deployment.

Several other challenges were observed, including some sub-optimal plans, which we largely addressed by aligning our optimizer's cost model for streaming with the above-mentioned improvements to streaming. We also improved statistics using HyperLogLog (HLL) synopses to estimate column distinct value counts and to verify inclusion dependencies in join clauses (section 6).

Many of these enhancements are based on known techniques, but have been extended and adapted to GaussDB. After integrating them, along with several smaller contributions (section 7), we achieved elite performance on the TPC-H workload. We measured QphH@30TB = 39,508,107 on TPC-H at 30 TB, which is over 40% higher than the historical published record [46]. This impressive result was achieved using ARM-based Kunpeng servers, while reference systems mainly used Intel-based servers.

The remaining sections of the paper are organized as follows: we present the basic GaussDB architecture in section 2, then we provide details of the key improvements we made to GaussDB. We present our pipeline execution model in section 3, our design for a more scalable shuffle in section 4, our distributed Bloom filter streaming strategies in section 5, and our method to detect inclusion dependencies in section 6. We present microbenchmark evaluations throughout these sections to highlight the contribution of each, and our end-to-end results on TPC-H are presented in section 8. All microbenchmark results use a scaled down version compared to our full evaluation, but are run using a similar setup.

References (22)