I have a select on an oracle database
ZK_NR being the Primary key
this one takes 0.1 seconds
and then I have this
wich takes approx. 2.5 seconds to return anything. Both selects return the same record. And I (or they) have an index on OUDE_REF_NICC not on REDEN_ANNULATIE.
NIC is the schema and PIMS_ZAKEN is a simple view.
Does anybody have any idea how to make this thing go faster?
BTW I made them put the index on OUDE_REF_NICC this morning in an attempt to make it faster. But it din't help.
Christiaan Baes
Belgium
"My new site" - Me
Code:
SELECT ZK_NR, ...
FROM NIC.PIMS_ZAKEN Z
WHERE Z.ZK_NR = :ZK_NR
ZK_NR being the Primary key
this one takes 0.1 seconds
and then I have this
Code:
SELECT ZK_NR, ...
FROM NIC.PIMS_ZAKEN
WHERE OUDE_REF_NICC IS NULL
AND REDEN_ANNULATIE IS NULL
wich takes approx. 2.5 seconds to return anything. Both selects return the same record. And I (or they) have an index on OUDE_REF_NICC not on REDEN_ANNULATIE.
NIC is the schema and PIMS_ZAKEN is a simple view.
Does anybody have any idea how to make this thing go faster?
BTW I made them put the index on OUDE_REF_NICC this morning in an attempt to make it faster. But it din't help.
Christiaan Baes
Belgium
"My new site" - Me