Subject | Re: [firebird-support] query performance problem |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2004-04-07T12:43:10Z |
On 7 Apr 2004 at 10:04, Tobias Jenkner wrote:
Nevertheless, first of all drop these indexes:
select count(*), job, finishedStep from item where job=22
group by job, finishedStep
Later, try to drop index FOO and see results.
SY, Dimitry Sibiryakov.
>Plan:Is this whole plan? I don't see how it filter records by JOB...
>PLAN (ITEM ORDER FK317B13C3E6B25E)
Nevertheless, first of all drop these indexes:
>>>CREATE INDEX FK317B1319BBD ON ITEM (JOB);Then try to rewrite your query this way:
>>>CREATE INDEX FK317B132AFA43C6 ON ITEM (INDEXCLASS);
>>>CREATE INDEX FK317B13C3E6B25E ON ITEM (FINISHEDSTEP);
select count(*), job, finishedStep from item where job=22
group by job, finishedStep
Later, try to drop index FOO and see results.
SY, Dimitry Sibiryakov.