Optimize SQL that uses between clause

前端 未结 19 2121
故里飘歌
故里飘歌 2021-01-11 18:03

Consider the following 2 tables:

Table A:
id
event_time

Table B
id
start_time
end_time

Every record in table A is mapped to exactly 1 reco

19条回答
  •  滥情空心
    2021-01-11 18:25

    By not changing the schema do mean you can't add an index? Try a multi column index on start_time and end_time.

提交回复
热议问题