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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033703
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2016-08-12 17:002016-08-24 15:28
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revisionb05271bc5119
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033703: Accidental double query in View generation

DescriptionView generation (i.e. first open of Sales Order window) trigger double query by calling .list() twice in DatasourceServiceProvider:

- if (!qTable.list().isEmpty()) {
- Table table = qTable.list().get(0);
Steps To Reproduce-
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0033767 closedplatform Add code to auto-detect 'accidental double query' on same OBQuery or OBCriteria object 
related to design defect 0036898 newTriage Finance Performance issues when using DAL 

-  Notes
(0089301)
hgbot (developer)
2016-08-23 14:32

Repository: erp/devel/pi
Changeset: b05271bc5119125620ebed83117b57a7c42729af
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri Aug 12 17:02:22 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b05271bc5119125620ebed83117b57a7c42729af [^]

Fixed 33703. Avoid double query by using .uniqueResult instead of twice .list()

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServiceProvider.java
---
(0089350)
caristu (developer)
2016-08-24 15:28

Code review + testing OK: now using just one query to retrieve the table using its name on getDataSourceFromTableName() method

- Issue History
Date Modified Username Field Change
2016-08-12 17:00 shuehner New Issue
2016-08-12 17:00 shuehner Assigned To => shuehner
2016-08-12 17:00 shuehner Modules => Core
2016-08-12 17:00 shuehner Triggers an Emergency Pack => No
2016-08-12 17:01 shuehner Tag Attached: Performance
2016-08-23 14:32 hgbot Checkin
2016-08-23 14:32 hgbot Note Added: 0089301
2016-08-23 14:32 hgbot Status new => resolved
2016-08-23 14:32 hgbot Resolution open => fixed
2016-08-23 14:32 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b05271bc5119125620ebed83117b57a7c42729af [^]
2016-08-23 14:33 shuehner Review Assigned To => caristu
2016-08-23 14:44 shuehner Relationship added related to 0033767
2016-08-24 15:28 caristu Note Added: 0089350
2016-08-24 15:28 caristu Status resolved => closed
2016-08-24 15:28 caristu Fixed in Version => 3.0PR16Q4
2017-09-19 18:48 markmm82 Relationship added related to 0036898


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker