How to investigate a delay of Copy statement.
Kaito
Employee
After some environments changed,existing Copy statements become slower. If you have any knowledge and tips to find the bottleneck, could you give me your advice?
1
Comments
Hi Kaito,
To investigate such issues, we follow below procedure to find any bottlenecks in the COPY command performance.
Step 1: Calculate the delay from load_streams to see how much is the delay in current system behavior:
Steps 2: Extact the details from dc_execution_engine_profiles, dc_sips_statistics, resource_acquisitions to see the bottleneck:
Just save the below lines into SQL file, replace the trxid & stmtid from above SQL and run this script.
Few more SQL to help you to see if bottleneck is due to resource usage:
This SQL script may also help you in debugging:
RaghavA, Thanks alot!