[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5856) Update only saves back changes

Darren S. Eyers (JIRA) noreply at atlassian.com
Wed Jan 19 14:46:05 EST 2011


Update only saves back changes
------------------------------

                 Key: HHH-5856
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5856
             Project: Hibernate Core
          Issue Type: New Feature
          Components: core
         Environment: N/A
            Reporter: Darren S. Eyers


When a record is saved back to the database all the fields are sent back to the database.  If one was going to do SQL instead they would just update the columns that have changed.  This means at the moment all columns are updated/sent back to the DB which affects performance in both the DB and network.

Wondering if there is any way possible to record which fields have been changed.  Thinking maybe something could be done with AOP, but looks like extra variables/parameters would be needed.

On save there could be an extra version of save which has a boolean or list of fields that have changed and then only update those fields.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list