فهرست منبع

perf: reduce the mongodb topology poolsize

Shawn 1 سال پیش
والد
کامیت
db1ae2f4d5
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 1
      apps/emqx_mongodb/src/emqx_mongodb.app.src
  2. 2 1
      apps/emqx_mongodb/src/emqx_mongodb.erl

+ 1 - 1
apps/emqx_mongodb/src/emqx_mongodb.app.src

@@ -1,6 +1,6 @@
 {application, emqx_mongodb, [
     {description, "EMQX MongoDB Connector"},
-    {vsn, "0.1.7"},
+    {vsn, "0.1.8"},
     {registered, []},
     {applications, [
         kernel,

+ 2 - 1
apps/emqx_mongodb/src/emqx_mongodb.erl

@@ -133,7 +133,8 @@ fields(topology) ->
                 pos_integer(),
                 #{
                     importance => ?IMPORTANCE_HIDDEN,
-                    default => 10
+                    %% In most cases we don't need the topology pool as we use ecpool
+                    default => 1
                 }
             )},
         {max_overflow, fun max_overflow/1},