摘要:
A method, apparatus, and computer program product in a data processing system for avoiding excessive database round trips. A list of a database object fields affected by queries is compiled by analyzing instructions in a database query language. A list of database object fields affected by queries is also compiled by analyzing database object relationships. Using the combined list of affected database object fields, when a find operation is invoked, a determination is made as to whether the affected database object fields have been modified. Next, if the affected database object fields have been modified, database updates are generated for the affected database objects containing the affected database object fields. After that, the database updates are executed after all affected database object fields have been processed. Finally, the queries are submitted.