Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Valery Fouques — — source: Informix-list mailing list archive (1991-1998)
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?
Yes, look in the FAQ !
Example :
select * from yourtable
where field1=?
and field2=2
and field2=2
and field2=2...
The optimizer gives more 'weight' to the column 'field2'.
Can you try and tell me ???
Valery (valou@hotmail.com)
Bye
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.