当前位置:网站首页>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意识亲自缔造出来,如此方能与其融为一体。只是知道,但做不到,那就是不知道。
边栏推荐
- 哈希冲突和一致性哈希
- Scheduled tasks for distributed applications in Golang
- 3. Bean scope and life cycle
- [ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)
- 软件测试功能测试全套常见面试题【开放性思维题】面试总结4-3
- Fly propeller power space future PIE - Engine Engine build earth science
- Redis Subscription and Redis Stream
- Huawei's 5-year female test engineer resigns: what a painful realization...
- 【Brush the title】Family robbery
- bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
猜你喜欢

typescript33-typescript高级概述

Scheduled tasks for distributed applications in Golang

Typescript31 - any type

飞桨开源社区季度报告来啦,你想知道的都在这里

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

The characteristics and principle of typescript29 - enumeration type

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

3. Bean scope and life cycle

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

typescript38-class的构造函数实例方法继承(implement)
随机推荐
秒懂大模型 | 3步搞定AI写摘要
【轮式里程计】
Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
手写一个博客平台~第一天
用位运算为你的程序加速
Redis for distributed applications in Golang
Force buckle, 752-open turntable lock
3 Month Tester Readme: 4 Important Skills That Impacted My Career
Typescript31 - any type
Huawei's 5-year female test engineer resigns: what a painful realization...
Software testing Interface automation testing Pytest framework encapsulates requests library Encapsulates unified request and multiple base path processing Interface association encapsulation Test cas
哈希冲突和一致性哈希
【Brush the title】Family robbery
typescript38-class的构造函数实例方法继承(implement)
【ORB_SLAM2】void Frame::AssignFeaturesToGrid()
Centos7 安装postgresql并开启远程访问
Hash collisions and consistent hashing
Fundamentals of Cryptography: X.690 and Corresponding BER CER DER Encodings
Coding Experience Talk
超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!