sql - informix profiling tools to measure the query performance -
i have performance issues concerning informix
queries .
so ask profiling tools enable me revise queries ..
from here:-
the comprehensive tool informix provides collecting detailed sql query plans , execution statistics set explain utility. utility generate file called sqexplain.out, , records in detail every step of query execution. in addition provides estimated costs of query , estimates query results. examining set explain output file, can determine if steps can taken improve performance of query. following example shows set explain output pretty complex query:
select --+avoid_full(omchn)+avoid_full(daphn) omchn.omc_hn_uanc, nvl(daphn.gtt_version,"0000000000000000000"), nvl(idachn.egt4_version,"0000000000000000000"), nvl(ihlrhn.hlr_timestamp,"00000000000000"), vsgw_hn.hn_igw_uanc, nvl(vsgw_hn.hn_igw_version, "00000000000000") omchn, daphn, idachn, ihlrhn, vsgw_hn daphn.dap_hn_inst = omchn.omc_hn_inst , idachn.idac_hn_inst = omchn.omc_hn_inst , ihlrhn.hlr_hn_inst = omchn.omc_hn_inst , vsgw_hn.vsgw_hn_inst = omchn.omc_hn_inst directives followed: avoid_full ( omchn ) avoid_full ( daphn ) directives not followed: estimated cost: 8 estimated # of rows returned: 1 1) root.idachn: sequential scan 2) root.daphn: index path (1) index keys: dap_hn_inst (serial, fragments: all) lower index filter: root.daphn.dap_hn_inst = root.idachn.idac_hn_inst nested loop join 3) root.vsgw_hn: sequential scan nested loop join 4) root.omchn: index path filters: root.vsgw_hn.vsgw_hn_inst = root.omchn.omc_hn_inst (1) index keys: omc_hn_inst (serial, fragments: all) lower index filter: root.idachn.idac_hn_inst = oot.omchn.omc_hn_inst nested loop join 5) root.ihlrhn: index path (1) index keys: hlr_hn_inst (serial, fragments: all) lower index filter: root.ihlrhn.hlr_hn_inst = root.omchn.omc_hn_inst nested loop join
Comments
Post a Comment