Skip to content

Commit cdb1a65

Browse files
committed
new doc
1 parent 3f9de71 commit cdb1a65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

201906/20190608_01.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ Minimum number of concurrent open transactions to require before performing the
196196
4、如果有RPO=0的要求,建议不要关闭synchronous_commit。
197197

198198
如果对RPO的要求大于或等于30毫秒,可以关闭synchronous_commit来提高写性能(机械盘效果立竿见影,SSD亦有提高)。
199+
200+
又或者说如果你的环境已经使用了异步流复制的HA或者其他环节有丢失数据的风险时,关闭synchronous_commit引入的操作系统崩溃时30ms WAL事务日志丢失可能性已不足为虑。
199201

200202
PS: 关闭synchronous_commit 并不会导致数据库状态不一致(事务原子性、事务先后都没有问题) ,所以状态不一致的没有这类风险。
201203

0 commit comments

Comments
 (0)