Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Informix > Re: Informix ex...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 11 Topic 14271 of 15119
Post > Topic >>

Re: Informix external directives ?

by "Dirk Gunsthövel" <dirk@[EMAIL PROTECTED] > Jul 6, 2008 at 01:46 AM

Hi,

first you should be able to set the optimizer goal per session using
  SET OPTIMIZATION FIRST_ROWS

secondly how do you see that the optimizer hints (that is what you
mean, right?) are not used? Do you have any helpfull output?

(I had to use optimizer hints with Informix only in some rare
occasions where the data structures where messed up and
had to stay like that for some 'good' reasons ;-) )

Regards,
Dirk

-- 
-- 
-- Dipl.-Math. Dirk Gunsthövel
-- -professional services-
--
-- Dirk Gunsthövel IT Systemanalyse - GunCon
-- Hammer Str. 13
-- D-48153 Muenster
-- phone: +49 (0) 251 28446- 0
-- fax:   +49 (0) 251 28446-55
-- web:   http://www.GunCon.de
-- email: info@[EMAIL PROTECTED]
 UStId: DE 189527667
--
--     'One now understands why some animals eat their young.'
--     (Andrew in 'Bicentennial Man' 1999)


"Joerg Rueschenschmidt" <jrueschenschmidt@[EMAIL PROTECTED]
> schrieb im 
Newsbeitrag news:486FD4D5.3000706@[EMAIL PROTECTED]
> TBP schrieb:
>> Joerg Rueschenschmidt wrote:
>>> Joerg Rueschenschmidt schrieb:
>>>
>>>> Hi all,
>>>>
>>>> Is it possible to use Informix external directives for statements
with 
>>>> host variables ?
>>>>
>>>> It works fine for statements without host variables.
>>>>
>>>> Now, I need to solve a problem for a statement with a host variable.
>>>>
>>>> e.g.
>>>>
>>>> ... WHERE (a0.t_ncst > ?)
>>>>
>>>> If I add a statement with host variables my directive is not used :-(
>>>>
>>>> I am afraid that I can not benefit from external directives if host 
>>>> variables are used.
>>>>
>>>> Can someone confirm this ?
>>>>
>>>> Regards ...
>>>>
>>>> Joerg
>>>
>>>
>>> Sorry, I missed to mention my Informix version is IDS 10.00.FC8 on 
>>> Linux.
>>>
>>> Regards ...
>>>
>>> Joerg
>>
>> Why do you HAVE to use directives?
>>
>> Directives are really there just to claim equivalence for other DMBSes.
>>
>> Hopefully, the IDS optimiser produces good plans, if not, then perhaps 
>> directives as a workaround to a defect in the optimiser.
>
>
> To give you a short answer. Our IDS is configured to use OPT_GOAL=-1 
> (ALL_ROWS). The goal is fine for almost all queries in our application, 
> but in a few situations I would prefer to have FIRST_ROWS behavior.
>
> This is why I would like to use external directives.
>
> However, my main question is :
>
> Is it possible to use Informix external directives for statements with 
> host variables ?
>
> Regards ...
>
> Joerg
>
 




 11 Posts in Topic:
Informix external directives ?
Joerg Rueschenschmidt <  2008-07-05 15:21:27 
Re: Informix external directives ?
Joerg Rueschenschmidt <  2008-07-05 15:24:40 
Re: Informix external directives ?
TBP <thebigpotato@[EMA  2008-07-05 18:28:31 
Re: Informix external directives ?
Joerg Rueschenschmidt <  2008-07-05 22:08:53 
Re: Informix external directives ?
"Dirk Gunsthövel&quo  2008-07-06 01:46:19 
Re: Informix external directives ?
Joerg Rueschenschmidt <  2008-07-06 11:44:17 
Re: Informix external directives ?
"Dirk Gunsthövel&quo  2008-07-09 19:59:20 
Re: Informix external directives ?
Joerg Rueschenschmidt <  2008-07-10 10:34:06 
Re: Informix external directives ?
Richard Kofler <richar  2008-07-06 12:16:13 
Re: Informix external directives ?
Joerg Rueschenschmidt <  2008-07-16 15:42:32 
Re: Informix external directives ?
Fernando Nunes <domuso  2008-07-19 01:25:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:36:39 CST 2008.