Optimizer Issues with 10.00.xC8
- From: "Thomas J. Girsch" <tgirsch@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 22:45:12 -0600
Has anyone else been having optimizer issues with IDS 10.00.xC8?
We've got two applications on two different hardware platforms where the database backend was recently upgraded to IDS 10.00.FC8 (one DB is on Solaris 8, the other is on AIX 5.2), and in both cases, we've started getting queries that have long been running just fine that are now picking a bad path. These queries used to take seconds and now take minutes.
In the AIX case, we know that the statistics are less-than-current (the table is truncated and reloaded WITHOUT updating stats right before the query runs), but the point is that in IDS 10.00.FC6, these queries ran fine under these circumstances (and finished in about 6 seconds), but on FC8, under the exact same circumstances, it takes nearly 3 minutes. I've tested various scenarios, and the query actually runs better with NO STATS AT ALL than it does with the out-of-date stats it has (also not true in FC6).
In the Solaris case, I have a query that looks like a textbook case for distributions. It's a fairly sizable table, with millions of rows. There are two indexes: one is a composite, unique index on colA, colB (integer, smallint) and the other is a nonunique index on colC (integer). We have a query that selects against this table where colA = X and colC = Y. The data in colA has high selectivity, whereas the data in colC has very low selectivity (something like half the records in the table have colC = 0). If I run full statistics with distributions (including HIGH on colA and High on colC), the optimizer picks the index on colC every time, which is Very Bad, and takes forever. If I drop distributions, it (correctly) picks the composite index on (colA, colB) and runs very quickly. This is precisely the opposite of the behavior I would expect. For what it's worth, it doesn't seem to matter if OPTCOMPIND is 0 or 2 for this test, it still picks the wrong path when it has distributions.
Has anyone else had a similar experience? Any suggestions?
Thanks in advance,
- TJG
.
- Follow-Ups:
- Re: Optimizer Issues with 10.00.xC8
- From: Art S. Kagel (Oninit)
- Re: Optimizer Issues with 10.00.xC8
- From: RoB
- Re: Optimizer Issues with 10.00.xC8
- Prev by Date: RE: When It Couldn't Get Any Better
- Next by Date: Re: When It Couldn't Get Any Better
- Previous by thread: informix 9.3 to 9.4 issue
- Next by thread: Re: Optimizer Issues with 10.00.xC8
- Index(es):
Relevant Pages
|