Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020733
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajorhave not tried2012-06-12 12:452012-06-27 05:29
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version3.0MP13
StatusclosedFix in branchFixed in SCM revisionddef3520f532
ProjectionnoneETAnoneTarget Version3.0MP13
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020733: Json serialization: always the identifier properties of associated entities are serialized also, resulting in extra queries

DescriptionWhen doing json serialization the identifiers of associated objects are also serialized, for this the referenced object is read using a separate query.
Steps To ReproduceRead 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.
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0020859 closedalostale Alert management window does not show any information 

-  Notes
(0049971)
hgbot (developer)
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 (developer)
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 (manager)
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 (developer)
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 (developer)
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

- Issue History
Date Modified Username Field Change
2012-06-12 12:45 mtaal New Issue
2012-06-12 12:45 mtaal Assigned To => mtaal
2012-06-12 12:45 mtaal Modules => Core
2012-06-12 15:59 alostale Tag Attached: Performance
2012-06-12 15:59 alostale Type defect => design defect
2012-06-21 12:03 hgbot Checkin
2012-06-21 12:03 hgbot Note Added: 0049971
2012-06-21 12:03 hgbot Status new => resolved
2012-06-21 12:03 hgbot Resolution open => fixed
2012-06-21 12:03 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ddef3520f532c1a44e73122526954f13e793c821 [^]
2012-06-21 12:03 hgbot Checkin
2012-06-21 12:03 hgbot Note Added: 0049976
2012-06-26 15:40 mtaal Note Added: 0050093
2012-06-26 15:40 mtaal Status resolved => closed
2012-06-26 15:40 mtaal Fixed in Version => 3.0MP13
2012-06-26 16:09 alostale Relationship added related to 0020859
2012-06-27 05:28 hudsonbot Checkin
2012-06-27 05:28 hudsonbot Note Added: 0050142
2012-06-27 05:29 hudsonbot Checkin
2012-06-27 05:29 hudsonbot Note Added: 0050146


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker