Subject | Re: [ib-support] Query Slow |
---|---|
Author | Lauri Zoova |
Post date | 2003-01-03T13:00:29Z |
Sivaraman Krishnan wrote:
PATIENTMASTER on opnumber.
in plan) for the two tables. Forget playing with properties.
BR,
Lauri
> [...]Try creating an index for EMPLOYEEMASTER on employeecode and
> This is the plan for this query:
>
> PLAN (M INDEX (RDB$FOREIGN237))
> PLAN MERGE (SORT (E NATURAL),SORT (JOIN (JOIN (JOIN (JOIN (P NATURAL,I
> INDEX (RDB$FOREIGN237)),D INDEX (RDB$PRIMARY71)),R INDEX (RDB$PRIMARY41)),A
> INDEX (RDB$PRIMARY34))))
PATIENTMASTER on opnumber.
> For fetching the records, this query takes 14 seconds.What might be theProblem is that you don't have an approptiate index (see the 'natural'
> problem?I set the FetchWholeRows property to false.
> Whether i have to change any other properties for speed up this
> query?Otherwise any problem in the index?
in plan) for the two tables. Forget playing with properties.
BR,
Lauri