当前位置:网站首页>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意识亲自缔造出来,如此方能与其融为一体。只是知道,但做不到,那就是不知道。
边栏推荐
- Fundamentals of Cryptography: X.690 and Corresponding BER CER DER Encodings
- LeetCode刷题日记:153、寻找旋转排序数组中的最小值
- LeetCode Review Diary: 153. Find the Minimum Value in a Rotated Sort Array
- hash table
- Redis 订阅与 Redis Stream
- Handwritten Blog Platform ~ Day Two
- ¶Backtop 回到顶部 不生效
- Huawei's 5-year female test engineer resigns: what a painful realization...
- LeetCode Review Diary: 34. Find the first and last position of an element in a sorted array
- LeetCode Brushing Diary: 74. Searching 2D Matrix
猜你喜欢
『网易实习』周记(二)
LeetCode brush diary: LCP 03. Machine's adventure
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021: Interpretation
[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)
Data transfer at the data link layer
Hiring a WordPress Developer: 4 Practical Ways
Some insights from 5 years of automated testing experience: UI automation must overcome these 10 pits
From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.
2023年起,这些地区软考成绩低于45分也能拿证
软件测试 接口自动化测试 pytest框架封装 requests库 封装统一请求和多个基础路径处理 接口关联封装 测试用例写在yaml文件中 数据热加载(动态参数) 断言
随机推荐
力扣(LeetCode)213. 打家劫舍 II(2022.08.01)
MySQL8 下载、启动、配置、验证
Redis 订阅与 Redis Stream
LeetCode刷题日记:LCP 03.机器人大冒险
¶ Backtop back to the top is not effective
LeetCode brush diary: LCP 03. Machine's adventure
Data transfer at the data link layer
数据链路层的数据传输
Local storage in Kubernetes
Chengdu openGauss user group recruit!
¶Backtop 回到顶部 不生效
swift project, sqlcipher3 -> 4, cannot open legacy database is there a way to fix it
制造企业数字化转型现状分析
oracle查询扫描全表和走索引
Software testing Interface automation testing Pytest framework encapsulates requests library Encapsulates unified request and multiple base path processing Interface association encapsulation Test cas
oracle query scan full table and walk index
HSDC is related to Independent Spanning Tree
编码经验之谈
Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
力扣、752-打开转盘锁