Skip to content
Open access

Expeditus: Database Optimization Based on Workload Analysis with Structural Query Clustering

Sep 2026 · Brazilian Symposium on Databases · 0 citations · 15 references

Abstract

Workload analysis is fundamental to database performance management, as heterogeneous and complex workloads require automated identification of similar query patterns. In this context, this work investigates whether SQL query clustering based on structural embeddings extracted from the workload can support more efficient database tuning strategies. As an experimental foundation, we employ the TPC-H benchmark, whose queries were transformed into vector representations using the Qwen3-Embedding-0.6B model. After dimensionality reduction with UMAP, we applied the HDBSCAN algorithm to identify structurally coherent query clusters. We then evaluated whether indexes derived from a representative query within each cluster could improve the performance of the remaining queries in the same group. The experiments resulted in seven structurally cohesive clusters, demonstrating the model’s ability to capture structural similarities across distinct queries. The results indicate that optimizing a single query can benefit other queries within the same cluster, supporting the use of structure-driven tuning strategies for complex database workloads.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.