mysql query and index

Posted by parm.95 on Stack Overflow See other posts from Stack Overflow or by parm.95
Published on 2010-06-06T14:10:34Z Indexed on 2010/06/06 14:12 UTC
Read the original article Hit count: 242

Filed under:
|

Does this query will be faster with a index on "t.type1" and "x.type1" or only index on "x.type1" is enought?

SELECT t.id, x.id
FROM t
INNER JOIN x ON x.type1=t.type1
WHERE t.id=1

© Stack Overflow or respective owner

Related posts about mysql-query

Related posts about indexing