Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by ncphil on Saturday May 29, 2021 @12:38PM
(#27326381)
... back then, lots of projects were saying referential integrity was an operations problem. That was rubbish, and they knew it. Same for multimaster replication. Fortunately we're past that now. But I like MongoDB for its document model, not its service architecture (although it definitely gets the job done). This Monty is an interesting project, and I'm looking forward to future developments.
[ Parent
| on HN ]
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by slver on Saturday May 29, 2021 @12:53PM
(#27326517)
Its document model is vanilla BSON on disk.
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by avinassh on Saturday May 29, 2021 @01:45PM
(#27326914)
It possible to update the BSON without loading the entire document in the memory? I am curious how Mongo does updates.
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by slver on Saturday May 29, 2021 @11:11PM
(#27330290)
It’s a memory mapped file. If you update a bool or number value it’ll rewrite just that. If you update anything else it’ll often have to rewrite the entire document due to variable size.
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by MaBeuLux88 on Wednesday June 09, 2021 @06:56PM
(#27454419)
That was true with MMAPv1. It's not since March 2015, when WiredTiger was introduced with MongoDB 3.0.
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by the-dude on Sunday May 30, 2021 @05:11AM
(#27331787)
I assume when you say just that, it will write an entire page.
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by slver on Sunday May 30, 2021 @02:41PM
(#27335450)
In practice yeah I guess.
But rewriting the document is more extensive, it might even have to be moved (because Mongo allocates certain number of bytes for it, and it might outgrow that).
Re:Show HN: Monty, Mongo tinified. MongoDB implemented in Py...
by davidlatwe on Saturday May 29, 2021 @12:42PM
(#27326432)
Thanks for the kind words !