Abstract:
For the conflicting problem between memory assumption and access speed caused by existing caching methods of report, a caching method is provided for structured data. The main characteristic of such method is caching the report data which has the structure of row and column to file as data blocks. The data to be cached as file is partitioned into indexing area and data area, then written to the file via a data blocking algorithm. Using such approach, the need data can be retrieved from the located block by index, and the data rapidly. Thereby, an optimized result can be obtained to the memory assumption and access speed problem.
Key words:
caching,
report,
index,
data block,
structured data
摘要: 针对现有报表缓存方法在内存消耗和访问速度上相冲突的问题,提出一种结构化数据缓存方法,把具有行列结构的报表数据分块存储到文件中。以文件形式存储的数据被划分为索引区和数据区,通过数据分块算法和写操作将报表数据缓存入文件。在读取报表数据时根据索引区可以直接定位到所在的块,在块中快速查找所需要的数据,从而在内存消耗和访问速度上达到优化。
关键词:
缓存,
报表,
索引,
数据分块,
结构化数据
CLC Number:
ZHOU Jin-Gang, GENG Tie-Jun, JI Yong, DIAO Da-Zhe. Caching Approach for Structured Data[J]. Computer Engineering, 2010, 36(20): 61-63.
周进刚, 邢铁军, 纪勇, 赵大哲. 一种结构化数据缓存方法[J]. 计算机工程, 2010, 36(20): 61-63.