We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9de71 commit cdb1a65Copy full SHA for cdb1a65
201906/20190608_01.md
@@ -196,6 +196,8 @@ Minimum number of concurrent open transactions to require before performing the
196
4、如果有RPO=0的要求,建议不要关闭synchronous_commit。
197
198
如果对RPO的要求大于或等于30毫秒,可以关闭synchronous_commit来提高写性能(机械盘效果立竿见影,SSD亦有提高)。
199
+
200
+又或者说如果你的环境已经使用了异步流复制的HA或者其他环节有丢失数据的风险时,关闭synchronous_commit引入的操作系统崩溃时30ms WAL事务日志丢失可能性已不足为虑。
201
202
PS: 关闭synchronous_commit 并不会导致数据库状态不一致(事务原子性、事务先后都没有问题) ,所以状态不一致的没有这类风险。
203
0 commit comments