In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `jogar_totoloto2` ADD INDEX `jogar_totoloto2_idx_n1_n2_n3_n4_n5` (`n1`,`n2`,`n3`,`n4`,`n5`);
ALTER TABLE `tbl_todos` ADD INDEX `tbl_todos_idx_n1_n2_n3_n4_n5` (`n1`,`n2`,`n3`,`n4`,`n5`);
SELECT
1
FROM
jogar_totoloto2,
tbl_todos b
WHERE
jogar_totoloto2.n1 = b.n1
AND jogar_totoloto2.n2 = b.n2
AND jogar_totoloto2.n3 = b.n3
AND jogar_totoloto2.n4 = b.n4
AND jogar_totoloto2.n5 = b.n5