Answer the question
In order to leave comments, you need to log in
What is the best way to get rid of memory leaks in MongoDB?
Good day.
There are functions to add, overwrite and delete a user. They look something like this:
function addUser(db, user, collection) {
db.open(function(err, db) {
let users = db.collection(collection);
users.insert(user, function(err, result) {
db.close();
});
});
};
db.open()
an event handler is added. I solved this problem by adding the line db.s.topology.s.server._eventsCount = 1;
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question