一种改进的增量求和方法,用于在区间和时间关系数据的过滤子集上更快地选择当前值
An improved method of delta summation for faster current value selection across filtered subsets of interval and temporal relational data
摘要:
关系数据库中的聚合是通过对区间数据进行散列和排序来实现的,这在计算上是昂贵的,并且随着数据量的增长而扩展性很差。在本文中,我们展示了如何定量的间隔和时间序列数据的关系属性可以表示使用增量汇总值,而不是绝对值。不需要排序来确定与某个最大时间戳相对应的行,从而将时间复杂度从至少O(n log(n))降低到O(n),并改善查询执行时间。我们说明了这种新的方法在关系代数,目前的实现算法,并测试实施在两个领先的RDBMS产品对正常的等价物的使用。我们发现这种增量求和技术对于具有附加值的数字数据的用例最有效,这些数据需要经常获得最新值,并且行基数在10^5的数量级。我们的实验发现,所提出的新增量求和技术可以比等效的标准选择方法快22.4%,在某些情况下将整体查询成本降低24.0%,将I/O负载降低60.6%,但是增加了写操作的查询成本,增加了CPU时间和内存分配,性能不确定,基数很低或很高,不同RDBMS平台上的结果不一致。
英文摘要:
Aggregation in relational databases is accomplished through hashing and sorting interval data, which is computationally expensive and scales poorly as the data volumes grow. In this paper, we show how quantitative interval and time-series data in relational attributes can be represented using delta summary values rather than absolute values. The need for sorting to determine the row corresponding to some maximum timestamp is negated, reducing the time complexity from at least O(n log(n)) towards O(n) and improving query execution times. We illustrate this new method in the relational algebra, present the implementation algorithmically, and test an implementation in two leading RDBMS products against the use of normal equivalents. We found this delta summation technique to be most effective for use cases with additive, numerical data upon which it is necessary to frequently obtain the latest values, and where the row cardinalities are in the order of 10^5. Our experiments found the proposed new delta summation technique could execute faster than the equivalent standard selection method by up to 22.4%, reducing the overall query cost in some circumstances by up to 24.0%, reducing I/O load by up to 60.6%, but with increased query costs for write operations, an increase in CPU time and memory allocation, uncertain performance with very low or very high cardinalities and inconsistent results across different RDBMS platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。