Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Want to Know the Reason

This is a discussion on Want to Know the Reason within the Oracle Database forums, part of the Database category; I recently heard from my friend that Distinct usage would reduce the performance of a query. But he could not ...

  1. #1
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144

    Thumbs up Want to Know the Reason

    I recently heard from my friend that Distinct usage would reduce the performance of a query. But he could not state the reason for the same when I asked for it. Can someone let us know why does Distinct usage would reduce the performance of a query.


  2. #2
    Uldis is offline Junior Member Array
    Join Date
    Oct 2006
    Answers
    3
    You have to sort the result set first to find the distinct values. However, you may lose nothing if there's a sort already for other reasons. You always may look into "explain plan" to see the difference, of course.


Latest Article

Network Security Risk Assessment and Measurement

Read More...