当前位置:网站首页>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
边栏推荐
- Virtual machine startup prompt probing EDD (edd=off to disable) error
- Guidelines for preparing for the 2022 soft exam information security engineer exam
- 【MySQL入门】第四话 · 和kiko一起探索MySQL中的运算符
- Integrated development management platform
- Display picture of DataGridView cell in C WinForm
- 分布式不来点网关都说不过去
- TCP connection is more than communicating with TCP protocol
- Unity粒子特效系列-闪星星的宝箱
- 基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
- Essai de pénétration du Code à distance - essai du module b
猜你喜欢
Application service configurator (regular, database backup, file backup, remote backup)
Pyspark operator processing spatial data full parsing (5): how to use spatial operation interface in pyspark
How to use scroll bars to dynamically adjust parameters in opencv
Huawei certified cloud computing hica
PyTorch 提取中间层特征?
04 products and promotion developed by individuals - data push tool
酷雷曼多种AI数字人形象,打造科技感VR虚拟展厅
EasyCVR授权到期页面无法登录,该如何解决?
Vscode matches and replaces the brackets
04个人研发的产品及推广-数据推送工具
随机推荐
The problem of "syntax error" when uipath executes insert statement is solved
Establishment of graphical monitoring grafana
网络分层概念及基本知识
Hongmeng introduction and development environment construction
MySQL basic addition, deletion, modification and query of SQL statements
Openharmony developer documentation open source project
虚拟机启动提示Probing EDD (edd=off to disable)错误
Flexible report v1.0 (simple version)
The art of Engineering (2): the transformation from general type to specific type needs to be tested for legitimacy
Flink parsing (V): state and state backend
07个人研发的产品及推广-人力资源信息管理系统
RepPoints:可形变卷积的进阶
Sqoop I have everything you want
Unity particle special effects series - treasure chest of shining stars
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
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
Unity tips - draw aiming Center
Development and practice of lightweight planning service tools
Reppoints: advanced order of deformable convolution
[mmdetection] solves the installation problem