Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002077 | Openbravo ERP | B. User interface | public | 2007-10-11 10:08 | 2008-07-02 17:31 |
|
Reporter | user71 | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 2.40beta | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0002077: Grid view results in very large number of db queries |
Description |
OS: 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.
|
Steps To Reproduce | |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0004155 | | closed | gorka_gil | Grid view results in very large number of db queries |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2008-06-24 17:03 | cromero | Status | closed => new |
2008-06-24 17:03 | cromero | Resolution | fixed => open |
2008-06-24 17:03 | cromero | Fixed in Version | 2.40alpha-r2 => |
2008-06-24 17:04 | cromero | Status | new => scheduled |
2008-06-24 17:04 | cromero | Status | scheduled => resolved |
2008-06-24 17:04 | cromero | svn_revision | => 2261 |
2008-06-24 17:04 | cromero | Resolution | open => fixed |
2008-06-24 17:56 | cromero | Status | resolved => new |
2008-06-24 17:56 | cromero | Resolution | fixed => open |
2008-06-24 17:56 | cromero | Status | new => scheduled |
2008-06-24 17:57 | cromero | Status | scheduled => resolved |
2008-06-24 17:57 | cromero | Fixed in Version | => 2.40alpha-r2 |
2008-06-24 17:57 | cromero | Resolution | open => fixed |
2008-07-02 17:31 | plujan | Status | resolved => closed |
2008-07-02 17:31 | plujan | Fixed in Version | 2.40alpha-r2 => 2.40beta |
Notes |
|
(0005666)
|
user71
|
2005-06-01 00:00
(edited on: 2008-06-12 09:43) |
|
|
|
(0002345)
|
dbaz
|
2007-11-30 19:38
(edited on: 2008-06-12 09:22) |
|
Logged In: YES
user_id=1500873
Originator: NO
Thanks eintel!
When I solve my 2.3x critical bugs I will test it in order to include it on the 2.40!
Thanks again! |
|
|
(0002346)
|
villind
|
2008-01-24 10:49
(edited on: 2008-06-12 09:22) |
|
Logged In: YES
user_id=61737
Originator: NO
Hi,
I tried to apply this to the trunk and xsql file was successful, but java file failed. If you have time to bring this patch up to date with current trunk I can try to apply it to performance branch.
Ville |
|
|
(0002347)
|
user71
|
2008-01-24 11:17
(edited on: 2008-06-12 09:22) |
|
Logged In: YES
user_id=1737231
Originator: YES
Ville,
I'm off for a long weekend but I will update the patch next week
Ben |
|
|
(0002348)
|
dbaz
|
2008-01-24 11:32
(edited on: 2008-06-12 09:22) |
|
Logged In: YES
user_id=1500873
Originator: NO
One thing:
"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)."
Now, in 2.35MP1 the grid has been improved and always shows data. The lack of data in some grids with a lot of data was due to a failure in the ExecuteQuery.java. This class request all the data instead of request only the required data. It have been fixed as I said.
Thanks again. |
|
|
(0002349)
|
alostale
|
2008-02-06 10:52
(edited on: 2008-06-12 09:22) |
|
Logged In: YES
user_id=1500722
Originator: NO
I have applied the patch (trunk rev. 2261), but only the part affecting TableSQLQuery_data.xsql and TableSQL.java. Because I want to review KeyMap class more deeply.
Thank you very much for your contribution. |
|