Pick Release Process Slow Performance on Orders with Thousands of Order Lines

(Doc ID 2021502.1)

Last updated on JUNE 09, 2017

Applies to:

Oracle Shipping Execution - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3 version, Performance Issues

Pick release performance is slow for orders with 1000 lines or more.
For a customer with an order with 3333 lines it took 37 minutes to complete pick release process.
This is on high end of waiting time, as this is smallest size of order.
20,000 to 30,000 order lines will be processed on an average run.

The tkprof shows 1 poorly performing SQL. The disk and query numbers are enormous as seen below:

call disk query
------------------------------------------------
Parse 0 0
Execute 0 0
Fetch 23412624 246945501
-----------------------------------------------------
total 23412624 246945501


********************************************************************************

SQL ID: bv42j732tsumh Plan Hash: 2694471331

SELECT COUNT (WDD.DELIVERY_DETAIL_ID), DELIVERY_ID
FROM
 WSH_DELIVERY_DETAILS WDD, WSH_DELIVERY_ASSIGNMENTS_V WDA WHERE
  WDD.DELIVERY_DETAIL_ID = WDA.DELIVERY_DETAIL_ID AND WDA.DELIVERY_ID = (
  SELECT DELIVERY_ID FROM WSH_DELIVERY_ASSIGNMENTS_V WHERE DELIVERY_DETAIL_ID
  = :B1 ) AND WDD.RELEASED_STATUS NOT IN ('R', 'X', 'N') AND
  WDD.PICKABLE_FLAG = 'Y' AND WDD.CONTAINER_FLAG = 'N' GROUP BY DELIVERY_ID


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 3288 0.15 0.26 0 0 0 0
Fetch 3288 1297.93 2111.99 23412624 246945501 32880 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 6577 1298.08 2112.25 23412624 246945501 32880 0


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Order Management responsibility -> Shipping -> Release Sales Order
2. Release order with 1k lines or more
3. Pick takes a very long time


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms