Solved

Costly buffer sort causes a slow query

Posted on 2008-09-30
2
2,188 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 142

Expert Comment

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

Accepted Solution

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 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

8 Experts available now in Live!

Get 1:1 Help Now