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

多维还是关系?/如何组织联机分析处理数据库

Multidimensional or Relational? / How to Organize an On-line Analytical Processing Database

István Szépkúti

摘要:

在过去的几年中,OLAP应用的数量迅速增加。这些应用程序使用两种截然不同的数据库结构:多维(MD)和基于表的。可以看出,传统的关系数据库模型无法区分这两种结构。另一个模型是必要的,使差异可见。其中之一就是系统的速度。可以证明,多维数据库组织导致更短的响应时间。这是至关重要的,因为如果经理不得不等待下一个屏幕超过20秒,他或她可能会变得不耐烦。另一方面,我们必须为更大的数据库大小的速度付出代价。为什么MD数据库的规模增长如此之快?原因是数据的稀疏性:MD矩阵包含许多空单元。稀疏矩阵的有效处理在OLAP应用中是必不可少的。处理稀疏性的一种方法是使结构更接近基于表的结构。因此,数据库大小减小,而应用程序变慢。因此,需要其他方法。本文对这两种数据库结构进行了比较,并指出了它们的使用局限性。本文的新结果是:(1)构造性地证明了所有关系都可用MD阵列表示。(2)它还显示了MD数组表示何时比基于表的表示更快。(3)MD表示在某些条件下导致较小的DB大小。本文证明了一个这样的充分条件。(4)单计数头压缩方案的一个变化描述了一个算法,它从有序表创建压缩数组,而不具体化未压缩数组。(5)并通过实验对两种不同数据库组织的速度进行了测试。测试是在基准测试和真实数据上进行的。实验结果支持了理论结果。

英文摘要:

In the past few years, the number of OLAP applications increased quickly. These applications use two significantly different DB structures: multidimensional (MD) and table-based. One can show that the traditional model of relational databases cannot make difference between these two structures. Another model is necessary to make the differences visible. One of these is the speed of the system. It can be proven that the multidimensional DB organization results in shorter response times. And it is crucial, since a manager may become impatient, if he or she has to wait say more than 20 seconds for the next screen. On the other hand, we have to pay for the speed with a bigger DB size. Why does the size of MD databases grow so quickly? The reason is the sparsity of data: The MD matrix contains many empty cells. Efficient handling of sparse matrices is indispensable in an OLAP application. One way to handle sparsity is to take the structure closer to the table-based one. Thus the DB size decreases, while the application gets slower. Therefore, other methods are needed. This paper deals with the comparison of the two DB structures and the limits of their usage. The new results of the paper: (1) It gives a constructive proof that all relations can be represented in MD arrays. (2) It also shows when the MD array representation is quicker than the table-based one. (3) The MD representation results in smaller DB size under some conditions. One such sufficient condition is proved in the paper. (4) A variation of the single count header compression scheme is described with an algorithm, which creates the compressed array from the ordered table without materializing the uncompressed array. (5) The speed of the two different database organizations is tested with experiments, as well. The tests are done on benchmark as well as real life data. The experiments support the theoretical results.

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

↑