MySQL Forums :: Performance :: Query optimize on large database


Advanced Search

Re: Query optimize on large database
Posted by: Rick James ()
Date: July 20, 2016 09:29AM

SELECT d2.Artist, d2.Title, COUNT(*)
FROM data d1
JOIN data d2 USING(Artist,Title)
WHERE d1.owner_id = @user_id
GROUP BY d2.Artist, d2.Title

Options: ReplyQuote


Subject Views Written By Posted
Query optimize on large database 507 Pavel Volkov 07/13/2016 01:40AM
Re: Query optimize on large database 297 Rick James 07/15/2016 05:12PM
Re: Query optimize on large database 301 Pavel Volkov 07/16/2016 04:15AM
Re: Query optimize on large database 288 Peter Brawley 07/16/2016 12:09PM
Re: Query optimize on large database 280 Pavel Volkov 07/16/2016 12:36PM
Re: Query optimize on large database 274 Rick James 07/16/2016 02:46PM
Re: Query optimize on large database 281 Peter Brawley 07/17/2016 11:22AM
Re: Query optimize on large database 270 Pavel Volkov 07/18/2016 04:28AM
Re: Query optimize on large database 259 Peter Brawley 07/18/2016 08:40AM
Re: Query optimize on large database 273 james wang 07/20/2016 04:46AM
Re: Query optimize on large database 258 Pavel Volkov 07/20/2016 08:06AM
Re: Query optimize on large database 277 Rick James 07/20/2016 09:29AM
Re: Query optimize on large database 266 james wang 07/21/2016 04:35AM


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.