sebastianconcept / Mapless

Schema-less persistence for Smalltalk with support for multiple backends.
http://sebastianconcept.github.io/Mapless/
MIT License
35 stars 11 forks source link

Remove isPrimary check on client return #120

Closed sebastianconcept closed 1 year ago

sebastianconcept commented 1 year ago

When the pool gets a client returned, sending an isPrimary message resulted to be a check that isn't "cheap". As this could affect capacity, this check will be removed. The health-checking mechanism proved to help the resolver to have the rights clients after MongoDB replica set topology changes in the next check anyway.

sebastianconcept commented 1 year ago

Done here https://github.com/sebastianconcept/Mapless/pull/121