MySQL Forums
Forum List  »  Performance

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

Hi,

I suspect what you want is

SELECT ee.id FROM extn ee
WHERE ee.id IN (select id from srl) AND ee.id=2662;

As long as you have indexes on your id columns, I think performance should not be an issue.

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

Options: Reply• Quote


Subject
Views
Written By
Posted
1077
November 12, 2015 12:49AM
1176
November 12, 2015 03:20AM
Re: distinct clause issue for 600000 records
1301
November 12, 2015 07:08AM
1295
November 12, 2015 07:18AM
1214
November 13, 2015 12:37AM
1329
November 13, 2015 12:45AM
1363
November 13, 2015 05:56AM
1256
November 13, 2015 07:15AM
1165
November 13, 2015 11:35AM
1159
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.