当前位置:网站首页>SQL statement optimization, order by desc speed optimization
SQL statement optimization, order by desc speed optimization
2022-07-06 17:46:00 【CSDN Q & A】
I have one sql Need to optimize , Use order by desc+ limit Post query speed is particularly slow . Is there any way to solve it ?
SELECT electricity_meter from device_history_log WHERE device_id = '3130303934323735353339343030303030303030' and year (create_time) = '2022' ORDER BY id desc LIMIT 1
I found some solutions on the Internet , But most of them do not meet the requirements and have no effect , Please take a look
边栏推荐
- EasyRE WriteUp
- About selenium starting Chrome browser flash back
- Flexible report v1.0 (simple version)
- Debug xv6
- 07 personal R & D products and promotion - human resources information management system
- [getting started with MySQL] fourth, explore operators in MySQL with Kiko
- C#WinForm中的dataGridView滚动条定位
- 04个人研发的产品及推广-数据推送工具
- Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
- Spark accumulator and broadcast variables and beginners of sparksql
猜你喜欢
[introduction to MySQL] the first sentence · first time in the "database" Mainland
03 products and promotion developed by individuals - plan service configurator v3.0
Flink analysis (I): basic concept analysis
Display picture of DataGridView cell in C WinForm
06 products and promotion developed by individuals - code statistical tools
About selenium starting Chrome browser flash back
分布式不来点网关都说不过去
【MySQL入门】第三话 · MySQL中常见的数据类型
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
Sqoop I have everything you want
随机推荐
Selenium test of automatic answer runs directly in the browser, just like real users.
04个人研发的产品及推广-数据推送工具
Interpretation of Flink source code (I): Interpretation of streamgraph source code
Grafana 9 正式发布,更易用,更酷炫了!
Flexible report v1.0 (simple version)
MySQL stored procedure
Display picture of DataGridView cell in C WinForm
Grafana 9 is officially released, which is easier to use and more cool!
MySQL报错解决
Openharmony developer documentation open source project
MySQL 8 sub database and table backup database shell script
BearPi-HM_ Nano development board "flower protector" case
04 products and promotion developed by individuals - data push tool
PySpark算子处理空间数据全解析(4): 先说说空间运算
基于LNMP部署flask项目
The art of Engineering (1): try to package things that do not need to be exposed
Detailed explanation of data types of MySQL columns
Debug and run the first xv6 program
Kali2021 installation and basic configuration
Reppoints: advanced order of deformable convolution