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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021072
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Retail Modules] Web POSminoralways2012-07-13 13:572015-01-20 14:25
ReporteriperdomoView Statuspublic 
Assigned Toguilleaer 
PrioritylowResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava versionOpenJDK 1.6.0_24
OS Version3.4.4-1-ARCHDatabase version9.1.4Ant version1.8.2
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0021072: Order cache stores the serialized version of the product image, resulting in a waste of space

DescriptionWhen you add a ticket, on every ticket modification action, we're storing the ticket in a local client database. This ticket gets serialized in a JSON format.

If you add images (thumbnails) to your products, the serialized version of the ticket contains the base64 version of the image; resulting in a waste of space.
Steps To Reproduce* Disable the removal of the ticket after sending the ticket to the server (see OB.UTIL.processOrders)
* Add an image to 1 product (in Openbravo)
* Create a ticket using the product configured before
* Check the resulting record in the database
---
Some numbers:
1 order with 10 lines ~ 8KB
1 order with 10 lines (with image) ~ 64KB
Proposed SolutionRemove the image when serializing the ticket object before saving it in the client database
TagsNo tags attached.
Attached Files? file icon order.json [^] (12,900 bytes) 2012-07-14 12:14

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0050575)
iperdomo (reporter)
2012-07-14 12:14

We can improve the way we store the tickets. It's a JSON serialized version of the whole object, but it includes too much redundant information.

8KB for an order with 10 lines is too much. See the attached file (order.json)

- Issue History
Date Modified Username Field Change
2012-07-13 13:57 iperdomo New Issue
2012-07-13 13:57 iperdomo Assigned To => alostale
2012-07-13 14:01 iperdomo Assigned To alostale => AugustoMauch
2012-07-14 12:14 iperdomo Note Added: 0050575
2012-07-14 12:14 iperdomo File Added: order.json
2012-12-20 17:55 iciordia Assigned To AugustoMauch => guilleaer
2013-02-06 10:42 migueldejuana Target Version => RMP20
2013-02-28 08:13 marvintm Target Version RMP20 =>
2013-08-08 03:48 eintelau Issue Monitored: eintelau
2015-01-20 14:25 mtaal Triggers an Emergency Pack => No
2015-01-20 14:25 mtaal Priority urgent => low
2015-01-20 14:25 mtaal Severity major => minor


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker