arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.00774cs.DB
收藏

优化器成本可以用来预测查询执行时间吗?

Can the Optimizer Cost be Used to Predict Query Execution Times?

Anthony Kleerekoper, Javier Navaridas, Mikel Lujan

摘要:

预测查询的执行时间是调度、服务水平协议和错误检测等应用中的一个重要问题。在查询规划期间,成本与所选择的执行计划相关联,并用于对竞争计划进行排名。使用该成本来预测执行时间将是方便的,但是在文献中已经声称这是不可能的。在本文中,我们彻底调查这一主张,考虑线性和非线性模型。我们发现,使用更复杂的模型,只有优化成本的准确性是在文献中报道的准确性。在文献中最准确的方法是最近邻回归,不产生一个模型。公布的结果使用了一个大的特征集来识别最近的邻居。我们表明,它是可以实现相同水平的精度只使用成本来确定最近的邻居。使用较小的特征集带来了在用于训练数据的存储空间和产生预测的时间方面减少开销的优点。

英文摘要:

Predicting the execution time of queries is an important problem with applications in scheduling, service level agreements and error detection. During query planning, a cost is associated with the chosen execution plan and used to rank competing plans. It would be convenient to use that cost to predict execution time, but it has been claimed in the literature that this is not possible. In this paper, we thoroughly investigate this claim considering both linear and non-linear models. We find that the accuracy using more complex models with only the optimizer cost is comparable to the reported accuracy in the literature. The most accurate method in the literature is nearest-neighbour regression which does not produce a model. The published results used a large feature set to identify nearest neighbours. We show that it is possible to achieve the same level of accuracy using only the cost to identify nearest neighbours. Using a smaller feature set brings the advantages of reduced overhead in terms of both storage space for the training data and the time to produce a prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑