Which column in tkprof specifies consistent gets?

Which column in the the tkprof ouput of pass, execute and fetch specifies the consistent gets? How do I decrease that value?

    Requires Free Membership to View

A legend appears near the top of each tkprof output file:
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
As you can see, consistent reads are reported as "query."

As for how to decrease that value, I'm tempted to say "by reducing the number of database block visits your query requires." There is no one way to reduce logical I/O. Experiment with different approaches, represented by different SQL, to a problem; the best-performing solution is usually the one that requires the fewest database block visits.

This was first published in November 2005

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.