对force.com数据库的一些认识

12-08-20 acerow
不知大家对force.com平台数据库有没有研究,做过一阵force.com的开发,原来以为salesforce用的是oracle数据库,可是发现force.com官网上发布的文档并非如此:

http://wiki.developerforce.com/page/An_Introduction_to_Force_Database

In a relational database, tables store the data. Each table comprises a number of columns of a particular data type. Information is stored in rows of the table. Finally, tables can be related to other tables, using primary and foreign keys to map the rows in one table to rows in another.

The database in Force.com, on the other hand, uses objects to store data. Objects contain the functionality you expect in a table and more, but you should be aware that the difference also points to a difference in functionality. The object comprises a number of fields. Objects can be related to other objects, with relationship fields mapping records in one object to records in another. All attributes of an object are described with metadata, outlined later. Information is stored in records of the object.

When an object is materialized in the Apex language, it is called an sObject, to differentiate them from instances of Apex classes. We’ll use this terminology throughout the article.

我最感兴趣的是force.com数据库中的查找,主详,公式,累计汇总等字段类型,而且这些类型能够很好的保持数据的一致性和实时性,不知道force.com是如何实现的?

    

banq
2012-08-22 08:24
2012-08-20 16:48 "@acerow"的内容
我最感兴趣的是force.com数据库中的查找,主详,公式,累计汇总等字段类型,而且这些类型能够很好的保持数据的一致性和实时性 ...

这个对象数据库估计和NoSQL类似或Neo4J,计算和存储分离,查找,主详,公式,累计汇总等计算工作可以委托给MapReduce这些计算引擎去专门做,而不是像传统数据库与存储整合在一起了。

猜你喜欢