当前位置:网站首页>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
边栏推荐
- Total / statistics function of MySQL
- MySQL报错解决
- Debug and run the first xv6 program
- About selenium starting Chrome browser flash back
- Kernel link script parsing
- 基于STM32+华为云IOT设计的智能路灯
- Vscode replaces commas, or specific characters with newlines
- Flink analysis (I): basic concept analysis
- [introduction to MySQL] third, common data types in MySQL
- 03 products and promotion developed by individuals - plan service configurator v3.0
猜你喜欢
Optimization of middle alignment of loading style of device player in easycvr electronic map
Selenium test of automatic answer runs directly in the browser, just like real users.
EasyRE WriteUp
Solr appears write Lock, solrexception: could not get leader props in the log
Reppoints: advanced order of deformable convolution
03 products and promotion developed by individuals - plan service configurator v3.0
Flink analysis (I): basic concept analysis
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
2022年大厂Android面试题汇总(一)(含答案)
传统家装有落差,VR全景家装让你体验新房落成效果
随机推荐
Wordcloud colormap color set and custom colors
[translation] principle analysis of X Window Manager (I)
Automatic operation and maintenance sharp weapon ansible Foundation
The NTFS format converter (convert.exe) is missing from the current system
Vscode replaces commas, or specific characters with newlines
Summary of Android interview questions of Dachang in 2022 (II) (including answers)
[mmdetection] solves the installation problem
05个人研发的产品及推广-数据同步工具
FlutterWeb浏览器刷新后无法回退的解决方案
Spark accumulator and broadcast variables and beginners of sparksql
Pytorch extract middle layer features?
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
Summary of study notes for 2022 soft exam information security engineer preparation
中移动、蚂蚁、顺丰、兴盛优选技术专家,带你了解架构稳定性保障
02 personal developed products and promotion - SMS platform
MySQL error reporting solution
Optimization of middle alignment of loading style of device player in easycvr electronic map
C version selenium operation chrome full screen mode display (F11)
mysql高級(索引,視圖,存儲過程,函數,修改密碼)
Solr appears write Lock, solrexception: could not get leader props in the log