![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
It's IDS 10.0FC10W2 on HP-UX 11.23 ia64. Here's one of the issues I'm looking at: long-running UPDATE STATS. This index for example takes ages. It has only about 600,000 pages: cust_id, login_time(LOW)...SUCCESSFUL (3156.161 Secs) If I run it again immediately, ie without bouncing Informix: cust_id, login_time(LOW)...SUCCESSFUL (10.322 Secs) # 300 times faster!!!!! I can see from onstat -D that the second run did no page reads so this is clearly due to the IDS cache: the time zooms straight back up to 3,200-odd seconds if IDS is bounced. If i unload the table and create a copy: cust_id, login_time(LOW)...SUCCESSFUL (88.597 Secs) The index on the original is not *that* fragmented - takes up about 400,000 pages after rebuild as opposed to 600,000 before ... If I watch the UPDATE STATS I see it crawl on the original table but fly on the new one. I should add that for ages I've suspected a disk problem this platform. But if this is a disk, rather than Informix, problem it's one that allows an index scan on a recently-built index to fly, and an older one to crawl. Any thoughts? Thanks, Neil _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
"Art Kagel" <art.ka... (AT) gmail (DOT) com> wrote in message news:mailman.6.1268095449.1071.informix-list (AT) iiug (DOT) org... The index may not be fragmented, but perhaps the table is! It doesn;t appear to be, at least not from the oncheck: Before: * *Number of pages used * * * * * 483601 * *Number of data pages * * * * * 483481 * *Number of pages allocated * * *221507 After: * *Number of pages allocated * * *484032 * *Number of pages used * * * * * 483602 * *Number of data pages * * * * * 483482 In any case wouldn;t an UPDATE STATS (LOW) (as executed by dostats of course!) simply scan the indexes. I copied the table to another db using onunload/onload, sort of expecting this too to speed everything up, but in fact it retains the original speed .... |
#6
| |||
| |||
|
|
i would try and rule out HP; try it on linux and see if you get the same results. |
#7
| |||
| |||
|
| In fact, it happens on any composite index where the 2nd or subsequent column is a DATETIME column. It's not only UPDATE STATISTICS, oncheck -pT is equally impaired for example. IBM is heavily involved now, PMR 83917,019,866 refers. |
#8
| |||
| |||
|
|
From my point of view it's not only the imbalance and the extra pages, but the fact that the leaves are not sequential (and they'll probably be after |
|
"Neil Truby" <neil.truby (AT) ardenta (DOT) com> wrote in message news:7vvraaFfk7U1 (AT) mid (DOT) individual.net... In fact, it happens on any composite index where the 2nd or subsequent column is a DATETIME column. It's not only UPDATE STATISTICS, oncheck -pT is equally impaired for example. IBM is heavily involved now, PMR 83917,019,866 refers. The advice on the PMR is that it is to likely to with a heavy imbalance in the index B-tree. This still seems to us like an astonishing impact so we're running some more tests to try to understand it better. Can anyone explain why we run update statistics (low) on an index rather than on the individual columns? _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#9
| |||
| |||
|
|
From my point of view it's not only the imbalance and the extra pages, but the fact that the leaves are not sequential (and they'll probably be after the index rebuild). You can assert this by running the query I sent. It will take a long time (similar to the process itself and the oncheck -pT). |
#10
| |||
| |||
|
|
"Fernando Nunes" <domusonline (AT) gmail (DOT) com> wrote in message news:mailman.21.1268761695.1071.informix-list (AT) iiug (DOT) org... From my point of view it's not only the imbalance and the extra pages, but the fact that the leaves are not sequential (and they'll probably be after the index rebuild). You can assert this by running the query I sent. It will take a long time (similar to the process itself and the oncheck -pT). Query? Is that one you send to Claudio? cheers _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
![]() |
| Thread Tools | |
| Display Modes | |
| |