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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0004155
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] B. User interfaceminoralways2008-06-24 17:042008-10-08 18:41
Reporteruser71View Statuspublic 
Assigned Togorka_gil 
PriorityurgentResolutionfixedFixed in Version2.35MP7
StatusclosedFix in branch2.3xFixed in SCM revision5477
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerOBPS
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0004155: Grid view results in very large number of db queries

DescriptionOS: Linux - Suse 10.2 (test/prod) & Windows XP (dev)
DB: Postgres 8.1.5 (test/prod) & 8.2.4 (dev)
Release: 2.34
Browser: Firefox 2.0.0.6, IE 7

Actually noticed this one in an installation on an an old server. When viewing the Purchase Order grid each datagrid ajax request would take about 5 seconds. This often caused the grid not to display the data (I assume due to an ajax timeout).

The slowness is caused by the construction of the table sql. In the Purchase order case the structure comes back quickly then when creating the sql it goes off the db again many many times.

I was able to improve it significantly by only fetching the displayed columns/fields in the initial structure query. (which then cuts down on the the number of subsequent db requests).

After applying the attached patch the request time went down to less than a second. There is still lots of room for optimization but this helps a lot.

TagsOBN
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0002077 closedalostale Grid view results in very large number of db queries 

-  Notes
(0008060)
svnbot (viewer)
2008-06-30 11:47

Repository: openbravo
Revision: 5477
Author: gorka_gil
Date: 2008-06-30 11:47:53 +0200 (Mon, 30 Jun 2008)

fixed bug 4155 Grid view results in very large number of db queries

---
U branches/r2.3x/src/org/openbravo/erpCommon/utility/TableSQLData.java
U branches/r2.3x/src/org/openbravo/erpCommon/utility/TableSQLQuery_data.xsql
---

https://dev.openbravo.com/websvn/openbravo/?rev=5477&sc=1 [^]
(0009458)
psarobe (viewer)
2008-10-08 18:41

Impossible to test with that information. Talking with GGI, he cannot tell what to test to ensure it is fixed. Just code review

- Issue History
Date Modified Username Field Change
2008-06-24 17:04 cromero New Issue
2008-06-24 17:04 cromero Assigned To => alostale
2008-06-24 17:04 cromero Status new => scheduled
2008-06-24 17:04 cromero Tag Attached: OBN
2008-06-24 17:04 cromero OBNetwork customer => Yes
2008-06-24 17:04 cromero Priority normal => urgent
2008-06-24 17:04 cromero Description Updated
2008-06-24 18:04 cromero Status scheduled => feedback
2008-06-27 12:22 cromero Status feedback => scheduled
2008-06-27 12:22 cromero Assigned To alostale => gorka_gil
2008-06-30 11:47 svnbot Checkin
2008-06-30 11:47 svnbot Note Added: 0008060
2008-06-30 11:47 svnbot Status scheduled => resolved
2008-06-30 11:47 svnbot Resolution open => fixed
2008-06-30 11:47 svnbot svn_revision => 5477
2008-10-08 18:41 psarobe Regression testing => No
2008-10-08 18:41 psarobe Status resolved => closed
2008-10-08 18:41 psarobe Note Added: 0009458


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker