Schema-Aware Query Routing with Temperature Classification and AI Workload Detection

We present a schema-aware query routing system for database proxies that automatically classifies tables by data temperature (HOT/WARM/COLD based on inter-query arrival times) and workload type (OLTP/OLAP/Vector based on query structure), detects AI-specific workloads (RAG retrieval, embedding batch inserts, agent conversation patterns), and routes queries to optimal backend nodes using a learning classifier that adapts table classifications from observed access patterns without manual configuration. The system includes automatic schema discovery via information_schema queries, shard key detection from index analysis, and relationship-aware routing that co-locates related table queries. While database proxies with routing exist (Vitess vschema, ProxySQL regex rules, Citus distribution columns), none combine automatic temperature classification, AI workload detection, and an adaptive learning classifier in a single system.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-27
DOI
https://doi.org/10.5281/zenodo.19244540
Primary Topic
Data Quality and Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Schema-Aware Query Routing with Temperature Classification and AI Workload Detection

Daniel Moya Vaca
Zenodo (CERN European Organization for Nuclear Research)
Data Quality and Management
article

Schema-Aware Query Routing with Temperature Classification and AI Workload Detection

Daniel Moya Vaca
article en

Abstract

We present a schema-aware query routing system for database proxies that automatically classifies tables by data temperature (HOT/WARM/COLD based on inter-query arrival times) and workload type (OLTP/OLAP/Vector based on query structure), detects AI-specific workloads (RAG retrieval, embedding batch inserts, agent conversation patterns), and routes queries to optimal backend nodes using a learning classifier that adapts table classifications from observed access patterns without manual configuration. The system includes automatic schema discovery via information_schema queries, shard key detection from index analysis, and relationship-aware routing that co-locates related table queries. While database proxies with routing exist (Vitess vschema, ProxySQL regex rules, Citus distribution columns), none combine automatic temperature classification, AI workload detection, and an adaptive learning classifier in a single system.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 5%
Data Quality and Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.