Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Query taking more time when it is run subsequent times?

$
0
0

Hi,

 

I am running simple select on a simple view(CV or scripted CV) which selects 4 columns out of the 50 columns in the table. The table has around 7.5 million entries. I noticed that with each run of the select, whether it is a CV or scripted CV, the TOTAL_EXECUTION_TIME(M_SQL_PLAN_CACHE) keeps increasing which means that my query is taking more time to execute after each run. A sample is provided below:

First time the query runs - 0.7s

Second time - 1.4s

3rd time - 2.14s

4th time - 2.8s

Most of the time is going for the TOTAL_EXECUTION_OPEN_TIME - fetching time from columnar tables.

The server looks good with enough memory and cpu for computation.

Isnt HANA supposed to do the reverse? First time the query runs, it is supposed to take the maximum time, then the subsequent runs should yield better performance since the data is loaded in memory. I am confused.

 

Thanks and Regards,

Aswath M G


Viewing all articles
Browse latest Browse all 4343

Latest Images

Trending Articles



Latest Images