当前位置:网站首页>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
边栏推荐
- [technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology
- SQL server calculates the daily average and annual average of the whole province
- 剑指 Offer II 031. 最近最少使用缓存
- AR增强现实可应用的场景
- Which brand of sports headset is better? Bluetooth headset suitable for sports
- What kind of good and cost-effective Bluetooth sports headset to buy
- Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
- Kibana操控ES
- Questions d'entrevue
- leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)
猜你喜欢
![[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)](/img/39/42b1726e5f446f126a42d7ac673dce.png)
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)

leetcode2310. The one digit number is the sum of integers of K (medium, weekly)

LFM signal denoising, time-frequency analysis, filtering

How to turn off debug information in rtl8189fs

Vsocde has cli every time it is opened js
![[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology](/img/2d/299fa5c76416f74bd1a693c433dd09.png)
[technology development -21]: rapid overview of the application and development of network and communication technology -1- Internet Network Technology

The wave of layoffs in big factories continues, but I, who was born in both non undergraduate schools, turned against the wind and entered Alibaba

How to run oddish successfully from 0?

【liuyubobobo-玩转Leetcode算法面试】【00】课程概述

What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
随机推荐
leetcode2305. 公平分发饼干(中等,周赛,状压dp)
How to use redis ordered collection
剑指 Offer 31. 栈的压入、弹出序列
STM32F103 - two circuit PWM control motor
Deep learning: a solution to over fitting in deep neural networks
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
leetcode373. Find and minimum k-pair numbers (medium)
[learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
Additional: information desensitization;
leetcode2309. The best English letters with both upper and lower case (simple, weekly)
CSDN article underlined, font color changed, picture centered, 1 second to understand
trading
【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
软件开发生命周期 --瀑布模型
LFM signal denoising, time-frequency analysis, filtering
Es interview questions
Which kind of sports headphones is easier to use? The most recommended sports headphones
leetcode2312. 卖木头块(困难,周赛)
Questions d'entrevue
Infix expression to suffix expression (computer) code