takes more time to open lov [message #287438] |
Wed, 12 December 2007 04:25 |
ishika_20
Messages: 339 Registered: December 2006 Location: delhi
|
Senior Member |
|
|
Dear all
i have below query which takes more time to open.
when i bring
and nvl(b.vc_quality_flg,'~ ') = 'Y'
and nvl(b.vc_main_store_flg,'~') = 'Y'
to upward then it take liitle less time.
currently it take 11 sec.
please go through my query and tell me how will i improve my performance.
SELECT distinct c.VC_ITEM_CODE,e.VC_ITEM_DESC
FROM PURCHASE.HD_PUR_ORDER a,HD_RECEIPT b ,DT_RECEIPT c,CHALLAN_ORDER d ,MAKESS.MST_ITEM e
WHERE a.vc_comp_code = '01'--:global.vc_comp_code
and D.VC_COMP_CODE = A.VC_COMP_CODE
AND D.VC_COMP_CODE = B.VC_COMP_CODE
AND B.VC_COMP_CODE = C.VC_cOMP_CODE
AND C.VC_COMP_CODE = E.VC_COMP_CODE
and nvl(b.vc_quality_flg,'~ ') = 'Y'
and nvl(b.vc_main_store_flg,'~') = 'Y'
and A.VC_ORDER_NO = D.VC_ORDER_NO
AND A.dt_ORDER_date = D.dt_ORDER_date
AND A.NU_SUPPLIER_CODE = D.NU_SUPPLIER_CODE
AND D.NU_SUPPLIER_CODE = B.NU_PARTY_CODE
and D.VC_CHALLAN_NO = B.VC_CHALLAN_NO
AND B.VC_RECEIPT_NO = C.VC_RECEIPT_NO
AND B.dt_RECEIPT_date = C.dt_RECEIPT_date
AND C.VC_ITEM_CODE = E.VC_ITEM_CODE
AND A.VC_ORDER_NO = C.VC_GATE_ORDER_NO
AND A.dt_ORDER_date = C.dt_ORDER_date
AND c.dt_receipt_date between :dt_from and :dt_to
order by 1
waiting for ur response..
Regards.
|
|
|
|
Re: takes more time to open lov [message #287610 is a reply to message #287484] |
Wed, 12 December 2007 22:38 |
ishika_20
Messages: 339 Registered: December 2006 Location: delhi
|
Senior Member |
|
|
sir,
It's very easy to show ex-plan & autotrace from toad.
but unable to copy those things from it.
can u please tell me how could i get ex-plan from sql*plus.
so that i can provide u the ex-plan & autotrace of it.
Regards
|
|
|
|
|