 <p>You can try to use indexes, its very optimize queries time.</p> <p>try this link:</p> <p><a href="http://www.databasejournal.com/features/mysql/article.php/1382791/Optimizing-MySQL-Queries-and-Indexes.htm" rel="nofollow noreferrer">http://www.databasejournal.com/features/mysql/article.php/1382791/Optimizing-MySQL-Queries-and-Indexes.htm</a></p>