The query is executing very slowly, is there any way to improve it any further?

后端 未结 8 1110
长情又很酷
长情又很酷 2021-02-15 17:26

I have the following query, and because of a lot of SUM function calls, my query is running too slow. I have a lot of records in my database and I would like to get

8条回答
  •  感动是毒
    2021-02-15 18:04

    To improve the speed of SQL query, you must add indexes. For each joined table, you have to add one index.

    Like this code example for oracle:

    CREATE INDEX supplier_idx
    ON supplier (supplier_name);
    

提交回复
热议问题