
Data is the foundation of all information systems, and Database Services are the foundation for applications created on the Force.com platform. Force.com Database Services allow you to create objects to store all of your crucial data, letting the enterprise power of the platform handle the sometimes difficult tasks of ensuring that your data is safe and continually available.
Database Services go far beyond simple storage of data. All the functionality of Database Services is available to all applications against the Force.com platform, whether they are built with the declarative application framework, extended with Apex Code and Visualforce Pages, or simply accessing data through the Force.com Web Services API.
Platform State Of The Union: Core presentation on the Force.com platform from Dreamforce '07.
Designing for Data - Best Practices for App Builders: Presentation on data design for the Force.com platform from Dreamforce 07.
Update Collision Detection - This Summer 07 feature automatically prevents a common scenario that can lead to a loss of data integrity.
New Features in the Winter '07 release: Overview of new features for Database Services in the Winter '07 release.
Database Services Preview: Overview of new features for Database Services in the Summer '07 release.
Customforce for Smarties: Although this paper uses some out-of-date terminology, it still provides a good introduction to the basic capabilities of Force.com Database Services and the Application Framework.
Reducing the amount of duplicate data: Good advice for optimal data integrity and performance.
Powering 100 Million Transactions Per Day - Behind the Scenes at Salesforce.com: How do we do it? An in-depth look at the infrastructure behind the world's most popular on-demand platform from Dreamforce '07.
Meet the Developers: Roundtable session with the creators of the Force.com platform from Dreamforce '07.
An object is the basic unit of data storage on the Force.com platform, similar to a table in a relationship. The Salesforce CRM application includes standard objects, predefined and implemented by salesforce.com. You also have the ability to create your own custom objects.
Introduction to custom objects and tabs: A good place to start to learn about custom objects and how they relate to custom tabs.
A Simple Example: This example uses custom objects and fields.
Record types : Brief article describes how record types can be used to customize the presentation of custom objects.
A field is an individual piece of data which is included as part of an object. Standard objects come with a collection of standard fields, and all custom objects have a set of standard fields associated with the object. You can also add custom fields to any standard or custom object.
Overview of custom fields: A good place to start to learn about custom fields.
Introduction to custom objects and tabs: A good place to start to learn about custom objects and how they relate to custom tabs.
A Simple Example: This example uses custom objects and fields.
Relationships are connections between objects that provide powerful functionality for protecting data integrity, providing user interfaces and allowing you to connect data from different standard and custom objects.
The Force.com platform supports two basic types of relationships, lookup relationships and master-detail relationships. Both types of relationships
The differences between the two types of relationships comes from how the parent and child record are treated. These differences include -
Once you define a relationship, the default user interface for the parent record will include a list of related child records, as well as the ability to add, edit and delete those child records.
Custom lookup fields: Overview of using lookup fields to establish relationships.
More complex examples: Uses relationships to implement project tracking.
Force.com Database Services include the ability to define formulas to calculate values from other pieces of data. Formulas can be used to create fields as part of an object or to define evaluation criteria for validation and workflow. Formulas can also be used to calculate data presented in reports.
Formulas can include values from other fields, comparison operators, and a set of functions provided by Force.com. You build formulas with the Formula Editor.
Formula fields: Introduction to formula fields.
Build Smarter Apps Harnessing the Power of Formulas & Workflow: Presentation from Dreamforce '07.
Image fields: Overview of the use of image fields, implemented with formula fields.
100 Ways to Use Formula Fields(PDF): Handy examples illustrating the utility of formula fields.
Formula and image fields: Video presentation on using formula fields and image fields.
Your data is only valuable if it is correct. Database Services allow you to impose broad limits on data values through the use of field object types and relationships, but you may want to create more complex validation routines to insure that all incoming data is correct.
You can define one or more validation rules on an object. The rules are expressions or formulas that evaluate to True or False when triggered by an attempt to save a new or modified record. If a validation rule evaluates as True, the data action which triggered the rule is stopped, and an error message, defined as part of the rule, is displayed to the user.
Data validation: Overview of data validation for Force.com platform.
Salesforce Object Query Language, or SOQL, is the language used to access data resident on the Force.com platform. SOQL can be used in Apex Code or through the Force.com Web Services API.
More information on SOQL and its use.
You can store all of your data on the Force.com platform and use the security and sharing capabilities of the platform to limit the actions that any individual user can take against a particular piece of data. You can design and implement robust security limitations for your Force.com data, and you can share data with others on a record by record basis.
Force.com provides a robust security and sharing model. You can limit access to the tabs for an object, to the object itself, or to specific fields that make up the object. Basic security is defined through organization-wide security defaults. You can also explicitly share data with users excluded from access by organization-wide rules.
Sharing cheatsheet: Brief document on sharing rules for the Force.com platform.