Solved

Cost is more when selecting all records from table..

Posted on 2014-03-02
1
366 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

860 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