If exactly the same compile image works differently on two different databases - maybe you need to look elsewhere?
I'd suggest looking at show variables - this might highlight some setting differences or some value differences - switch slow query loggin on using mysql.cnf - this might highlight...
You might want to consider the following - if you hold a user id in designer table and your designs are keyed unique on designer_id + design_id
then you can
select * from designs d, designer a
where a.designer_id=d.designer_id
and a.user_id =$USER_ID
This would restrict the designer to his...
Hopefully someone can suggest something:
I've got a default MySQL installation running on Linux. Single table queries access acceptably (normally sub second) however when I do a simple 2 query table I get ridiculous results
Table a - 30,000 rows - (approx 100bytes)
Table b - 460,000 rows -...
If I understand you correctly you simply need to add the function MAX()to your query:
Select t.id, t.title, max(v.value), max(v.hour)
from titles t, values v
where v.id_title=t.id
and t.index='abc'
group by t.id, title
Hope this helps?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.