Sql: Optimizing BETWEEN clause

前端 未结 9 737
孤街浪徒
孤街浪徒 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:09

    You can't really optimize your statement - it's pretty simple as it is.

    What you could do is investigate if some indices would help you.

    You're selecting on intervals.entry_time, intervals.exit_time, measures.time - are those columns indexed?

提交回复
热议问题