当前位置:网站首页>Database performance analysis and optimization (internal training materials of Aite future team)
Database performance analysis and optimization (internal training materials of Aite future team)
2022-07-28 17:41:00 【itest_ two thousand and sixteen】








Memory management :MSMM、ASMM(sga_target)、AMM(memory_target) Small memory has the problem of small memory , Large memory has the trouble of large memory !ORA-04031 Buffer cache and sharedpool size Of begin/end Values in ASMM、AMM and 11gR2MSMM But it will move

Parses Analytic number , Including soft parsing + Hard parsing , What we want is Parse once Run anywhere !HardParses The root of all evil .Cursorpin s on X, librarycache: mutex X , latch: row cache objects /sharedpool……………... Hard parsing should preferably be less than per second 20 Time


log file sync: Generally, such waiting time is due to LGWR Progress talk redo log buffer write in redo log Occur in the .
commit Are there too many times


Some components require high response time , During the test, we should set the slow query threshold , Set as small as possible .
yes , we have SQL It may be used for statistics , There is no real-time requirement , At this time, during the test , The slow query threshold can be set higher .




Statspack- Generate snapshot




Suggest : Calculate the usage rate :10% < Number of connections usage < 85% .




10046 trace To keep track of Oracle













1、 Index is used to improve query SQL The performance of the , But in some cases, queries cannot use indexes , It's useless to build it
2、 Next, let's take a look at our common query types .
3、 Different types of queries , What should we pay attention to when building an index


1、 Different storage engines support different indexing methods
2、 Here we use InnoDB engine , Supported by Btree Take index as an example


Here, we not only query conditions firstname To index , The sorted fields also need to be indexed

1、 Use group by When grouping , It needs to be indexed .
2、 Use distinct When making a uniqueness query ,firstname Although fields are not used as query criteria , Need to add index .


Left connection : Based on the left table ( The left table takes all the data ), Go to the right table and match the data by conditions . The search criteria are activated in the right table , So the index is built in the right table .

( Please forward if you like , thank you !)
Join beta future qq Group , Get more professional technical knowledge sharing :
274166295 ( Love to test the future two groups )
610934609 ( Love to test the future three groups )
195730410 ( Love to test the future four groups )
More wonderful articles :
Mobile H5 Debugging and Automation
Android What should we do to improve the compatibility test ?
Performance analysis OS Resource saturation
Front end performance monitoring
come from 520 The welfare of the ---- Performance test of live video platform
Front end performance test platform and its application
A classic case that shocked the performance testing Circle !!
——————————————————
Love future official account
WX:itest_forever

The way to test | Testing Technology
Long press to identify the qr code , Pay attention to the official account of Aitai future , Learn more about
边栏推荐
猜你喜欢

The easy-to-use special app testing tool itest4.7.0 has been released

ionic 中遇到的一些东西

Can‘t use an undefined value as an ARRAY reference at probe2symbol

R language drawing / drawing / drawing 2

JDWP未授权快速利用

Ggplot2 map

R中因子(factor)

谈谈你知道的发布上线(二)

掌握JVM面试专题和答案Offer拿到手软(附学习路线图)

No interactive operation of shell script
随机推荐
【C语言笔记分享】自定义类型:结构体,枚举,联合(建议收藏)
easyui tree
从非儿童网站看基线安全到底有多重要
Can you read the story?
Vscode plug-in automatically adds comments
Solve package is not available (for R ve [package 'xxx' is not available (for R version x.y.z) "warning?]
新人如何入门学习软件测试
谈谈“发布后问题”的度量
软件测试行业真的饱和了吗?
医学公共数据库
Using OCR to reverse recognize text content in airtest
软件测试前景不行了吗?进入寒冬期了吗?
软件测试培训需要多久?
数据库优化——深入理解Mysql索引底层数据结构与算法
MySQL的触发器
clang format
Embedded development learning path
软件测试干货
Strsplit() function
软件测试零基础入门好学吗?