Presented by:

028d520c8361c8e72cf1028f02558877

Prof Jayant Haritsa

from Indian Institute of Science, Bangalore

Jayant Haritsa is on the computer science faculty at the Indian Institute of Science, Bangalore, since 1993. He received a BTech degree from the Indian Institute of Technology (Madras), and the MS and PhD degrees from the University of Wisconsin (Madison). He is a Fellow of ACM and IEEE for his contributions to database engine design and analysis.

No video of the event yet, sorry!

When complex SQL queries suffer slow execution despite query optimization, DBAs typically invoke automated query rewriting tools to recommend "lean" equivalents that are conducive to faster execution. The rewritings are typically achieved through transformation rules; however, these rules are limited in scope and difficult to update in production systems. We investigate here how the remarkable cognitive capabilities of LLMs can be leveraged for performant query rewriting while incorporating safeguards and optimizations to ensure correctness and efficiency. Our study shows that these goals can be progressively achieved by incorporating (a) an ensemble suite of basic prompts, (b) database-sensitive prompts via redundancy removal and selectivity-based rewriting rules, and (c) LLM token probability-guided rewrite paths. Further, a suite of logic-based and statistical tools can be used to check for semantic violations in the rewrites prior to DBA consideration.

We have implemented the above LLM-infused techniques in the LITHE system, and evaluated complex analytic queries from standard benchmarks on contemporary database platforms. The results show significant performance improvements for slow queries, over both SOTA rewriters and the native optimizer. Overall, LITHE is a promising step toward viable LLM-based advisory tools for enhancing enterprise query performance.

Date:
Duration:
45 min
Room:
Conference:
PGConf India, 2026
Language:
Track:
Keynote
Difficulty:
Easy