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.
Spetc@aol.com — — source: Informix-list mailing list archive (1991-1998)
I run the following select (Online 5.07.UC1) :
select *
from dates_table
where date(date_field) between"050596" and "050596"
date_field is defined as datetime year to second and is indexed.
I get a sequential scan, which kills performance. I'm sure this is because
of the "date" function in the select.
Can I achieve the same result with a different select, this time encouraging
the optimiser to use the index?
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.