摘要
构建Saa S多租户数据库时,针对为实现租户自定义数据高效存储而面临的多租户共享数据模型设计问题,提出一种适用于多租户数据存储的多级块折叠表数据模型。该模型使用多组结构各异的块表来存储租户的自定义数据。设计模型的基础数据表,并给出多级块数据表的一般性设置方法。实验结果表明,在一个Saa S应用实例中,该数据模型比传统块折叠表数据模型减少了28%的查询延时和22%的存储空间,比弹性扩展表数据模型减少了54.9%的查询延时和83.9%的存储空间,多级块折叠表数据模型具有更高的查询性能以及空间效率。
Aiming at the problem of designing mult i-tenant shared data model for achieving efficient storage of tenant^ custom data when building an SaaS multi-tenant database. A multi-class chunk folding data model is proposed for multi-tenant data storage. Multiple groups of heterogeneous chunk tables are used to store tenant’s custom data. The base table’s structure of the data model is designed. A general method is proposed for setting the heterogeneous chunk tables. The experimental result shows that the multi-class chunk folding model reduces the query latency by 28% and reduces the storage space by 22% compared with the classical chunk folding model. It also shows that multi-class chunk folding model reduces query latency by 54. 9% and reduces storage space by 83. 9% compared with the elastic extension table model, which means the multi-class chunk folding data model has higher query performance and space efficiency.
出处
《计算机应用与软件》
2017年第8期66-71,共6页
Computer Applications and Software
基金
广东省重大科技专项(2014B010115001
2014B010112002
2016B030305003)
关键词
多租户
数据模型
块折叠表
Mult i-tenant Data model Chunk folding table