A method and system of collecting execution statistics of query statements
is disclosed. An execution plan is generated for a query statement in one
embodiment of the invention. The execution plan includes one or more
operations. One of the one or more operations is selected. The selected
execution plan is then executed and a plurality of execution statistics
of the selected operation is collected.