Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024772Openbravo ERPA. Platformpublic2013-09-14 10:442013-11-08 12:01
shuehner 
AugustoMauch 
normalminorhave not tried
closedinvalid 
5
 
 
shuehner
Core
No
0024772: On saving of a new header in form view a unneeded request to visible child is done.
When saving a new record in form view after the save a datasource request for the currently visible child is done.

However as we are saving a new record there cannot be any children as those are linked via the (unique) pk-value

So probably that request can be optimized away.

It needs to be checked if there are cases where there could be children which would be needed to be fetched.
Open Sales Order window
Press new in form
fill in BP and save
Observe that a datasource request is done to retrieve OrderLines
Performance
related to defect 0024773 closed guillermogil On saving of a new header in grid view a 2nd unneeded request to visible child is done. 
Issue History
2013-09-14 10:44shuehnerNew Issue
2013-09-14 10:44shuehnerAssigned To => AugustoMauch
2013-09-14 10:44shuehnerModules => Core
2013-09-14 10:44shuehnerTriggers an Emergency Pack => No
2013-09-14 10:44shuehnerTag Attached: Performance
2013-09-14 10:46shuehnerIssue cloned0024773
2013-09-14 10:46shuehnerRelationship addedrelated to 0024773
2013-11-08 12:01shuehnerReview Assigned To => shuehner
2013-11-08 12:01shuehnerNote Added: 0062058
2013-11-08 12:01shuehnerStatusnew => closed
2013-11-08 12:01shuehnerResolutionopen => invalid

Notes
(0062058)
shuehner   
2013-11-08 12:01   
That request can be needed. As on saving a record other records can be auto-created. Example crating a sales order line might/will autocreate data in the child table sales order line tax.

So that one request needs to be happen to try to load such data.