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项目里跑,花了十几秒。为什么?
8 回答6.6k 阅读
4 回答725 阅读✓ 已解决
2 回答3.4k 阅读
1 回答2.6k 阅读✓ 已解决
5 回答1.5k 阅读
3 回答1.9k 阅读✓ 已解决
1 回答2.3k 阅读✓ 已解决