将时间回溯法引入数据库
Bringing Back-in-Time Debugging Down to the Database
摘要:
使用回溯调试器,开发人员可以通过跟踪感染链追溯其根本原因来探索可观察到的故障之前发生的情况。虽然有几个这样的面向对象的程序设计语言的调试器,我们不知道任何在数据库级的回溯能力。因此,如果故障是由SQL脚本或存储过程引起的,开发人员很难理解它们的意外行为。在本文中,我们提出了一种方法,用于将时间回溯调试引入SAP HANA内存数据库。我们的TARDISP调试器允许开发人员向后执行查询,并在以前的任意时间点检查数据库。在SQL扩展的帮助下,我们可以在调试会话中表达覆盖一段执行时间的查询,并以较低的性能和内存开销处理大量数据。整个方法已经在SAP的一个开发项目中进行了评估,并在收集的开发人员反馈方面显示出有希望的结果。
英文摘要:
With back-in-time debuggers, developers can explore what happened before observable failures by following infection chains back to their root causes. While there are several such debuggers for object-oriented programming languages, we do not know of any back-in-time capabilities at the database-level. Thus, if failures are caused by SQL scripts or stored procedures, developers have difficulties in understanding their unexpected behavior. In this paper, we present an approach for bringing back-in-time debugging down to the SAP HANA in-memory database. Our TARDISP debugger allows developers to step queries backwards and inspecting the database at previous and arbitrary points in time. With the help of a SQL extension, we can express queries covering a period of execution time within a debugging session and handle large amounts of data with low overhead on performance and memory. The entire approach has been evaluated within a development project at SAP and shows promising results with respect to the gathered developer feedback.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。