Subject | Re: [ib-support] selecting max date |
---|---|
Author | Robert F. Tulloch |
Post date | 2000-12-22T15:23:40Z |
Hi:
CREATE INDEX "PROPOWNER" ON "TENANTS"("STATE_TEN", "CITY_TEN",
"STNAME_TEN", "ADRESS_TEN", "MAXDATE");
and plan is now:
PLAN (T2 INDEX (PROPOWNER))
PLAN SORT (SORT ((T1 INDEX (PROPADD))))
and execution time is now under 2 seconds. Great.
Best regards
> Try creating a compound index on T2 which combines the State, City,Thanks much. I created index:
> Street and Address columns (in that specific order), this should help at
> least a little.
CREATE INDEX "PROPOWNER" ON "TENANTS"("STATE_TEN", "CITY_TEN",
"STNAME_TEN", "ADRESS_TEN", "MAXDATE");
and plan is now:
PLAN (T2 INDEX (PROPOWNER))
PLAN SORT (SORT ((T1 INDEX (PROPADD))))
and execution time is now under 2 seconds. Great.
Best regards