mysql between and 实测索引时效问题

 数据量 大概 10W

explain select count(*) from predictions where predictions.deleted_at is null and (in_time between '2022-09-01' and '2022-09-13')

上面的走索引 大概3000

explain select count(*) from predictions where predictions.deleted_at is null and (in_time between '2022-09-01' and '2022-09-13')
上面的不走索引 大概4000


比较神奇


posted @   天梯小蔡  阅读(533)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
历史上的今天:
2019-09-24 linux ss代理 服务端和客户端代理设置
点击右上角即可分享
微信分享提示