Optimal persistence of a business process
First Claim
1. A method for automatically selecting optimal fetch settings for each of a plurality of business processes as a function of database query load and relational context, the method comprising:
- identifying each of a plurality of data retrieval points enabled during a creation of a business process execution language process;
determining for each of the plurality of data retrieval points via a processor whether data loaded is dependent upon a query result from another query process, wherein determining that the data loaded is dependent upon a query result from another query process is in response to determining that a task corresponding to the respective data retrieval point always requires at least one additional query to acquire all information needed from a database;
the processor automatically selecting an eager fetch setting for each of the plurality of data retrieval points that are determined to be dependent upon a query result from another query process; and
the processor automatically selecting a lazy fetch setting for each of the plurality of data retrieval points that are determined to be not dependent upon a query result from another query process.
1 Assignment
0 Petitions
Accused Products
Abstract
Aspects of the invention provide for automatically selecting optimal fetch settings for business processes as a function of database query load and relational context by determining whether data loaded for data retrieval points is dependent upon a query result from another query process and automatically selecting an eager fetch setting if dependent upon a query result from another query process, or a lazy fetch setting if not. Usage of the data retrieval points is monitored with respect to defined units of work to define retrieval patterns and automatically update the fetch settings, including by revising selected eager fetch settings to lazy fetch settings if a data size of a defined retrieval pattern is larger than a permissible memory resource threshold.
-
Citations
19 Claims
-
1. A method for automatically selecting optimal fetch settings for each of a plurality of business processes as a function of database query load and relational context, the method comprising:
-
identifying each of a plurality of data retrieval points enabled during a creation of a business process execution language process; determining for each of the plurality of data retrieval points via a processor whether data loaded is dependent upon a query result from another query process, wherein determining that the data loaded is dependent upon a query result from another query process is in response to determining that a task corresponding to the respective data retrieval point always requires at least one additional query to acquire all information needed from a database; the processor automatically selecting an eager fetch setting for each of the plurality of data retrieval points that are determined to be dependent upon a query result from another query process; and the processor automatically selecting a lazy fetch setting for each of the plurality of data retrieval points that are determined to be not dependent upon a query result from another query process. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer system for automatically selecting optimal fetch settings for each of a plurality of business processes as a function of database query load and relational context, the computer system comprising:
-
a processor; a computer readable memory in circuit communication with the processor; and a computer readable storage system in circuit communication with the processor and with the computer readable memory; wherein the processor, when executing program instructions stored on the computer-readable storage system via the computer readable memory; identifies each of a plurality of data retrieval points enabled during a creation of a business process execution language process; determines for each of the plurality of data retrieval points whether data loaded is dependent upon a query result from another query process, wherein determining that the data loaded is dependent upon a query result from another query process is in response to determining that a task corresponding to the respective data retrieval point always requires at least one additional query to acquire all information needed from a database; automatically selects an eager fetch setting for each of the plurality of data retrieval points that are determined to be dependent upon a query result from another query process; and automatically selects a lazy fetch setting for each of the plurality of data retrieval points that are determined to be not dependent upon a query result from another query process. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A computer program product for automatically selecting optimal fetch settings for each of a plurality of business processes as a function of database query load and relational context, the computer program product comprising:
-
a computer readable storage device having computer readable program code embodied therewith, the computer readable program code comprising instructions that, when executed by a processor, cause the processor to; identify each of a plurality of data retrieval points enabled during a creation of a business process execution language process; determine for each of the plurality of data retrieval points whether data loaded is dependent upon a query result from another query process, wherein determining that the data loaded is dependent upon a query result from another query process is in response to determining that a task corresponding to the respective data retrieval point always requires at least one additional query to acquire all information needed from a database; automatically select an eager fetch setting for each of the plurality of data retrieval points that are determined to be dependent upon a query result from another query process; and automatically select a lazy fetch setting for each of the plurality of data retrieval points that are determined to be not dependent upon a query result from another query process. - View Dependent Claims (16, 17, 18, 19)
-
Specification