Re: How to force use of an index.
Posted in 1996
Steve Proctor wrote: > > Online version 5 > > I've got a very slow select wihch I've analysed using set explain on. > > I know it would be quicker if I could force it to use a particular index > for it's main index path. > > Any ideas how to force the optimiser to use an index? We found that the query optimizer in version 5 would on occasion pick the wrong index. Informix indicated it was a defect and subsequent revisions have improved the problem (but not completely, I understand). The only work-around was to drop the "poor" index it was choosing. Usually it did not impact our primary applications. Their other recommendation was to go to version 7. Phil -- -------------------------------------------------------------------------- Philip Walden Hewlett Packard Product Generation Information Systems 1501 Page Mill Road, M/S 4U-6 Palo Alto, CA 94304 (415) 857-3899 FAX (415) 857-8234 --------------------------------------------------------------------------