Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.60.0
-
None
-
None
Description
Currently Session.save() works under the assumption that there are changes to be committed. That means there is some static runtime overhead, even if no changes are to be committed.
For that reason it's common to use this pattern to avoid this operation if nothing is to be saved.
if (session.hasPendingChanges()) { session.save(); }
But it would be really great if Oak would do this check internally, and avoid the overhead if there's nothing to save at all.