Suboptimal relationship between rcl_debrief_headers and svc_work_orders
Summary:
The only relationship we can establish is- rcl_debrief_headers.parent_entity_id = svc_work_orders.wo_id, which is suboptimal as parent entity column is not indexed in rcl header table. Please let us know if there's another way to join these tables.
Content (please ensure you mask any confidential information):
Following simple Query goes for a full scan on rcl_debrief_headers.
SELECT 1 col
FROM rcl_debrief_headers rch,svc_work_orders swo
WHERE rch.parent_entity_code = 'EC_WO'
AND rch.parent_entity_id = swo.wo_id
AND swo.wo_number = :p_wo_num
Version (include the version you are using, if applicable):
Tagged:
0