当前位置:网站首页>Yyds dry goods inventory accelerating vacuum in PG
Yyds dry goods inventory accelerating vacuum in PG
2022-07-02 02:30:00 【YZS column】
Speed up PG in vacuum
once VACUUM After process initiation ,VACUUM Can a big watch speed up ?
In short , once vacuum start-up , It is impossible to affect its speed . The main reason is , Most of the resources of this process are used for disk operation , These operations are not too fast . Besides , Still leave enough resources for regular database processes . Consider this , Changing some system parameters can allow separate VACUUM The working process accelerates its performance .
So , The configuration is quite “ radical ” Configuration of . such VACUUM Processes can be initiated more frequently , But with every start , These processes require less operation , Thus reducing the overall working time .
Here is AUTOVACUUM Parameter configuration :
1) Configure the right autovacumm_max_workers( The default value is 3, This value is low , therefore 10 Right or left )
2) increase AUTOVACUUM Check the frequency of initiation (autovacuum_naptime=1s, The default value is 1 minute )
3) Reduce auto trigger AUTOVACUUM Threshold of initiation .(autovacuum_vacuum_threshold=50
,autovacuum_analyze_threshold=10,autovacuum_vacuum_scale_factor=0.05,
autovacuum_analyze_scale_factor=0.05)
4) Lower trigger FREEZE The threshold of (autovacuum_freeze_min_age=5000000, vacuum_freeze_table_age=15000000)
autovacuum_max_workers It takes effect after the service is restarted , Other parameters are not required . Using the above parameters will increase AUTOVACUUM Frequency of accessing the table , At the same time, the work is broken down into smaller parts . thus VACUUM Will need to reduce the workload share , And in turn speed up the execution of the overall order .
in addition , One is more “ radical ” The parameter value of can be used for VACUUM command (vacuum_cost_delay=0, vacuum_cost_page_hit=0, vacuum_cost_page_miss=1, vacuum_cost_page_dirty=10, vacuum_cost_limit=100). This allows VACUUM Use more resources , At the expense of other service processes , And reduces the pause limit between service workloads .
original text
https://dataegret.com/2022/01/accelerating-vacuum-in-postgres/
https://clm141.xyz/hash/8fe5aadd6030c00f51a73abacfcba15be9ff7233.html
边栏推荐
- 【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
- 【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
- 【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
- Post infiltration flow encryption
- essay structure
- Webgpu (I): basic concepts
- leetcode2305. Fair distribution of biscuits (medium, weekly, shaped pressure DP)
- How to turn off debug information in rtl8189fs
- flutter 中间一个元素,最右边一个元素
- 2022低压电工考试题模拟考试题库模拟考试平台操作
猜你喜欢

Leetcode face T10 (1-9) array, ByteDance interview sharing

JVM面试篇

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

A quick understanding of analog electricity

Webgpu (I): basic concepts

Cesium dynamic diffusion point effect

Which brand of sports headset is better? Bluetooth headset suitable for sports

Opengauss database backup and recovery guide
![[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)](/img/8e/a86a9724251718d98ce172a6a96e53.png)
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)

【毕业季】研究生学长分享怎样让本科更有意义
随机推荐
Email picture attachment
Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
CSDN insertion directory in 1 second
【无标题】
Open that kind of construction document
* and & symbols in C language
STM32F103——两路PWM控制电机
超图iServer rest服务之feature查询
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
Webgpu (I): basic concepts
[reading notes] programmer training manual - practical learning is the most effective (project driven)
【做题打卡】集成每日5题分享(第二期)
Face++ realizes face detection in the way of flow
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
LFM signal denoising, time-frequency analysis, filtering
Logging only errors to the console Set system property ‘log4j2. debug‘ to sh
leetcode2312. Selling wood blocks (difficult, weekly race)
[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
pytest 测试框架
CVPR 2022 | 大连理工提出自校准照明框架,用于现实场景的微光图像增强