cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SQL statement - execution and elapsed time history

danielsapbasis
Participant
0 Kudos
579

Hi Experts,

How to find out the execution time, elapsed time and scanned records count history of a particular SQL statement.

Please answer.

Thanks in advance

View Entire Topic
Abhishek_Hazra
Active Contributor
0 Kudos

Have you looked into : 2180165 - FAQ: SAP HANA Expensive Statements Trace ?

You can basically get the information from M_EXPENSIVE_STATEMENTS based on the STATEMENT_STRING column.


Best Regards,
Abhi

danielsapbasis
Participant
0 Kudos

Hi Abhishek,

It does not have the execution and elapsed time information.

Please mention the ideal one can be used.

Thanks in advance

Abhishek_Hazra
Active Contributor
0 Kudos

Hello again danielsapbasis,

Have you gone through all the columns? How about columns : START_TIME & DURATION_MICROSEC? Why can you not use these two?

Regards,
Abhi

ghoshsayantan3
Explorer
0 Kudos

Hi Daniel,

You can refer to m_expensive_statements monitoring view and query it with respect to statement_string to find the required query and the records column would help to get the results records count.

The operation column would tell you for which operation its for .(select,call etc)


hope this helps

Re

Sayantan