Q

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?

Which column in the the tkprof ouput of pass, execute and fetch specifies the consistent gets? How do I decrease that value?
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
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close