Re: Bug ? No rows returned from a view
Posted in 1998
Martin Brassard wrote:
>
> In the folowing problem, it seems that Informix doesn't return the same
> data depending of the query plan it uses.
>
> We issue this query et don't get any data.
[SNIP]
> Then, if we issue that other query that is the same, but with a bigger
> interval, we receive data that should have been returned by the previous
> query.
[SNIP]
> The query plan perform an index search on the master table for the first
> case, but a sequential scan in the second (this is ok because the
> interval covers almost all the table).
Have you checked that index that the first query used (oncheck -cDI)?
Sounds like a corrupted index to me. If the table is large and the
index is indeed bad I recommend telling oncheck to NOT rebuild the
index but to drop and rebuild the index manually with PDQPRIORITY,
PSORT_NPROCS, PSORT_MAXALLOC, and PSORT_DBTEMP set for maximum speed.
Art S. Kagel