- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Forcedotcom数据定义和存储
FData Definition and StorageF数据定义和存储陈宪刚Chief Architect Mail:chenwpp@原文:F_Multitenancy_WP_101508F没有尝试去管理应用和租户的大规模、经常变化的数据结构,而是采用了一套元数据、数据和透视表的方式管理“虚拟的”数据结构。如下图所示:Rather than attempting to manage a vast,everchanging set of actual database structures on behalf of each applicationand tenant, the F storage model manages “virtual”database structures using a set of metadata,data, and pivot tables, as illustrated in Figure 4.在企业自定义应用对象(也就是自定义表)时,UDD跟踪对象的元数据、字段、关系以及其他属性。同时,用大数据表来存储所有虚拟表的结构化和非结构化的数据,用一套相互关联的、特定用途的透视表来维护去序列化的数据,从而使合并后的数据集更加实用。When organizations create custom application objects(i.e., custom tables), the UDD keeps track of metadata concerning the objects,their fields, relationships, and other object definition characteristics.Meanwhile, a few large database tables store the structured and unstructured datafor all virtual tables, and a set of related,specialized pivot tables maintain denormalized data that makes the combined data set extremely functional.图5是一张简化的ER图,描述了支撑F平台的三个核心实体的元数据和数据结构:即对象(Objects)、字段(Fields)和数据表(Data tables)。说明:为了简单起见,本文没有使用F系统中实际的表名和列名。Figure 5 is a simplified entity-relationship (ER) diagram of three core F metadata and data structures that enable this approach:the Objects, Fields, and Data tables.Note: For brevity andclarity, the actual names of F system tables and columns are not necessarilycited in this paper.The Objects Metadata Table对象元数据表对象元数据表存的是企业应用自定义对象(表或者实体)的信息,包括对象的唯一标识符,对象所属的企业编号,还有对象名称。The Objectsmetadata table stores information about the custom objects (a.k.a. tables or entities)that an organization defines for an application, including a unique identifierfor an object (ObjID), the organization (OrgID) that owns the object, and thename given to the object (ObjName).The Fields Metadata Table字段元数据表字段元数据表存储了对象的字段(或者叫列或属性)信息,包括字段的唯一标识,对象所属的企业编号、字段名称、字段数据类型、一个布尔型值来标识字段是索引字段,以及字段的相对位置。The Fields metadata table stores information about thecustom fields (a.k.a. columns or attributes) that an organization defines for customobject
文档评论(0)