I have the following problem:
There are 2 MySQL databases Database_1 which is the original one and Database_2, which is based on the first database with only few changes (some new columns, different data).
When i run a query which involves 3 tables from database i get very different performance results. I was testing both databases on the same localhost server.
Query:
SELECT `Applicant`.`id`, `Applicant`.`name`, `User`.`login`, `User`.`id`, Project.id
FROM `applicants` AS `Applicant`
LEFT JOIN `authake_users` AS `User` ON (`Applicant`.`authake_user_id` = `User`.`id`)
LEFT JOIN `projects` AS `Project` ON (`Project`.`applicant_id` = `Applicant`.`id`)
WHERE `User`.`login` LIKE _latin1 '%1000%' AND `Project`.`id` IS NULL;
Query execution time:
Database_1 – 0.3 s – this database is the larger one though it’s faster
Database_2 – 1 min 40 s
All 3 tables are using MyISAM engine. Tables applicants and projects have charset utf8, table authake_users has charset latin1.
I’ve checked the indexes (both databases have exactly the same indexes), rebuilt them and used ANALYZE and OPTIMIZE on all 3 tables with no success.
The only difference i’ve found is show below, when i run the query with EXPLAIN command in front:
Does anybody have any idea what to look for? What can be causing such a difference in the performance?

