Skip to Content

Slow performance in AMDP

Dear SCN Members,

In one of blogs by Horst Keller, he wrote about performance improvement in string concatenation.

I'm fortunate to be working on SAP 750 with HANA DB; so I thought of checking the performance when strings are concatenated at DB level. I added my comments and Horst, being always helpful, gave me some pointers to do performance testing.

To my surprise, the results with AMDP is taking a lot of time when checked in SAT and GET RUN TIME.

Now I'm not aware of what's happening under the hood but would love to learn why and where AMDP is slowing down.

I've attached a Word document having code, results and screenshots to avoid cluttering this space.

Thanks!

1.jpg (43.0 kB)
input.jpg (7.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 20, 2016 at 09:05 AM

    Hi Aasim,

    The test missing here is calling the AMDP procedure directly with Native SQL (ADBC or EXEC SQL).

    I expect the same "bad" performance as for calling it via AMDP.

    If this is the case, the reason is not AMDP but an overhead in calling procedures in HANA itself. According to my informations this problem is under investigation by the HANA colleagues.

    Horst

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello,

      I asked a real expert and the result is:

      In the AMDP result structure there is a string. That triggers a LOB handling for the result set.

      In EXEC SQL and ADBC by default there is no LOB handling for the result set, but data that are too long are cut.

      If you switch off the LOB handling by using the dictionary type SSTRING instaed of STRING the performance of the AMDP call should improve.

      Another way around, using parameter IS_LOB of method SET_PARAM in ADBC should switch on LOB handling and the performance should get worse.

      Horst

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.