该文在深入研究内存数据库系统存储管理技术的基础上,给出了自主开发的内存数据库系统SwiftMMDB存储管理模块的设计与实现方案,针对不同种类的应用背景,设计了两种数据库系统的运行结构以加快本地数据访问;分析并比较了三种内存空间分配方式,使SwiftMMDB能够根据不同应用场合的需求特点选用不同的底层内存分配方式;将哈希索引与T树索引相结合对查询进行优化,提高内存数据库的查询效率。
Main Memory Database(MMDB) greatly improves the database overall performance by taking advantage of memory's characteristics to avoid the traditional hard disk database I/O operations.In this paper,the design and implementation of storage management in MMDB system SwiftMMDB are introduced in detail.Two kinds of process structures are proposed to fit the demands of different scenarios respectively.Three memory allocation methods are analyzed and compared,which makes SwiftMMDB select different memory allocation method adaptively according to variable application backgrounds.The hash index is combined with T tree index to enhance query performance of SwiftMMDB.