Voted.
Thanks for the SQL, Doug.
Original Message:
Sent: Mon March 31, 2025 07:08 AM
From: Doug Lawry
Subject: Automated Update Statistics and FORCE
The RFE is there now:
https://ibm-data-and-ai.ideas.ibm.com/ideas/INFX-I-666
Please vote for it!
------------------------------
Doug Lawry
Oninit Consulting
Original Message:
Sent: Mon March 31, 2025 06:33 AM
From: Doug Lawry
Subject: Automated Update Statistics and FORCE
Thanks, Ben - that's exactly it. I had forgotten that we executed "aus_evaluator_downgrade" at the site where it's not using FORCE two years ago for the opposite reason: it was missing out some tables before, and worked fine afterwards. That setting change survived subsequent IDS 14 upgrades. The details are as follows:
I will raise an RFE for this:
INSERT INTO ph_threshold VALUES( 0, 'AUS_FORCE', 'Auto Update Statistics Evaluation', 'T', 'STRING', 'Append FORCE to all statements?');
Informix HQ would need that added to the AUS configuration screen, and UDRs would need modifying appropriately.
Note that Art's "dostats" has FORCE absent by default, but it can be added with option "--force-run", so no problem there.
------------------------------
Doug Lawry
Oninit Consulting
Original Message:
Sent: Mon March 31, 2025 05:10 AM
From: Benjamin Thompson
Subject: Automated Update Statistics and FORCE
Hi Doug,
There are two versions of the AUS Evaluator (and also the AUS Refresh job). The original one is written in SPL and in sysadmin:ph_task table its tk_execute value is aus_evaluator. This one doesn't add the FORCE keyword to statements. At some point (maybe with 14.10) a new version was introduced, implemented as a C UDR. It is functionally slightly different and uses the FORCE keywork liberally. Its tk_execute value is aus_evaluate_stats.
I would be interested to hear if this is why you see differences.
There is a procedure to call to switch between them. Let me know if you need it and I will dig it out.
I am not sure why the FORCE keyword was added. We have observed that without it tables with STATCHANGE 0 do not always see statistics and distributions updated even when there have been some changes: maybe this is a bug.
Ben.
------------------------------
Benjamin Thompson
Original Message:
Sent: Fri March 28, 2025 12:06 PM
From: Doug Lawry
Subject: Automated Update Statistics and FORCE
Hi everyone.
AUS seems to append FORCE to all UPDATE STATISTICS statements saved in sysadmin:aus_command.aus_cmd_exe on some systems and not others. Why is that so, and how can it be enabled or disabled? We have a site where an exceptional table is excluded by altering STATCHANGE to a large percentage. I will raise a case with IBM if still necessary, and share any answers.
------------------------------
Doug Lawry
Oninit Consulting
------------------------------