Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

Re: Low performance for inner join on HANA

$
0
0

Hi Inanc

 

Your Plan Viz shows 3 dominant operators with 45, 32 and 0.62 mili seconds and then overall run time is 333 seconds ( slightly more than 5 mins ) .. I am confused here.  Where the time being spent then ?

 

Not sure why you want "SELECT COUNT ( * )" ..  Can you try below theree options?

 

1. SELECT * from TWITTER_ALL_DATA  WHERE USERNAME IN  ( SELECT DISTINCT USERNAME FROM CUSTOMER_SOCIAL_MEDIA )

---- you can replace * with the fields required from TWITTER_ALL_DATA


2. SELECT  T1.Field1, T1. Field2 , T2.Field3, T3.Field4  from CUSTOMER_SOCIAL_MEDIA  INNER JOIN


TWITTER_ALL_DATA  T2  ON  T1. USERNAME = T2.USERNAME



3.

SELECT COUNT(*) FROM  ( SELECT  T1.Field1, T1. Field2 , T2.Field3, T3.Field4  from CUSTOMER_SOCIAL_MEDIA  INNER JOIN


TWITTER_ALL_DATA  T2  ON  T1. USERNAME = T2.USERNAME ) 



Regards

Anindya


Viewing all articles
Browse latest Browse all 3353

Trending Articles



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