sql query joins multiple tables - too slow (8 tables)

前端 未结 8 2035
借酒劲吻你
借酒劲吻你 2020-11-30 23:22

i\'m trying to join 8 tables into one in order to create index used by other application, my query is like : (my mysql skill\'s very amateur)

SELECT t1_id, t         


        
8条回答
  •  無奈伤痛
    2020-11-30 23:37

    If you need all the rows of t1, and you left join on the primary key (I guess it's also the clustered index) of the other tables, there is no way to improve the speed of the query.

    To improve performance you either need to reduce the result set or perform a nasty trick (eg make a denormalized copy of the data).

提交回复
热议问题