当前位置:网站首页>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
边栏推荐
- Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
- Types of exhibition items available in the multimedia interactive exhibition hall
- What is the function of the headphone driver
- Software development life cycle -- waterfall model
- 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
- [liuyubobobo play with leetcode algorithm interview] [00] Course Overview
- A quick understanding of analog electricity
- golang---锁
- [question 008: what is UV in unity?]
- 超图iServer rest服务之feature查询
猜你喜欢

【OpenCV】-5种图像滤波的综合示例

Deployment practice and problem solving of dash application development environment based on jupyter Lab

leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)

No programming code technology! Four step easy flower store applet
![[pit] how to understand](/img/e9/f5315a03b6f3da07021f915bb18af8.jpg)
[pit] how to understand "parameter fishing"

Which brand of running headphones is good? How many professional running headphones are recommended

Vsocde has cli every time it is opened js

OpenCASCADE7.6编译

A quick understanding of digital electricity

leetcode2305. Fair distribution of biscuits (medium, weekly, shaped pressure DP)
随机推荐
【深度学习】infomap 人脸聚类 facecluster
trading
Comparative analysis of MVC, MVP and MVVM, source code analysis
Sword finger offer 31 Stack push in and pop-up sequence
Software development life cycle -- waterfall model
Set status bar color
Duplicate keys detected: ‘0‘. This may cause an update error. found in
OpenCASCADE7.6编译
【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
leetcode2310. The one digit number is the sum of integers of K (medium, weekly)
剑指 Offer 29. 顺时针打印矩阵
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
STM32F103 - two circuit PWM control motor
query词权重, 搜索词权重计算
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
Feature query of hypergraph iserver rest Service
剑指 Offer II 031. 最近最少使用缓存
设置状态栏颜色
【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
Calculation (computer) code of suffix expression