Answer the question
In order to leave comments, you need to log in
SQL query optimization?
SELECT A.name, B.phone, %еще 20 полей%...
FROM `alpha` d
LEFT OUTER JOIN beta B ON A.name= B.name
WHERE A.age > 20 LIMIT 5000, 3000
Answer the question
In order to leave comments, you need to log in
Solved the problem using subqueries.
SELECT A.name, B.phone, %еще 20 полей%...
FROM
(SELECT * FROM `alpha` A.age > 20 LIMIT 5000, 5000) AS A
LEFT OUTER JOIN beta B ON A.name= B.name
EXPLAIN SELECT A.name, B.phone, %еще 20 полей%...
FROM `alpha` d
LEFT OUTER JOIN beta B ON A.name= B.name
WHERE A.age > 20 LIMIT 5000, 3000
about explain correctly speak.
And why do you need to link tables without a key? try adding indexes on a.name b.name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question