Skip to content

Commit

Permalink
pushing docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Sep 16, 2023
1 parent 605f902 commit 543901d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion morphia/3.0/updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ <h3 id="_merges"><a class="anchor" href="#_merges"></a>Merges</h3>
<div class="paragraph">
<p>This is useful but limited.
What happens to any null fields and empty Lists?
Using <code>MapperOptions</code>, Morphia can be configured to not persist those fields such that they never end up in the database.
Using <code>MorphiaConfig</code>, Morphia can be configured to not persist those fields such that they never end up in the database.
In the above scenario, however, Morphia is only issuing a <code>$set</code> for the fields that should be persisted which leaves potentially outdated information in the database. (e.g., say a process removes the final item from a List in memory. <code>merge()</code> would actually <strong>leave</strong> that last item in the database because an update would not be issued for that empty List.) In 2.2, a new value is added to the optional <a href="javadoc/dev/morphia/InsertOneOptions.html">InsertOneOptions</a> to account for this.</p>
</div>
<div class="paragraph">
Expand Down

0 comments on commit 543901d

Please sign in to comment.