作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (20): 61-63. doi: 10.3969/j.issn.1000-3428.2010.20.021

• 软件技术与数据库 • 上一篇    下一篇

一种结构化数据缓存方法

周进刚1,邢铁军1,纪 勇1,赵大哲2   

  1. (1. 东软集团(大连)有限公司基础软件事业部,辽宁 大连 116085;2. 东北大学计算机软件国家工程研究中心,沈阳 110004)
  • 出版日期:2010-10-20 发布日期:2010-10-18
  • 作者简介:周进刚(1979-),男,工程师、硕士,主研方向:软件复用,软件构件技术;邢铁军,工程师;纪 勇,高级工程师、硕士;赵大哲,教授、博士、博士生导师
  • 基金资助:
    国家科技支撑计划基金资助项目(2008BAH32B03)

Caching Approach for Structured Data

ZHOU Jin-gang1, XING Tie-jun1, JI Yong1, ZHAO Da-zhe2   

  1. (1. Platform Software Division, Neusoft Corporation, Dalian 116085, China;2. National Engineering Research Center for Computer Software, Northeastern University, Shenyang 110004, China)
  • Online:2010-10-20 Published:2010-10-18

摘要: 针对现有报表缓存方法在内存消耗和访问速度上相冲突的问题,提出一种结构化数据缓存方法,把具有行列结构的报表数据分块存储到文件中。以文件形式存储的数据被划分为索引区和数据区,通过数据分块算法和写操作将报表数据缓存入文件。在读取报表数据时根据索引区可以直接定位到所在的块,在块中快速查找所需要的数据,从而在内存消耗和访问速度上达到优化。

关键词: 缓存, 报表, 索引, 数据分块, 结构化数据

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

中图分类号: