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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025221
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajorhave not tried2013-11-26 23:482014-07-22 07:54
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025221: The query done when filtering a foreign key column should be improved

DescriptionWhen the user filters a foreign key column, the generated query contains this:

upper((COALESCE(to_char(join_0.name),''))) like :alias_1 escape '|' ))

The coalesce and the to_char functions are applied over the referenced column. This prevents the database from using any indexes on that column.

The coalesce function is only needed when the table identifier is formed by several columns. The to_char function is needed in that case too, if any of those columns is not a varchar.
Steps To Reproduce- Open Sales Order
- Enter any text in the organization filter
- Check that the query generated uses the functions defined in the description
Proposed SolutionDo not use the coalesce and to_char functions unless the table identifier is formed by several columns.
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on design defect 0025211 closedAugustoMauch Filter by selected value in FK uses identifier instead of ID 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-11-26 23:48 AugustoMauch New Issue
2013-11-26 23:48 AugustoMauch Assigned To => AugustoMauch
2013-11-26 23:48 AugustoMauch Modules => Core
2013-11-26 23:48 AugustoMauch Triggers an Emergency Pack => No
2013-11-26 23:48 AugustoMauch Relationship added depends on 0025211
2014-07-22 07:54 alostale Tag Attached: Performance


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker