suche 36x36
  • Admin-Scout-small-Banner
           

    CURSOR Admin-Scout

    get the ultimate tool for Informix

    pfeil  
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT37099 Status: Closed

IDEAL QUERY PLAN WITH DYNAMIC HASH AND NESTED LOOP JOINS HAS VERY HIGH
ESTIMATED COST

product:
INFORMIX SERVER / 5725A3900 / C10 - IDS 12.10
Problem description:
This problem was observed after upgrading IDS from 11.50.FC5W2
on AIX 6.1
to IDS 12.10.FC14 on linux x86-64.

After upgrading to 12.10.FC14, the optimizer is chosing a
different plan presumably based
on a lower estimated cost.

The new plan in 12.10.FC14 has a cost for example of close to
200,000 and is composed of
nested loop joins only.  This plan leads to an execution time of
over 20 hours.

Using directives, itâ ™s possible to generate the same plan in
11.50.FC5W2.  In 12.10.FC14,  a
huge estimated cost of over 500,000,000 is generated and uses a
mix of DYNAMIC HASH
JOINS and NESTED LOOP JOINS but runs to completion in around an
hour.

The query is similar to:

SELECT
         tab1.cdesc,
         tab1.prio,
         tab3.ty,
         tab7.o_n AS tg_n,
         tab5.f_nr,
         tab5.f_n,
         0 AS o_a_t,
         1 * SUM(NVL(tab3.a,0) *tab4.f_p) AS o_a_c,
         0 AS a_t,
         0 AS a_c,
         0 AS b_a
    FROM tab1,
         tab2,
         tab3,
         tab4,
         tab5,
         tab6,
         tab7x tab7
   WHERE tab1.id = tab2.c_id
     AND tab2.id = tab3.t_cd
     AND tab3.d_s_id = tab4.d_s_id
     AND tab4.f_id = tab5.id
     AND tab5.d_id = tab7.p_id
     AND tab5.d_id = tab6.p_id
GROUP BY 1,2,3,4,5,6,7,9,10,11;
Problem Summary:
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
02.06.2021
03.11.2022
03.11.2022
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
Informix EditionsInformix Editions
Informix Editions
DocumentationDocumentation
Documentation
IBM NewsletterIBM Newsletter
IBM Newsletter
Current BugsCurrent Bugs
Current Bugs
Bug ResearchBug Research
Bug Research
Bug FixlistsBug Fixlists
Bug Fixlists
Release NotesRelease Notes
Release Notes
Machine NotesMachine Notes
Machine Notes
Release NewsRelease News
Release News
Product LifecycleProduct Lifecycle
Lifecycle
Media DownloadMedia Download
Media Download