SELECT
count(*) as num
FROM mail_record202109
where create_time between '2021-09-20' and '2021-09-28'
GROUP BY `to`
都是这段查询语句,sql里跑耗时1s不到
但是在springboot项目里跑,花了十几秒。为什么?
SELECT
count(*) as num
FROM mail_record202109
where create_time between '2021-09-20' and '2021-09-28'
GROUP BY `to`
都是这段查询语句,sql里跑耗时1s不到
但是在springboot项目里跑,花了十几秒。为什么?
15 回答8.4k 阅读
8 回答6.2k 阅读
5 回答3.2k 阅读✓ 已解决
3 回答3.6k 阅读✓ 已解决
1 回答4k 阅读✓ 已解决
3 回答6k 阅读
3 回答2.6k 阅读✓ 已解决