-
Type:
Story
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Web
-
None
When connecting the driver runs "ping" and compass runs a separate "ping".
- Compass ping: https://github.com/mongodb-js/compass/blob/ef67e94d2fe116604e0cd8e7134f73664ca24c85/packages/data-service/src/connect-mongo-client.ts#L255
- Devtools-Connect: https://github.com/mongodb-js/devtools-shared/blob/e3c7a8441131a2447858b2ebf13884042337f68b/packages/devtools-connect/src/connect.ts#L117
- Driver Ping: https://github.com/mongodb/node-mongodb-native/blob/b6c0db2f6301874cccc423e4adb090ad9d07c460/src/sdam/topology.ts#L474
Neither of these commands should be run we should start using the client with the first command that results in meaning for operation of compass to lower RTTs.
If autoEncryption is enabled we run a `buildInfo` to check for enterprise, that is inside devtools-connect, in other scenarios the first command isn't run until the client is given back to compass's data-service.
Acceptance Criteria
- Avoid running any pings on compass-web startup
- The first command run should have a useful result
- related to
-
NODE-4192 Make operations call MongoClient.connect automatically
-
- Closed
-