当前位置:网站首页>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
边栏推荐
- AMQP协议详解
- ionic 中遇到的一些东西
- Ant financial mobile testing tool solopi monitoring part of the source code guide.. Continuous update
- 转行学习软件测试有前途吗?
- 软件测试培训机构可靠吗?
- Jdwp unauthorized rapid utilization
- PCA 报错Error in eigen(crossprod(t(X), t(X)), symmetric = TRUE) : ‘x‘里有无穷值或遗漏值
- 【C语言笔记分享】字符函数和字符串函数(建议收藏)
- 想学习软件测试,零基础去哪里学呢?
- The browser has no Internet, and wechat can connect to the Internet (solution)
猜你喜欢
随机推荐
Hgu95av2. Online installation failed
零基础转行软件测试到底能不能行?
Talk about what you know about publishing online (2)
C language to achieve minesweeping games
ng-repeat在迭代最后一个元素时执行一个方法
Wild pointer recurrence
R语言画图/绘图/作图2
Using OCR to reverse recognize text content in airtest
C # basic interview questions (with answers)
蚂蚁金服移动测试工具solopi监控部分源码导读。。持续更新
【C语言进阶】——剖析入微数据在内存中的存储 【下】(浮点数存储)
[untitled]
解决Package is not available (for R ve【PACKAGE ‘XXX’ IS NOT AVAILABLE (FOR R VERSION X.Y.Z)” WARNING?】
easyui tree
Ggplot2 map
@RequestParam使用
Talking about test platform -- Discussion on construction mode
mysql实现按照自定义(指定顺序)排序
AMQP协议详解
ionic中的$ionicPopup连续两个调用alert时需要注意的事项









