If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
1) what ids version?
2) copy here all result of set explain and select statment...
if you want to know how make optimization in SQL my suggestion is:
- manual IBM Informix Performance Guide
- slides of IIUG conferences ( www.iiug.org )
QUERY:
------
select {+explain avoid_execute} first 1 totgn_rdtotgne_c, totgn_feulttot_k from informix.prtotgne
where totgn_rdcodope_k = 3
and totgn_feulttot_k <= '2007-09-20'
and totgn_rdtipgar_p = 2
and totgn_rdclvope_k = 9999
and totgn_rdmodal_p = 4115
and totgn_rdsubmod_p = 9999
and totgn_rdcodpro_p = 99
and totgn_rdrngimp_k = 99
order by totgn_feulttot_k desc
DIRECTIVES FOLLOWED:
EXPLAIN
AVOID_EXECUTE
DIRECTIVES NOT FOLLOWED:
Estimated Cost: 10629
Estimated # of Rows Returned: 1
1) informix.prtotgne: INDEX PATH
(1) Index Keys: totgn_rdcodope_k totgn_feulttot_k totgn_rdtipgar_p totgn_rdclvope_k totgn_rdmodal_p totgn_rdsubmod_p totgn
_rdcodpro_p totgn_rdrngimp_k (Key-First) (Serial, fragments: ALL)
Lower Index Filter: (informix.prtotgne.totgn_rdcodope_k = 3 AND informix.prtotgne.totgn_feulttot_k <= 20070920 )
Key-First Filters: (informix.prtotgne.totgn_rdcodpro_p = 99 ) AND
(informix.prtotgne.totgn_rdmodal_p = 4115 ) AND
(informix.prtotgne.totgn_rdrngimp_k = 99 ) AND
(informix.prtotgne.totgn_rdsubmod_p = 9999 ) AND
(informix.prtotgne.totgn_rdclvope_k = 9999 ) AND
(informix.prtotgne.totgn_rdtipgar_p = 2 )