Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0036601 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2017-08-04 10:04 | 2017-08-04 12:46 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | b74ed74f842a | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0036601: unneeded flush with no entities on every fetch | |||||||
Description | Whenever datasoruce data is fetched, a flush is performed just after clearing the session. This actually has no effect as it's guaranteed session to be empty, so there's nothing to flush. | |||||||
Steps To Reproduce | 1. Open Product window 2. Set OBDal class debug level to DEBUG 3. Click on Product's Refresh grid toolbar button -> check openbravo.log: 1f923ef8 690457 [http-bio-8080-exec-1] DEBUG org.openbravo.dal.service.OBDal - Dumping all entities in session 1f923ef8 690458 [http-bio-8080-exec-1] DEBUG org.openbravo.dal.service.OBDal - Flush of 0 entities and 0 collections took: 0 java.lang.Throwable at org.openbravo.dal.service.OBDal.flush(OBDal.java:268) at org.openbravo.service.json.DefaultJsonDataService.doPostAction(DefaultJsonDataService.java:1138) at org.openbravo.service.json.DefaultJsonDataService.fetch(DefaultJsonDataService.java:311) | |||||||
Proposed Solution | Despite the performance impact is small, being unneeded it should be prevented. | |||||||
Tags | Performance | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0098388) alostale (manager) 2017-08-04 10:34 |
https://code.openbravo.com/erp/devel/pi/rev/b74ed74f842a [^] changeset: 32535:b74ed74f842a tag: tip user: Asier Lostalé <asier.lostale@openbravo.com> date: Fri Aug 04 10:11:28 2017 +0200 files: modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java description: fixed 36601: unneeded flush with no entities on every fetch Fix includes: - Do not flush on fetch just after clearing session as it is noop - Being action an enum can be directly compared without need of getting its name |
(0098392) caristu (developer) 2017-08-04 12:46 |
Code reviewed + tested OK. |
Issue History | |||
Date Modified | Username | Field | Change |
2017-08-04 10:04 | alostale | New Issue | |
2017-08-04 10:04 | alostale | Assigned To | => platform |
2017-08-04 10:04 | alostale | Modules | => Core |
2017-08-04 10:04 | alostale | Triggers an Emergency Pack | => No |
2017-08-04 10:04 | alostale | Review Assigned To | => caristu |
2017-08-04 10:04 | alostale | Tag Attached: Performance | |
2017-08-04 10:05 | alostale | Relationship added | related to 0026548 |
2017-08-04 10:08 | alostale | Assigned To | platform => alostale |
2017-08-04 10:30 | alostale | Status | new => scheduled |
2017-08-04 10:34 | alostale | Note Added: 0098388 | |
2017-08-04 10:34 | alostale | Status | scheduled => resolved |
2017-08-04 10:34 | alostale | Fixed in SCM revision | => https://code.openbravo.com/erp/devel/pi/rev/b74ed74f842a [^] |
2017-08-04 10:34 | alostale | Resolution | open => fixed |
2017-08-04 12:46 | caristu | Note Added: 0098392 | |
2017-08-04 12:46 | caristu | Status | resolved => closed |
2017-08-04 12:46 | caristu | Fixed in Version | => 3.0PR17Q4 |
2017-08-04 13:16 | shuehner | Relationship added | blocks 0036606 |
Copyright © 2000 - 2009 MantisBT Group |