Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020733Openbravo ERPA. Platformpublic2012-06-12 12:452012-06-27 05:29
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
3.0MP133.0MP13 
Core
No
0020733: Json serialization: always the identifier properties of associated entities are serialized also, resulting in extra queries
When doing json serialization the identifiers of associated objects are also serialized, for this the referenced object is read using a separate query.
Read and json serialize for example a sales order, the business partner is read in a separate query, improve performance by left joining all associations in case of json serialization.
Performance
related to defect 0020859 closed alostale Alert management window does not show any information 
Issue History
2012-06-12 12:45mtaalNew Issue
2012-06-12 12:45mtaalAssigned To => mtaal
2012-06-12 12:45mtaalModules => Core
2012-06-12 15:59alostaleTag Attached: Performance
2012-06-12 15:59alostaleTypedefect => design defect
2012-06-21 12:03hgbotCheckin
2012-06-21 12:03hgbotNote Added: 0049971
2012-06-21 12:03hgbotStatusnew => resolved
2012-06-21 12:03hgbotResolutionopen => fixed
2012-06-21 12:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ddef3520f532c1a44e73122526954f13e793c821 [^]
2012-06-21 12:03hgbotCheckin
2012-06-21 12:03hgbotNote Added: 0049976
2012-06-26 15:40mtaalNote Added: 0050093
2012-06-26 15:40mtaalStatusresolved => closed
2012-06-26 15:40mtaalFixed in Version => 3.0MP13
2012-06-26 16:09alostaleRelationship addedrelated to 0020859
2012-06-27 05:28hudsonbotCheckin
2012-06-27 05:28hudsonbotNote Added: 0050142
2012-06-27 05:29hudsonbotCheckin
2012-06-27 05:29hudsonbotNote Added: 0050146

Notes
(0049971)
hgbot   
2012-06-21 12:03   
Repository: erp/devel/pi
Changeset: ddef3520f532c1a44e73122526954f13e793c821
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Jun 13 11:49:16 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ddef3520f532c1a44e73122526954f13e793c821 [^]

Fixes issue 20733: Json serialization: always the identifier properties of associated entities are serialized also, resulting in
Join the associated objects in the query so that the identifier can be read without extra queries

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataEntityQueryService.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M src-test/org/openbravo/test/dal/IssuesTest.java
---
(0049976)
hgbot   
2012-06-21 12:03   
Repository: erp/devel/pi
Changeset: e05b39aac3571f79c38cae8b62441863e5561386
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Jun 14 13:33:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e05b39aac3571f79c38cae8b62441863e5561386 [^]

Related to issue 20733: Json serialization: always the identifier properties of associated entities are serialized also, resulting in extra queries
Solve alias issue when filtering in grid

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0050093)
mtaal   
2012-06-26 15:40   
The functionality is disabled for now as it results in a less performance for queries on large databases
(0050142)
hudsonbot   
2012-06-27 05:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf3a7135839f [^]

Maturity status: Test
(0050146)
hudsonbot   
2012-06-27 05:29   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf3a7135839f [^]

Maturity status: Test