Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025221Openbravo ERPA. Platformpublic2013-11-26 23:482014-07-22 07:54
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
newopen 
5
 
 
Core
No
0025221: The query done when filtering a foreign key column should be improved
When 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.
- Open Sales Order
- Enter any text in the organization filter
- Check that the query generated uses the functions defined in the description
Do not use the coalesce and to_char functions unless the table identifier is formed by several columns.
Performance
depends on design defect 0025211 closed AugustoMauch Filter by selected value in FK uses identifier instead of ID 
Issue History
2013-11-26 23:48AugustoMauchNew Issue
2013-11-26 23:48AugustoMauchAssigned To => AugustoMauch
2013-11-26 23:48AugustoMauchModules => Core
2013-11-26 23:48AugustoMauchTriggers an Emergency Pack => No
2013-11-26 23:48AugustoMauchRelationship addeddepends on 0025211
2014-07-22 07:54alostaleTag Attached: Performance

There are no notes attached to this issue.