Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Helium
-
None
-
None
-
Operating System: All
Platform: All
-
2260
Description
When a client creates a transaction via one of the DOMDataBroker#new*Transaction, the broker automatically creates a corresponding DOMStore*Transaction instance in each logical data store (config and operational) although both may not be needed if the client doesn't actually perform an operation (read/put/merge/delete) on a logical data store.
This creates unnecessary overhead for the transaction instance and the corresponding (essentially no-op) cohort on submit, particularly for the clustered data store. We can avoid this unnecessary overhead by lazily allocating the DOMStore*Transaction instances for a logical data store when and if the first operation is actually performed on that data store.