Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Impact of join on calculated columns in query preparation time

$
0
0

Hello all

 

I am trying to create a CDS view to join a custom table to a standard SAP table. The join is performed on a field called ID (assume). This ID is of type RAW in the standard table and of type CHAR32 in the custom table.

 

So what we did was the following:

 

1. Create a calculation view on top of standard table. I create a calculated column here which converts RAW to CHAR32. Lets call it ID_CHAR.

2. Create the CDS view with join on ID_CHAR and ID of the custom table.

 

Now the join works fine and returns the expected results. But the query plan preparation time of the CDS view with this join is very high.

 

QueryPlan Preparation Time
Select of standard Table54 ms
Select of custom table114 ms
Select with join on custom_table.ID = ID_CHAR710 ms

 

 

We have more than one place in our application where we face this problem. Any pointers or insights would be helpful.

 

We are currently in Netweaver 7.40 and not sure when the upgrade to 7.50 will happen.

 

Regards


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>