php - How to make this MySQL query execute faster? -


select * (`collection_series`)    join `datadatexnumericy` on      `collection_series`.`series_id` = `datadatexnumericy`.`series_id`    join `saved_users_chart` on `collection_series`.`collection_id` =     `saved_users_chart`.`chart_id`   `saved_users_chart`.`chart_id` = '265'      , `saved_users_chart`.`id` = '6' , `datadatexnumericy`.`x` >=      '1973-09-30' , `datadatexnumericy`.`x` <= '2014-06-30' ,      `datadatexnumericy`.`series_id` != '43538'      , `datadatexnumericy`.`series_id` != '43541'      group year(datadatexnumericy.x) 

this sql query , result of query getting ajax response query working fine getting response slow bit think problem in sql query.

i want matching records collection_series , datadatexnumericy table , matching row saved_users_chart there possible way optimize query in more efficient way can ajax response faster.

in opinion query optimized. should test result of query in sql server see response time of sql server , compare time actualy receive response server.

if not necesary extract columns each table, manualy enter column names instead of *. doing response received server smaller, therefore faster.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -