MySQL Forums
Forum List  »  Performance

Re: distinct clause issue for 600000 records
Posted by: Øystein Grøvlen
Date: November 12, 2015 07:43AM

Hi,

Without seeing the actual query, it is not easy to give any general advice on this. However, the first step should be to consider what LEFT JOINs are strictly necessary. If you use MySQL 5.6, there should be no reason to avoid IN-subqueries. MySQL will be able to convert them into join and remove duplicates automatically if necessary.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
1035
November 12, 2015 12:49AM
1146
November 12, 2015 03:20AM
1254
November 12, 2015 07:18AM
Re: distinct clause issue for 600000 records
1301
November 12, 2015 07:43AM
1171
November 13, 2015 12:37AM
1291
November 13, 2015 12:45AM
1324
November 13, 2015 05:56AM
1222
November 13, 2015 07:15AM
1139
November 13, 2015 11:35AM
1137
November 16, 2015 04:12AM


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.