Project:
View Revisions: Issue #30308 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0030308: Use get instead of refresh when saving or updating a record | ||
Revision | 2015-07-03 10:24 by caristu | ||
Description | When saving or updating a record trough the UI, currently the OBDal.getInstance().getSession().refresh method is being executed in order to retrieve the objects from the db as they can have changed because of the execution of business event handler or database triggers. Using OBDal.getInstance().get() performs better than OBDal.getInstance().getSession().refresh because of the query being executed currently in each case. So this refresh() call should be replaced with get() when saving or updating a record. |
||
Revision | 2015-07-03 10:24 by caristu | ||
Description | When saving or updating a record trough the UI, currently the OBDal.getInstance().getSession().refresh method is being executed in order to retrieve the objects from the db as they can have changed because of the execution of business event handler or database triggers. Using OBDal.getInstance().get() performs better than OBDal.getInstance().getSession().refresh because of the query being executed currently in each case. So, that refresh call should be replaced with get when saving or updating a record. |
Copyright © 2000 - 2009 MantisBT Group |