Do indexes speed up greater than > comparison in MySQL?

前端 未结 3 355
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 12:31

I have an events tables in my db, which includes among others start_date and end_date columns.

I frequently run queries like

where start_date > \         


        
3条回答
  •  渐次进展
    2020-12-16 13:04

    Yes, database will use those indexes and it should increase performance.

    Note: it cannot use the two disctinct indexes simultaneously for good performance you need a multi-column index.

提交回复
热议问题