当前位置:网站首页>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
边栏推荐
猜你喜欢

蚂蚁金服移动测试工具solopi监控部分源码导读。。持续更新

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

医学公共数据库

In depth sharing of Ali (ant financial) technical interview process, with preliminary preparation and learning direction

Talk about what you know about publishing online (I)

Vscode uses eslint prettier to format code automatically

Arya-专业web自动化测试平台

Firewall protective wall

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

Ggplot2 map
随机推荐
The easy-to-use special app testing tool itest4.7.0 has been released
Wild pointer recurrence
The browser has no Internet, and wechat can connect to the Internet (solution)
关于非递归和递归分别实现求第n个斐波那契数
地图R语言
Strsplit() function
strsplit()函数
Precautions for $ionicpopup in ionic when calling alert for two consecutive times
MySQL implements sorting according to custom (specified order)
Talk about what you know about publishing online (2)
漫谈测试平台—建设模式探讨
软件测试前景如何?该如何进行学习呢?
AMQP protocol details
About standard IO buffers
Kali installation configuration of penetration test killer
软件测试零基础入门好学吗?
完全未接触过软件测试的人,培训两个月就可以上岗,真的现实吗?
FreeRTOS learning notes
JVM性能调优
hgu95av2.在线安装失败