当前位置:网站首页>2022-08-01 反思
2022-08-01 反思
2022-08-02 02:08:00 【帝尊悟世】
遇到的慢SQL问题的共性:
- 遇到的这些慢SQL的问题,不仅仅是单方面的,更是该模块的设计者的架构能力和对计算机系统基础知识理解的匮乏,在系统被设计好的同时,系统的性能也就一起被设计好了。性能问题不是恰巧发生的
- 内存管理部分极其糟糕,冗余的内存拷贝,对于内存无限制的索取,对于何时使用buffer及其占用的问题
- 并行执行的设计未能达到目的,有三个慢SQL的最后执行仅使用一个cpu核心,实际成为串行的执行
思考:
- 性能分析工具其实可以做一些更深入的,方便用户分析慢SQL, 现在大部分使用的是per火焰图和explain查询计划做宏观分析,用mysql workbench performance查看mysql本身的统计信息,使用代码埋点日志着色做细节分析。可以入手做一些类似oracle awr的更细节的分析报告
- 细节,细节,还是细节,在理解了大的模块交互之后,关键就在于对细节的理解。任何一行代码都要反思思考。
- 对于一个paper和优化方向,最好的方法是去亲自实现一遍,以owner意识亲自缔造出来,如此方能与其融为一体。只是知道,但做不到,那就是不知道。
边栏推荐
- [LeetCode Daily Question] - 103. Zigzag Level Order Traversal of Binary Tree
- AOF rewrite
- PHP 使用 PHPRedis 与 Predis
- to-be-read list
- Huawei's 5-year female test engineer resigns: what a painful realization...
- LeetCode刷题日记:34、 在排序数组中查找元素的第一个和最后一个位置
- bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
- ofstream,ifstream,fstream读写文件
- Simple example of libcurl accessing url saved as file
- typescript33 - high-level overview of typescript
猜你喜欢
"NetEase Internship" Weekly Diary (2)
The characteristics and principle of typescript29 - enumeration type
飞桨助力航天宏图PIE-Engine地球科学引擎构建
MySQL8 下载、启动、配置、验证
【LeetCode Daily Question】——704. Binary Search
Day116. Shangyitong: Details of appointment registration ※
Handwritten Blog Platform ~ Day Two
ofstream,ifstream,fstream读写文件
Use baidu EasyDL implement factory workers smoking behavior recognition
MySQL优化策略
随机推荐
Constructor instance method inheritance of typescript37-class (extends)
Shell入门终章
"NetEase Internship" Weekly Diary (1)
【轮式里程计】
LeetCode brushing diary: 53, the largest sub-array and
typescript29-枚举类型的特点和原理
Record the pits where an error occurs when an array is converted to a collection, and try to use an array of packaging types for conversion
『网易实习』周记(二)
使用百度EasyDL实现厂区工人抽烟行为识别
手写一个博客平台~第一天
制造企业数字化转型现状分析
Understand the big model in seconds | 3 steps to get AI to write a summary
Rust P2P Network Application Combat-1 P2P Network Core Concepts and Ping Program
Some insights from 5 years of automated testing experience: UI automation must overcome these 10 pits
【LeetCode每日一题】——103.二叉树的锯齿形层序遍历
Simple example of libcurl accessing url saved as file
bool框架::PosInGrid (const简历:关键点kp, int &posX, int诗句)
LeetCode brushing diary: 33. Search and rotate sorted array
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
The characteristics and principle of typescript29 - enumeration type