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

Re: Informix external directives ?

by "Dirk Gunsthövel" <dirk@[EMAIL PROTECTED] > Jul 9, 2008 at 07:59 PM

Hi,

after testing Joergs case and some other cases
(using version 10.00) I came to the comclusion that

1. Joerg is right. External directives dont work with
prepared statements

2. The whole external directives thing only works
if you are dealing with a statement that is 100%
the same every time you run it.

If your Application queries for lets say
  SELECT * FROM sometable WHERE name='Joerg'
you will not be able to optimize the statement where
'Joerg' is exchanged with lets say a user input tomorrow.

If this is true external directives are not usable in
99,9% of the cases where you would like to use them.

.... i.e. the whole concept is good for (nearly) nothing -
something that sounded cool in the tech conferences
where I heard about it but fails when you try it.

Maybe I missed something here (or maybe it is doing
better in a version >10?). Could someone please
comment on this?

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:g4q45i$msv$03$1@[EMAIL PROTECTED]
> Dirk Gunsthövel schrieb:
>> 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
>>
>
> Dirk,
>
> I need to set the goal for a single query only. The overall goal
ALL_ROWS 
> is okay.
>
> Further, I think SET OPTIMIZATION requires access to the source code of 
> the third party product, which does not exist. Assume I could change 
> optimization goal for a database session from outside. It would not
help, 
> because the third party product open and close database sessions 
> dynamicly. I would never now what database session will run my "bad" 
> query.
>
> Fyi, a query execution plan will give you informations about if a 
> directive is used or not.
>
> 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:37:35 CST 2008.