We have an Adabas file that looks like this:
REPORT
name (a5) - a descriptor
used-information - PE
used-code (a1)
used-date (n8 )
This file has a superdescriptor name-used-code-sp which consists of the field name and used-code
This file is translated to 2 tables in CONNX:
REPORT
REPORT-used-information
when I do an execution plan (via {statistics}) on the following SQL:
select name, used_date from REPORT a, REPORT_used_information b
where a.isn_report = b.isn_report and name = ‘111’ and used_code = ‘9’
I thought CONNX would attempt to use the name-used-code-sp index. The index list for REPORT_used_information actually shows name and used_code as indexes when used together.
Instead, it uses only the name index.
What can I do to make CONNX use the combined superdescriptor?
We have a lot of Adabas files where with just the name index, the query will start with 1 million rows but if the combined index is used, the query will start with just 5000 rows.
Please advise.
Thanks.
Min