当前位置:网站首页>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
在网上找了一些解决方案,但大多数不符合情况以及没有效果,请各位帮忙看一下
边栏推荐
- MySQL error reporting solution
- 遠程代碼執行滲透測試——B模塊測試
- EasyRE WriteUp
- C WinForm series button easy to use
- MySQL advanced (index, view, stored procedure, function, password modification)
- 轻量级计划服务工具研发与实践
- 02 personal developed products and promotion - SMS platform
- Flink parsing (V): state and state backend
- Single responsibility principle
- Flink analysis (I): basic concept analysis
猜你喜欢
Selenium test of automatic answer runs directly in the browser, just like real users.
EasyCVR电子地图中设备播放器loading样式的居中对齐优化
[getting started with MySQL] fourth, explore operators in MySQL with Kiko
Vscode matches and replaces the brackets
面试突击63:MySQL 中如何去重?
node の SQLite
Development and practice of lightweight planning service tools
EasyRE WriteUp
当前系统缺少NTFS格式转换器(convert.exe)
Re signal writeup
随机推荐
Run xv6 system
Total / statistics function of MySQL
Flink analysis (II): analysis of backpressure mechanism
MySQL error reporting solution
Single responsibility principle
TCP connection is more than communicating with TCP protocol
MySQL报错解决
PyTorch 提取中间层特征?
Optimization of middle alignment of loading style of device player in easycvr electronic map
02个人研发的产品及推广-短信平台
Virtual machine startup prompt probing EDD (edd=off to disable) error
2021-03-22 "display login screen during recovery" can't be canceled. The appearance of lock screen interface leads to the solution that the remotely connected virtual machine can't work normally
06个人研发的产品及推广-代码统计工具
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
Openharmony developer documentation open source project
03个人研发的产品及推广-计划服务配置器V3.0
Flink analysis (I): basic concept analysis
[introduction to MySQL] third, common data types in MySQL
mysql高級(索引,視圖,存儲過程,函數,修改密碼)
Redis quick start