Rajg_baan
8th October 2015, 12:34
Hi All,
select
tfgld106.fyer, | Fiscal Year
tfgld106.fprd, | Fiscal Period
tfgld106.otyp, | Transaction Type
tfgld106.odoc, | Document
tfgld106.olin, | Line Number
tfgld106.leac, | Ledger Account
from
tfgld106 | Finalized Transactions
where
tfgld106.leac >= tfgld106.leac.f and
tfgld106.leac <= tfgld106.leac.t and
tfgld106.fyer >= tfgld106.fyer.f and
tfgld106.fyer <= tfgld106.fyer.t and
tfgld106.fprd >= tfgld106.fprd.f and
tfgld106.fprd <= tfgld106.fprd.t and
I have this query in Query data ( ttadv3580m000) . Problem is , query performs very slow ( around 8 mins) during day time. But same query is very quick ( just 10 seconds) after 6PM. If you have any idea, Can you please let me know why is it so?
I guess DBA might have set some restrictions on this table till 6PM. Once these restrictions are disabled after 6PM, query completes in seconds. If it is so, then how can we know these restrictions without asking DBA?
Are indexes used internally or not used from my query ?
Can we use indexes and hints in query data tool like
tfgld106._index3 inrange {:leac.f} and {:leac.t},
hint use index 3 on tfgld106 . I am getting compile errors when I tried like this.
Thanks already in advance for your help.
Best regards,
Raj
select
tfgld106.fyer, | Fiscal Year
tfgld106.fprd, | Fiscal Period
tfgld106.otyp, | Transaction Type
tfgld106.odoc, | Document
tfgld106.olin, | Line Number
tfgld106.leac, | Ledger Account
from
tfgld106 | Finalized Transactions
where
tfgld106.leac >= tfgld106.leac.f and
tfgld106.leac <= tfgld106.leac.t and
tfgld106.fyer >= tfgld106.fyer.f and
tfgld106.fyer <= tfgld106.fyer.t and
tfgld106.fprd >= tfgld106.fprd.f and
tfgld106.fprd <= tfgld106.fprd.t and
I have this query in Query data ( ttadv3580m000) . Problem is , query performs very slow ( around 8 mins) during day time. But same query is very quick ( just 10 seconds) after 6PM. If you have any idea, Can you please let me know why is it so?
I guess DBA might have set some restrictions on this table till 6PM. Once these restrictions are disabled after 6PM, query completes in seconds. If it is so, then how can we know these restrictions without asking DBA?
Are indexes used internally or not used from my query ?
Can we use indexes and hints in query data tool like
tfgld106._index3 inrange {:leac.f} and {:leac.t},
hint use index 3 on tfgld106 . I am getting compile errors when I tried like this.
Thanks already in advance for your help.
Best regards,
Raj