当前位置:网站首页>sql语句优化,order by desc速度优化
sql语句优化,order by desc速度优化
2022-07-06 09:40:00 【CSDN问答】
我有一个sql需要优化,使用 order by desc+ limit后查询速度特别慢。有什么办法可以解决吗?
SELECT electricity_meter from device_history_log WHERE device_id = '3130303934323735353339343030303030303030' and year (create_time) = '2022' ORDER BY id desc LIMIT 1
在网上找了一些解决方案,但大多数不符合情况以及没有效果,请各位帮忙看一下
边栏推荐
- 自动化运维利器-Ansible-Playbook
- MySQL Advanced (index, view, stored procedures, functions, Change password)
- connection reset by peer
- Flink parsing (VII): time window
- Binary search strategy
- C# NanoFramework 点灯和按键 之 ESP32
- Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
- The NTFS format converter (convert.exe) is missing from the current system
- How to submit data through post
- EasyCVR授权到期页面无法登录,该如何解决?
猜你喜欢
FlutterWeb瀏覽器刷新後無法回退的解决方案
Solr appears write Lock, solrexception: could not get leader props in the log
自动化运维利器ansible基础
FlutterWeb浏览器刷新后无法回退的解决方案
[introduction to MySQL] third, common data types in MySQL
BearPi-HM_ Nano development board "flower protector" case
关于Selenium启动Chrome浏览器闪退问题
[reverse] repair IAT and close ASLR after shelling
Grafana 9 is officially released, which is easier to use and more cool!
Unity粒子特效系列-闪星星的宝箱
随机推荐
C version selenium operation chrome full screen mode display (F11)
Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
自动化运维利器-Ansible-Playbook
Flink analysis (I): basic concept analysis
04 products and promotion developed by individuals - data push tool
node の SQLite
Flink parsing (IV): recovery mechanism
Solution qui ne peut pas être retournée après la mise à jour du navigateur Web flutter
07 personal R & D products and promotion - human resources information management system
C#版Selenium操作Chrome全屏模式显示(F11)
[reverse primary] Unique
MySQL error reporting solution
Detailed explanation of data types of MySQL columns
FlutterWeb瀏覽器刷新後無法回退的解决方案
沉淀下来的数据库操作类-C#版(SQL Server)
The art of Engineering (1): try to package things that do not need to be exposed
Remote code execution penetration test - B module test
Sqoop I have everything you want
MySQL Advanced (index, view, stored procedures, functions, Change password)
Compile and build, from the bottom to the top