Back to search

University of Cambridge

Autonomous Indexing for OLAP Workloads: A Reinforcement Learning Approach

Abstract

dc:description.abstract

Index selection is a primary determinant of analytical (OLAP) query performance, yet it remains challenging due to a combinatorial design space, non-linear interactions among indexes, and unpredictable workload shifts. Classical advisors mitigate complexity with cost-based what-if analysis and aggressive pruning, but they are fragile on complex plans, slow to re-run after shifts, and tightly coupled to engine-specific capabilities. This thesis introduces SMARTIDX, an autonomous, workload-aware indexing system that casts online index tuning as a sequential decision problem and solves it with a tailored reinforcement learning (RL) policy. SMARTIDX observes compact workload summaries—via a lightweight, phase-aware characterization that fuses operator and query features, and plan semantics—and makes addition-only, budget-aware decisions each tuning window (add a small set of candidates or no-op). This design avoids oscillations, respects storage constraints, and adapts rapidly to drift without re-running heavyweight advisors. To make learning practical, we develop GymDB, a high-throughput, vectorized RL environment that bridges PostgreSQL with learned agents for efficient offline training and faithful online evaluation. The full pipeline integrates candidate generation, safe action masking, and engine optimizer support to minimize regressions and decision latency. Across standard benchmarks (TPC–H, TPC–DS, JOB) and both drifting and scaling OLAP traces, SmartIDX consistently lowers cumulative query cost relative to no-index baselines and surpasses state-of-the-art cost-based advisors, while keeping index-build and decision overheads below the time saved and within storage budgets. Ablation studies isolate the contributions of the addition-only policy, workload summarizer, and action masking; sensitivity analyses confirm robust performance under workload shifts. Together, SMARTIDX advances autonomous physical-design optimization by coupling engine-aware systems design with RL that learns from interaction, yielding practical, continuously adaptive indexing for modern analytical databases.

Degree

thesis:*
Name dc:type.qualificationname
Doctor of Philosophy (PhD)
Level dc:type.qualificationlevel
Doctoral
Grantor dc:publisher.institution
University of Cambridge
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wang, Taiyi
Advisor dc:contributor.advisor
  • Yoneki, Eiko

Subjects

dc:subject × 4

Rights

dc:rights
Language dc:language
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Cambridge University
Base URL
api.repository.cam.ac.uk/server/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Wang, Taiyi. Autonomous Indexing for OLAP Workloads: A Reinforcement Learning Approach. Doctoral thesis, University of Cambridge, 2025. https://doi.org/10.17863/CAM.130073