Exforsys

Online Training

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 ...


Go Back   Exforsys > Database > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2007, 05:04 AM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 11:01 AM
Junior Member
 
Join Date: Oct 2006
Posts: 2
Uldis is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Kindly Provide the Reason caradoc Coldfusion 0 01-14-2007 11:06 AM
Reason for Output cyrus C and C++ 1 01-14-2007 11:02 AM
Kindly provide the Reason Angela Oracle Database 2 12-28-2006 03:48 PM
Reason for the Choice of Operating System Angela Linux 0 12-12-2006 04:19 AM
Need Technical reason priyaraji Coldfusion 0 12-07-2006 01:46 AM


All times are GMT -4. The time now is 12:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.