Skip to content

Commit 32f2542

Browse files
committed
Refactored some module to make them faster. Tt turned out that the use of :gen_statem resulted in bad performance, especially when you have to create many sessions.
1 parent ad54a8f commit 32f2542

File tree

7 files changed

+226
-236
lines changed

7 files changed

+226
-236
lines changed

lib/mongo/mongo_db_connection.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ defmodule Mongo.MongoDBConnection do
2828
connect_timeout: opts[:connect_timeout] || @timeout,
2929
database: Keyword.fetch!(opts, :database),
3030
write_concern: Map.new(write_concern),
31-
wire_version: nil,
32-
limits: nil,
31+
wire_version: nil, # todo move to topolgy and topology-description
32+
limits: nil, # todo move to topolgy and topology-description
3333
auth_mechanism: opts[:auth_mechanism] || nil,
3434
connection_type: Keyword.fetch!(opts, :connection_type),
3535
topology_pid: Keyword.fetch!(opts, :topology_pid),

0 commit comments

Comments
 (0)