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 d9da6f8 commit d066007Copy full SHA for d066007
202012/20201204_02.md
@@ -76,10 +76,10 @@ limit n; --- 每页行数
76
77
78
### 方法2, 用倒排.
79
-1、必须使用连接池, 单实例的连接总数不建议超过 cpu cores*3
80
-2、in 用union all代替
+1、必须使用连接池, 单实例的连接总数不建议超过 cpu cores\*3 , 因为PG是进程模型, 连接太多内耗会加大。 3倍可以发挥CPU极致性能。
+2、in 用union all代替 , 或者使用=发起多次请求。
81
3、使用 btree_gin
82
-4、is_deleted使用partial index
+4、is_deleted使用partial index 代替。 资源是否释放, 基本就2个值。
83
5、使用 gin fast update
84
6、开启 gin auto analyze
85
7、关闭 autovacuum delay
0 commit comments