Thanks for the reply, I solved the performance issue by removing minpoolsize config (it was set to 1). however after reading all the doc I couldn’t find an answer for my 2nd question :
- Is it possible to execute mongo operations after pushing a mongo client to the pool ? (as it shown below) :
mongoc_client_t *client;
client = mongoc_client_pool_pop (pool);
collection = mongoc_client_get_collection(client, "database", "collection");
mongoc_client_pool_push (pool, client);
// Use collection to insert, get or update documents after pushing the mongo client