← Back to context Comment by mbb70 3 years ago I've done the same with MongoDB with findOneAndModify, simple and solid 2 comments mbb70 Reply ttfkam 3 years ago I think you mean findOneAndUpdate, and while simple, I wouldn't call it solid.https://stackoverflow.com/a/76821755 dminor 3 years ago Agenda uses this, and we found the hard way on mongo 4 that it can lead to mongo spinning the CPU at 100% if it gets too many at once. No idea if they've fixed it in later versions.
ttfkam 3 years ago I think you mean findOneAndUpdate, and while simple, I wouldn't call it solid.https://stackoverflow.com/a/76821755
dminor 3 years ago Agenda uses this, and we found the hard way on mongo 4 that it can lead to mongo spinning the CPU at 100% if it gets too many at once. No idea if they've fixed it in later versions.
I think you mean findOneAndUpdate, and while simple, I wouldn't call it solid.
https://stackoverflow.com/a/76821755
Agenda uses this, and we found the hard way on mongo 4 that it can lead to mongo spinning the CPU at 100% if it gets too many at once. No idea if they've fixed it in later versions.