Sql: Optimizing BETWEEN clause

前端 未结 9 736
孤街浪徒
孤街浪徒 2021-02-06 07:38

I wrote a statement that takes almost an hour to run so I am asking help so I can get to do this faster. So here we go:

I am making an inner join of two tables :

<
9条回答
  •  无人及你
    2021-02-06 08:12

    try a parallel query

      alter session enable parallel query;
    
      select /*+ parallel */ ... same as before;
    

    You could also create a materialized view, perhaps with the parallel hint above. It may take a long time to create the MV but once created it can be queried repeatedly.

提交回复
热议问题