IMPLEMENTING FORMULAS FOR CUSTOM FIELDS IN AN ON-DEMAND DATABASE
First Claim
1. A method of updating a result of a formula stored in a database system, the method comprising:
- receiving a request to compute an updated result of a first formula, wherein the first formula operates on input data stored in one or more tables of the database system to obtain the updated result;
submitting a query to at least one database of the database system, wherein the query includes a set of criteria;
analyzing results of the query to determine whether the set of criteria are satisfied;
updating the first formula synchronously to obtain the updated result when the criteria are satisfied; and
updating the first formula asynchronously to obtain the updated result when the criteria are not satisfied.
0 Assignments
0 Petitions
Accused Products
Abstract
The efficiency and versatility for the implementation of formulas in an on-demand database is improved. Formulas are categorized. Based at least partly on the categorization, formulas are evaluated synchronously or asynchronously. An asynchronous evaluation may be performed if a certain set of criteria is not satisfied. Asynchronous evaluations may be performed using a queue. During an asynchronous update of an object, a counter field and/or an estimate field may be used respectively for indicating the consistency of values of the object and a time when the values were consistent. The versatility of formulas is enhanced by using a formula to create a default value for a custom field when it is created and to determine whether an action is to be performed, and is enhanced by having an action define when a formula is to be updated.
-
Citations
27 Claims
-
1. A method of updating a result of a formula stored in a database system, the method comprising:
-
receiving a request to compute an updated result of a first formula, wherein the first formula operates on input data stored in one or more tables of the database system to obtain the updated result; submitting a query to at least one database of the database system, wherein the query includes a set of criteria; analyzing results of the query to determine whether the set of criteria are satisfied; updating the first formula synchronously to obtain the updated result when the criteria are satisfied; and updating the first formula asynchronously to obtain the updated result when the criteria are not satisfied. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25)
-
-
26. A computer readable medium storing program code for controlling a processor to perform an operation for updating a result of a formula stored in a database system, the program code comprising code for:
-
receiving a request to compute an updated result of a first formula, wherein the first formula operates on input data stored in one or more tables of the database system to obtain the updated result; submitting a query to at least one database of the database system, wherein the query includes a set of criteria; analyzing results of the query to determine whether the set of criteria are satisfied; updating the first formula synchronously to obtain the updated result when the criteria are satisfied; and updating the first formula asynchronously to obtain the updated result when the criteria are not satisfied.
-
-
27. A system comprising:
-
a database; at least one processor coupled with the database, the processor configured to; receive a request to compute an updated result of a first formula, wherein the first formula operates on input data stored in one or more tables of the database system to obtain the updated result; submit a query to at least one database of the database system, wherein the query includes a set of criteria; analyze results of the query to determine whether the set of criteria are satisfied; update the first formula synchronously to obtain the updated result when the criteria are satisfied; and update the first formula asynchronously to obtain the updated result when the criteria are not satisfied.
-
Specification