Skip to content

Commit 1a3d862

Browse files
committed
improve
1 parent 9488c62 commit 1a3d862

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

202404/20240402_02.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ Discussion: https://postgr.es/m/CAD21AoAfOZvmfR0j8VmZorZjL7RhTiQdVttNuC4W-Shdc2a
237237
49 #endif /* TIDSTORE_H */
238238
```
239239

240+
总结:
241+
242+
append only表没有这个问题, 本身它也不需要垃圾回收.
243+
244+
这个问题仅仅会发生在频繁更新的表上, index 重复被扫描, 导致垃圾回收慢, 导致膨胀, 导致内存占用提高, 导致性能下降等一系列问题.
245+
246+
在升级到17之前, 可以考虑可以把频繁更新的超过8.9亿条记录表的垃圾回收触发值autovacuum_vacuum_scale_factor调低。如调到0.1(10%), 则可以大到17.8亿, autovacuum_work_mem 1GiB 足够容纳下该表的10%的dead tuple id.
247+
240248

241249
#### [期望 PostgreSQL|开源PolarDB 增加什么功能?](https://github.com/digoal/blog/issues/76 "269ac3d1c492e938c0191101c7238216")
242250

0 commit comments

Comments
 (0)