Can Botie Save a Change Without Erasing Somebody Else’s?

A technician saves an old copy after another editor has changed the pump. Keep unrelated fields intact and bind the write to the version that was actually reviewed.

14 sections · 4 questions · 1 coding challenge

1 / 14

Updating an Object Required More Than Replacing Its Copy

BOTIE

MongoDB’s early interface included field-level update operators as well as document replacement. That distinction let a caller change a specified part of an object without resending every field. It addressed the practical difference between altering a value and replacing an entire stored record.

Current MongoDB documentation describes atomic single-document writes and recommends including an expected current value in a write filter when concurrent updates must be coordinated. Our version check is a teaching example of that condition. The Python function exposes the rule but does not implement concurrent database access.

Sources for this history