bookmark

java - Hibernate read only entities says saves memory by deleting database snapshots - Stack Overflow


Description

When Hibernate loads an object into a Session it creates a state snapshot of the current database state of the object, so that it can perform dirty checking against the snapshot.

As a read only object will never be modified, this snapshot is not needed and memory can be saved.

Preview

Tags

Users

  • @jil

Comments and Reviews