Openbravo Issue Tracking System - Retail Modules
View Issue Details
0021783Retail ModulesWeb POSpublic2012-09-28 10:482012-10-31 10:55
iperdomo 
adrianromero 
urgentmajoralways
closedfixed 
303.5.4-1-ARCH
 
 
No
0021783: Remove from the JSON reponse the data not used in the Web POS client
When a developer defines a HQL like this one: "from Product" the ProcessHQLQuery uses the FULL entity resolving mode, this adds useless information in the resulting in a huge JSON response (client, organization, created, createdBy, updated, updatedBy)
See the amount of data transfered from the server to the client, e.g. ProductPrice
With 75K products, the amount of data is ~60MB, just sending the required information is ~14MB (see the attached patch)
Modify the ProcessHQLQuery and filter out the audit fields, client and organization
No tags attached.
diff ProductPrice.java.diff (1,885) 2012-09-28 10:48
https://issues.openbravo.com/file_download.php?file_id=5611&type=bug
Issue History
2012-09-28 10:48iperdomoNew Issue
2012-09-28 10:48iperdomoAssigned To => adrianromero
2012-09-28 10:48iperdomoFile Added: ProductPrice.java.diff
2012-10-03 17:48hgbotCheckin
2012-10-03 17:48hgbotNote Added: 0053021
2012-10-03 17:48hgbotStatusnew => resolved
2012-10-03 17:48hgbotResolutionopen => fixed
2012-10-03 17:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]
2012-10-16 17:18hgbotCheckin
2012-10-16 17:18hgbotNote Added: 0053382
2012-10-16 17:18hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]
2012-10-24 17:28adrianromeroNote Added: 0053655
2012-10-24 17:28adrianromeroStatusresolved => closed
2012-10-31 09:36hgbotCheckin
2012-10-31 09:36hgbotNote Added: 0053867
2012-10-31 09:36hgbotStatusclosed => resolved
2012-10-31 09:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-gal/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]
2012-10-31 10:55adrianromeroStatusresolved => closed

Notes
(0053021)
hgbot   
2012-10-03 17:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 33d9ea5564d39847988bdaf0b0bb97e035950d23
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Oct 03 17:47:36 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]

Fixes issue 0021783: Remove from the JSON reponse the data not used in the Web POS client

---
M src/org/openbravo/retail/posterminal/JSONRowConverter.java
---
(0053382)
hgbot   
2012-10-16 17:18   
Repository: erp/pmods/org.openbravo.retail.posterminal-discounts
Changeset: 33d9ea5564d39847988bdaf0b0bb97e035950d23
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Oct 03 17:47:36 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-discounts/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]

Fixes issue 0021783: Remove from the JSON reponse the data not used in the Web POS client

---
M src/org/openbravo/retail/posterminal/JSONRowConverter.java
---
(0053655)
adrianromero   
2012-10-24 17:28   
Closed for RMP16
(0053867)
hgbot   
2012-10-31 09:36   
Repository: erp/pmods/org.openbravo.retail.posterminal-gal
Changeset: 33d9ea5564d39847988bdaf0b0bb97e035950d23
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Oct 03 17:47:36 2012 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-gal/rev/33d9ea5564d39847988bdaf0b0bb97e035950d23 [^]

Fixes issue 0021783: Remove from the JSON reponse the data not used in the Web POS client

---
M src/org/openbravo/retail/posterminal/JSONRowConverter.java
---