MySQL Forums
Forum List  »  Performance

Re: Distinct or Group by which is faster
Posted by: Chandan Kumar
Date: February 23, 2016 12:51PM

Hi,
Group By & Distinct both are expensive because for data sort they must have to perform on disk.
Using of Distinct & group by depends on your situation.
Distinct will bring unique records for those columns which are part of SELECT Query.
Group By we are using mostly in case of when we are doing aggregate or finding duplicates.

Regards,
Chandan
chandankumar9965@gmail.com

Options: ReplyQuote


Subject
Views
Written By
Posted
1774
February 22, 2016 08:50AM
Re: Distinct or Group by which is faster
856
February 23, 2016 12:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.