OpenEdge provides two sets of query statistics for pre-pass queries: first, when the AVM builds the result-list; second, when the query is complete (that is, at the end of the block or when the AVM closes the query).
OpenEdge logs the following query statistics when it completely builds the result-list for a pre-pass query:
Procedure name and line number where the AVM built the result-list.
Query ID, the query's unique identifier.
For static and dynamic queries, a string representation of the query handle, and the name of the query object (if available).
Whether the client rather than the server performs selection of records for each table in the query.
Number of times the AVM has opened this query. A program can reuse static and dynamic query objects. Opening a query multiple times, as within a loop, might indicate poor programming practice.