摘要
为了解决建筑能耗监管网关中数据实时存储和并发访问的问题,文中介绍了基于Level DB的建筑能耗监管网关实时数据库设计。首先分析了Level DB具有数据实时性和事务实时性的特点,具备设计实时数据库的开发条件,按照三个层次介绍了网关的系统架构;然后进行实时数据库具体设计,实现对能耗数据的实时存储,并对外提供数据库API访问接口,满足用户的并发访问需求;最后设计了数据库功能模块,详细阐述了各个模块的功能。测试结果表明,该实时数据库具有优秀的读写性能,可以满足建筑能耗数据的实时存储与并发访问。
To solve the problem of data real-time storage and concurrent access of building energy consumption regulatory gatew ay,introduce the design of real-time database for building energy consumption regulatory gatew ay based on Level DB. Firstly,analyze that Level DB has the characteristics of the data real-time and the transaction real-time which has the development condition of designing real-time database,and introduce the system architecture according to three levels. Then design the real-time database specifically to store the data of energy consumption in real time and provide the database API interfaces meanw hile which can meet the demands of concurrent access of users. Finally,design the function modules of real-time database and describe the function of every module in detail.The results of test show that this real-time database has excellent reading and writing performance and can meet the requirements of real-time storage and concurrent access.
出处
《计算机技术与发展》
2015年第3期180-183,187,共5页
Computer Technology and Development
基金
2012年度教育部-中国移动科研基金项目(MCM20122013)