Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Modules] External Data Integrationmajorhave not tried2021-01-08 09:532021-01-08 09:53
ReporterjavietxeView Statuspublic 
Assigned Toplatform 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release

0045702: Optimisation in query in EDL

DescriptionMore detailed information: [^]

In ProcessRequest class, there exists this query. The “Or” condition is slowing down processing of “EDL Request” and CPU/mem consumption under heavy load with a lot of data in “OBEDL_Request_Line“ table.

 hql = new StringBuilder();
    hql.append(" select count(*) from ").append(OBEDLRequestLine.ENTITY_NAME);
    hql.append(" where ").append(OBEDLRequestLine.PROPERTY_EDLREQUEST).append(" = :request");
    hql.append(" and (");
        .append(" = '")
    hql.append(" or ")
        .append(" = '")
    hql.append(" )");
Steps To ReproduceN/A
Proposed SolutionStringBuilder sql = new StringBuilder();
    sql.append("SELECT sum(CASE WHEN ")
        .append(" = '")
        .append(" THEN 1 ")
        .append(" WHEN ")
        .append(" = '")
        .append(" THEN 1 ")
        .append(" ELSE 0 END) as nbvalue")
        .append(" FROM ")
        .append(" where ")
        .append("obedl_request_id").append(" = '").append(request.getId()).append("'");
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-01-08 09:53 javietxe New Issue
2021-01-08 09:53 javietxe Assigned To => platform

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker