?
Solved

Costly buffer sort causes a slow query

Posted on 2008-09-30
2
Medium Priority
?
2,369 Views
Last Modified: 2013-12-18
I have a query that runs extremely slow. When I ran the explain plan I noticed that there is a buffer sort whose cost accounts for almost all of the cost of the entire query.

The buffer sort is done on a full access of indexed and analyzed table with only 32 rows. Why is this happening and how could I reduce the cost of that step?

0
Comment
Question by:ivanovn
2 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22609098
can you show the query, and the table structure?
0
 
LVL 10

Accepted Solution

by:
ivanovn earned 0 total points
ID: 22609547
Nevermind... converting a few WHERE clauses to LEFT JOIN bypassed that the costly step. Thanks for taking the time to assist.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
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
Suggested Courses

850 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