当前位置:网站首页>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刷题日记:74. 搜索二维矩阵
- AntPathMatcher uses
- From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.
- Newton's theorem and related corollaries
- LeetCode Review Diary: 34. Find the first and last position of an element in a sorted array
- "Introduction to Natural Language Processing Practice" Question Answering Robot Based on Knowledge Graph
- 『网易实习』周记(一)
- 【ORB_SLAM2】SetPose、UpdatePoseMatrices
- typescript30 - any type
- 超大规模的产业实用语义分割数据集PSSL与预训练模型开源啦!
猜你喜欢

6-24 exploit-vnc password cracking

Redis Subscription and Redis Stream

typescript35-class的构造函数

typescript33-typescript高级概述

From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.

typescript29-枚举类型的特点和原理

Image fusion based on weighted 】 and pyramid image fusion with matlab code

制造企业数字化转型现状分析

使用百度EasyDL实现厂区工人抽烟行为识别

MySQL optimization strategy
随机推荐
记录一次数组转集合出现错误的坑点,尽量使用包装类型数组进行转换
【轮式里程计】
Analysis of volatile principle
Handwritten Blog Platform ~ Day Two
Win Go开发包安装配置、GoLand配置
Redis 底层的数据结构
C language inserted into the characters of simple exercises
Local storage in Kubernetes
HSDC is related to Independent Spanning Tree
手写一个博客平台~第三天
Constructor of typescript35-class
Newton's theorem and related corollaries
【LeetCode每日一题】——704.二分查找
Shell入门终章
Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
Data transfer at the data link layer
LeetCode刷题日记:53、最大子数组和
PHP 使用 PHPRedis 与 Predis
LeetCode brushing diary: 33. Search and rotate sorted array
手写一个博客平台~第一天