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 4 of 11 Topic 14271 of 14854
Post > Topic >>

Re: Informix external directives ?

by Joerg Rueschenschmidt <jrueschenschmidt@[EMAIL PROTECTED] > Jul 5, 2008 at 10:08 PM

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 Fri Oct 10 12:57:24 CDT 2008.