php - Results filtering on mysql query left join 4 big tables -


query this:

select t1.id, t1.info1, t1.info2, t1.info3, t2.info1, t2.info2, t2.info3, ........ t4.info1, t4.info2, t4.info3 table1 t1  left join table2 t2 on t2.id_key=t1.id  left join table3 t3 on t3.id_key=t1.id left join table4 t4 on t4.id_key=t1.id t1.id = '1' , t1.active='1'; 
 t1 - !1.5 milions inserts t2 - ~2 milions t3 - ~2.5 milions t4 - ~2 milions 

on results page want add sidebar filtering in website add in query left conditions t2.info2='3' , t3.info4='11'. take century query every time filter checked, need advice sql guru. appreciated. thanks


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -