当前位置:网站首页>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意识亲自缔造出来,如此方能与其融为一体。只是知道,但做不到,那就是不知道。
边栏推荐
- 3. Bean scope and life cycle
- Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
- Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
- 3.Bean的作用域与生命周期
- 雇用WordPress开发人员:4个实用的方法
- MySQL optimization strategy
- 飞桨开源社区季度报告来啦,你想知道的都在这里
- Rust P2P Network Application Combat-1 P2P Network Core Concepts and Ping Program
- AntPathMatcher使用
- Ask God to answer, how should this kind of sql be written?
猜你喜欢

Fly propeller power space future PIE - Engine Engine build earth science
A full set of common interview questions for software testing functional testing [open thinking questions] interview summary 4-3

3.Bean的作用域与生命周期

哈希冲突和一致性哈希

YGG Guild Development Plan Season 1 Summary

飞桨助力航天宏图PIE-Engine地球科学引擎构建

MySQL optimization strategy

软件测试 接口自动化测试 pytest框架封装 requests库 封装统一请求和多个基础路径处理 接口关联封装 测试用例写在yaml文件中 数据热加载(动态参数) 断言

Win Go development kit installation configuration, GoLand configuration

2023年起,这些地区软考成绩低于45分也能拿证
随机推荐
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
The Paddle Open Source Community Quarterly Report is here, everything you want to know is here
Handwritten Blog Platform ~ Day Two
to-be-read list
Named parameter implementation of JDBC PreparedStatement
Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
Use baidu EasyDL implement factory workers smoking behavior recognition
Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
乱七八糟的网站
Chengdu openGauss user group recruit!
超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!
"NetEase Internship" Weekly Diary (1)
使用百度EasyDL实现厂区工人抽烟行为识别
Simple example of libcurl accessing url saved as file
LeetCode刷题日记:34、 在排序数组中查找元素的第一个和最后一个位置
Understand the big model in seconds | 3 steps to get AI to write a summary
bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
typescript31-any类型
LeetCode 213. Robbery II (2022.08.01)
AntPathMatcher使用