用户名 密码 记住我 还未注册?

[转] EAV and row modeling in Xoops Engine data schema design [技术论坛 - Xoops Engine 专版]

XOOPS China 讨论区 > XOOPS Core (核心) > Xoops Engine 专版 > [转] EAV and row modeling in Xoops Engine data schema design

正在浏览:   1 名游客



 到底部   前一个主题   下一个主题  [无发表权] 请登录或者注册



[转] EAV and row modeling in Xoops Engine data schema design
Support Team
注册日期:
2006/11/30 20:48
来自 beijing
所属群组:
网站管理员
注册会员
Dev+Hack
资料整理组
帖子: 1211 | 精华: 16
等级: 30; EXP: 30
HP: 146 / 732
MP: 403 / 10791
离线

 EAV, or entry-attribute-value model, is known as open schema with better extensibility than row model by which data type of value columns are required to be pre-defined.  On the other hand, row modeling provides easy manipulation with, likely, better performance.

In legacy Xoops, configuration data  model (“config”) is defined with EAV model while user data model (“users”) with row model.

In Xoops Engine, configuration table is modeled with EAV, while user model design is kind of complex in Xoops Engine. Considering performance, data integrity, easy manipulation, user model is defined as three part:

  • `user_account`[row model]: id, identity, credential, salt, email, active
  • `user_meta`[EAV]: id, key, category, title, …
  • `user_profile`: row model with columns generated by `user_meta`
  • `user_preference`: assumed to be EAV, not implemented yet considering design complexity

More details coming soon …

原文:http://dev.xoopsengine.org/?p=12


2/13 20:13
工具箱 短消息 Email PDF 书签 打印 举报 回顶部



  [无发表权] 请登录或者注册


可以查看帖子。
不可发帖。
不可回复。
不可编辑自己的帖子。
不可删除自己的帖子。
不可发起投票调查。
不可在投票调查中投票。
不可上传附件。
不可不经审核直接发帖。
不可使用主题类别。
不可使用HTML语法。
不可使用签名档。

[高级搜索]