Query2Vec: An Evaluation of NLP Techniques for Generalized Workload Analytics
Not on the map. Why?
Abstract (arXiv)
We consider methods for learning vector representations of SQL queries to support generalized workload analytics tasks, including workload summarization for index selection and predicting queries that will trigger memory errors. We consider vector representations of both raw SQL text and optimized query plans, and evaluate these methods on synthetic and real SQL workloads. We find that general algorithms based on vector representations can outperform existing approaches that rely on specialized features. For index recommendation, we cluster the vector representations to compress large workloads with no loss in performance from the recommended index. For error prediction, we train a classifier over learned vectors that can automatically relate subtle syntactic patterns with specific errors raised during query execution. Surprisingly, we also find that these methods enable transfer learning, where a model trained on one SQL corpus can be applied to an unrelated corpus and still enable good performance. We find that these general approaches, when trained on a large corpus of SQL queries, provides a robust foundation for a variety of workload analysis tasks and database features, without requiring application-specific feature engineering.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 Jan 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 1; 2024: 4; 2025: 1; 2026: 1.
8 papers.
- 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databasescited by 4
- 2024Sibyl: Forecasting Time-Evolving Query Workloadscited by 4
- 2021"What makes my queries slow?": Subgroup Discovery for SQL Workload Analysiscited by 3
- 2024AIOps Solutions for Incident Management: Technical Guidelines and A Comprehensive Literature Reviewcited by 3
- 2024Multi-modal Learning for WebAssembly Reverse Engineeringcited by 0
- 2024On Enhancing Root Cause Analysis with SQL Summaries for Failures in Database Workload Replays at SAP HANAcited by 0
- 2025GrASP: A Generalizable Address-based Semantic Prefetcher for Scalable Transactional and Analytical Workloadscited by 0
- 2026WAter: A Workload-Adaptive Knob Tuning System based on Workload Compressioncited by 0
- 2026WAter: A Workload-Adaptive Knob Tuning System based on Workload Compression28 Mar 2026
- 2025GrASP: A Generalizable Address-based Semantic Prefetcher for Scalable Transactional and Analytical Workloads13 Oct 2025
- 2024On Enhancing Root Cause Analysis with SQL Summaries for Failures in Database Workload Replays at SAP HANA18 Dec 2024
- 2024Multi-modal Learning for WebAssembly Reverse Engineering4 Apr 2024
- 2024AIOps Solutions for Incident Management: Technical Guidelines and A Comprehensive Literature Review1 Apr 2024
- 2024Sibyl: Forecasting Time-Evolving Query Workloads8 Jan 2024
- 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databases5 Jul 2023
- 2021"What makes my queries slow?": Subgroup Discovery for SQL Workload Analysis9 Aug 2021