Re: why must i specify an index in query?
The query looks needlessly baroque. Why
left join, which requires the query engine to read all rows from the table on the left side of the join? If there's a match, Join will optimise much better. And why the convoluted On clause when you could write something simple like this?
select *
from usersmobile u
join (
select id
from userhits
order by id desc limit 1
) t on u.id=t.userid2;
Subject
Views
Written By
Posted
1749
July 02, 2015 10:31AM
885
July 02, 2015 11:46AM
1537
July 02, 2015 12:46PM
Re: why must i specify an index in query?
991
July 02, 2015 01:58PM
1018
July 02, 2015 02:49PM
937
July 02, 2015 09:47PM
905
July 02, 2015 10:36PM
1044
July 03, 2015 08:10AM
935
July 03, 2015 03:06PM
902
July 03, 2015 09:12PM
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.