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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0004964
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] I. Performanceminorsometimes2008-09-09 17:262009-11-03 06:59
ReporterjaimetorreView Statuspublic 
Assigned Toshuehner 
PrioritylowResolutionfixedFixed in Version2.40MP11
StatusclosedFix in branch2.40Fixed in SCM revision0b7c8b69af9c
ProjectionnoneETAnoneTarget Version2.40MP11
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0004964: Slow compilation in sqlC part due to high amount of data

DescriptionWhen compiling, sqlC executes each query to verify the sql syntax. However, if the select returns a big amount of data, sqlC takes very long to respond.

sqlC execution time should not depend on the amount of data in the database. Data is not even needed to check the correction of the sql. In order to avoid this issue, an impossilbe condition (e.g., 1=2) should be added to the sql query before testing it.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0004038 closedshuehner Slow compilation in sqlC part due to high amount of data 

-  Notes
(0020966)
shuehner (administrator)
2009-10-13 10:23

Push of fix pending. Waiting for 2.40 branch to be unfrozen
(0021050)
hgbot (developer)
2009-10-15 13:22

Repository: erp/stable/2.40
Changeset: 0b7c8b69af9c12841ff4c7263f4fff26c6e41fb1
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Tue Oct 13 10:22:07 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/0b7c8b69af9c12841ff4c7263f4fff26c6e41fb1 [^]

Fixed 4964: Improve SqlC performance at compile time (for big datasets)
- Include optional parameters in SqlC query execution at compile time as this
  leads to better performance in many cases
- This requires the optional parameters to be valid parts of an SQL statement
- New behavior can be configured via new Openbravo.properties setting:
  sqlc.queryExecutionStrategy=traditional,optimized
- Enable traditional by default (in template and when new setting is missing)
- Can be enabled manually to get better compile time performance if in custom
  code all optional parameters are valid sql.

---
M config/Openbravo.properties.template
M src-core/src/org/openbravo/data/Sqlc.java
M src/buildAD.xml
---
(0021521)
arunkumar (reporter)
2009-11-03 06:59

Tested & Working fine

- Issue History
Date Modified Username Field Change
2008-09-09 17:26 anonymous New Issue
2008-09-09 17:26 anonymous Assigned To => marvintm
2008-09-09 17:26 anonymous Status new => scheduled
2008-09-09 17:26 anonymous fix_in_branch => 2.40
2008-11-05 12:02 cromero Priority normal => low
2008-11-05 12:02 cromero Category A. Platform (WAD, XmlEngine, SQLC) => I. Performance
2009-01-09 15:20 rafaroda Assigned To marvintm => shuehner
2009-01-19 10:31 rafaroda version => 2.40
2009-08-02 19:42 psarobe Status scheduled => closed
2009-08-02 19:42 psarobe Resolution open => suspended
2009-10-13 10:14 shuehner Status closed => new
2009-10-13 10:14 shuehner Resolution suspended => open
2009-10-13 10:14 shuehner Status new => scheduled
2009-10-13 10:14 shuehner fix_in_branch 2.40 => pi
2009-10-13 10:15 shuehner fix_in_branch pi => 2.40
2009-10-13 10:23 shuehner Note Added: 0020966
2009-10-15 13:22 hgbot Checkin
2009-10-15 13:22 hgbot Note Added: 0021050
2009-10-15 13:22 hgbot Status scheduled => resolved
2009-10-15 13:22 hgbot Resolution open => fixed
2009-10-15 13:22 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/0b7c8b69af9c12841ff4c7263f4fff26c6e41fb1 [^]
2009-10-22 19:26 psarobe Tag Attached: main
2009-10-29 09:47 psarobe Tag Detached: main
2009-10-29 09:48 psarobe Target Version => 2.40MP11
2009-11-03 06:59 arunkumar Status resolved => closed
2009-11-03 06:59 arunkumar Note Added: 0021521
2009-11-03 06:59 arunkumar Fixed in Version => 2.40MP11


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker