AIFeed

面向 Microsoft SQL Server 的基于已验证 LLM 的查询重写

Translation(model translation, not the source's own text)

Verified LLM-Based Query Rewriting for Microsoft SQL Server

查询重写是数据库开发人员和管理员用来调优性能不佳的 SQL 查询的技术之一。我们为 Microsoft SQL Server 开发了一款基于 LLM 的查询调优工具,它以查询、调优约束(例如最低要求的改进幅度和时间预算)为输入,自动推荐语义等价、能够缩短查询执行时间的查询重写方案。该软件工具作为 SQL Server Management Studio(SSMS)的扩展集成。我们的演示突出了两项重要能力。第一,尽管 LLM 有能力为给定查询生成有希望的候选重写方案,但它们无法保证查询重写的语义等价性。我们使用了一种自己开发的、用于验证两个查询语义等价性的技术,该技术利用了 Microsoft SQL Server 查询优化器的内置能力。第二,我们通过采用 anytime 调优算法,并采用有助于对每个候选重写方案在验证和执行等昂贵步骤上进行短路处理的优化,来审慎地利用给定的时间预算。据我们所知,这是同类工具中首个使 DBA 和应用程序开发者能够安全地将基于 LLM 的查询重写投入实际运营的工具。


        @article{lee2026,
  title = {{Verified LLM-Based Query Rewriting for Microsoft SQL Server}},
  author = {Kukjin Lee and Anshuman Dutt and Vivek Narasayya and Surajit Chaudhuri},
  journal = {Proceedings of the VLDB Endowment},
  volume = {19},
  issue = {12},
  year = 2026,
  month = 8,
  day = 1,
  doi = {10.14778/3827998.3828074},
}
      

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗