cancel
Showing results for 
Search instead for 
Did you mean: 

What's the meaning of "DB: Fetch" versus "Fetch" in SAT? (also: Open)

Sandra_Rossi
Active Contributor
241

I did an ABAP trace with SAT, and I see different lines for the same ABAP SELECT statement, I can't explain the differences e.g.:

  • DB: Fetch FMIT and Fetch FMIT
  • DB: Open ZXXXX_OP_HISTO and Open SQL ZXXXX_OP_HISTO

NB: my question is NOT about the difference between "Open" and "Fetch", my question is about why there are two lines for the apparently same operation, or differently said, what's the meaning of "DB" in front of one of the two lines.

Sandra_Rossi_0-1744830348200.png

Sandra_Rossi_1-1744830878743.png

Sandra_Rossi_2-1744830920660.png

Does it simply mean that the request is sent to the database? (tables not buffered or buffer bypassed)

In my case, I don't need this information, it's a little bit polluting the interpretation of the trace. The flag "database-related operations" in the SAT variant is always selected (see below; I'm not sure if this option is about the "DB" lines). Is there a way to remove these "DB" lines? Only by using the ALV filter?

Sandra_Rossi_3-1744831504880.png

Thank you.

Sandra

My system: ABAP 7.40 SP 23; Kernel 753 PL 1300.

Accepted Solutions (1)

Accepted Solutions (1)

HermannGahm
Product and Topic Expert
Product and Topic Expert

Hi Sandra,

if you execute the trace without aggregation you can see the relationship in the call hierarchy:

The DB FETCH Operations are children of the FETCH Operation.
In my case the FETCH Operation took 22249 µs and the DB Fetch Operations 21743 µs (19294 µs + 2449 µs).
I think the difference is different measurement points and code path lengths since 1 FECTH Operation contains multiple DB FETCH Operations.
SAT:
HermannGahm_2-1744887837542.png

 

ADT:

HermannGahm_4-1744888665154.png

 

Why we can not switch off Database-level operations is a different question that i can't answer at the moment.
I'll check if i can find an answer. (In ST12 you can switch it off 😉 )

Kind regards,

Hermann

 

 

 

Sandra_Rossi
Active Contributor
0 Kudos
Thanks. Interesting view via Call Hierarchy, it makes it clear what "DB" is (ADT view being much better!).

Answers (0)