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

前端 未结 8 2056
借酒劲吻你
借酒劲吻你 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:48

    Depending on your version of SQL server, simply putting your query into a stored procedure may make a big difference. Try this after you have tried the other optimizations first.(Yes, I know there are cached execution plans and other internal server optimizations, but in my practical real-world experience, stored procedures can execute faster.)

提交回复
热议问题