Solved

Cost is more when selecting all records from table..

Posted on 2014-03-02
1
358 Views
Last Modified: 2014-03-04
Hi,

 I am just selecting all records from table. but for that itself i am getting cost > 8000.

what could be the reason.
Is this normal?
or I can do something for this?
0
Comment
Question by:sakthikumar
1 Comment
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39899176
Cost is a meaningless number when trying to gauge actual performance.  Many times a higher cost can out perform something with a lower cost.

Selecting ALL records from a table is guaranteed to be a full table scan (FTS)  unless it is index-organized.

The only way to speed up a FTS is faster disks, partitioning, add a where clause to allow index usage.

Depending on the app, maybe artificial paging.  In other words, the app only displays 20 rows at a time then only bring back 20 rows from the database.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle query help 29 77
statspack purge automate 7 53
PL/SQL Display based on value 4 19
MULTIPLE DATE QUERY 15 51
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now