3 ms·
What does it break? This new default makes it behave as most users of it would have expected it too when writing their code. IMHO the users who require un-safe
by ukd1 14y ago
What does it break? This new default makes it behave as most users of it would have expected it too when writing their code. IMHO the users who require un-safe writes will be the ones to read this kind of news and notice and could alter it, if needed. I don't think this is true vice versa.
- jamesaguilar 14y agoIf people are relying on the current speed, changing the default to safe would break them.
- mathias_10gen 14y agoOne case that could break by this change is if you relied on insert's old default of being a no-op if an object with the same _id already exists. This can be used to efficiently insert a default document without race conditions. Example at https://github.com/RedBeard0531/Mongurl/blob/master/mongurl.py#L51-57 https://github.com/RedBeard0531/Mongurl/blob/master/mongurl.... That said, it makes sense for this to be opt-in behavior rather than the default.