SAP Knowledge Base Article - Preview

3602390 - Expensive Statement on HANA with Column Value Wrapped in Function (ex. CONCAT, SUBSTR, RTRIM or LTRIM)

Symptom

You find a statement that is expensive in terms of CPU and thread usage on HANA and observe it uses wrapped functions for column values. For example:

SELECT "T."column1", RIGHT(CONCAT(N'000000', LEFT(TRIM(BOTH FROM "T"."column2"), 10)), 10) FROM "SAPschema"."table1" "T" WHERE (TRIM(BOTH FROM "T"."column3") = N'E43535')

When you check the thread state during the timeframe of increased CPU consumption you see many threads with threadmethod 'PredicateEvaluatorJob'.


Read more...

Environment

  • HANA Platform Edition 1.0
  • HANA Platform Edition 2.0

Product

SAP HANA 1.0, platform edition ; SAP HANA, platform edition 2.0

Keywords

thread, high CPU, slowness, PredicateEvaluatorJob, CONCAT, SUBSTR, RTRIM, TRIM , KBA , HAN-DB-PERF , SAP HANA Database Performance , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.