![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
All: I have some SP code that has a SET PDQPRIORITY N directive inside an IF ... THEN block that checks the application configuration table to see whether PDQ is enabled. Can anyone (Art, ideally) confirm whether or not this will actually work to control PDQ and will NOT use PDQ if the IF block evaluates to false? I am getting objections to this from someone who seems to believe that the SP will use PDQ if a SET PDQPRIORITY directive appears anywhere in it at compile time... TIA That somebody is correct. SP's run with the PDQ setting in effect at creation |
#3
| |||
| |||
|
| On 02/08/12 18:59, John Hardin wrote: All: I have some SP code that has a SET PDQPRIORITY N directive inside an IF ... THEN block that checks the application configuration table to see whether PDQ is enabled. Can anyone (Art, ideally) confirm whether or not this will actually work to control PDQ and will NOT use PDQ if the IF block evaluates to false? I am getting objections to this from someone who seems to believe that the SP will use PDQ if a SET PDQPRIORITY directive appears anywhere in it at compile time... TIA That somebody is correct. SP's run with the PDQ setting in effect at creation / update statistics time. -- Ciao, Marco __________________________________________________ ____________________________ Marco Greco /UK /IBM Standard disclaimers apply! Structured Query Scripting Language http://www.4glworks.com/sqsl.htm 4glworks http://www.4glworks.com Informix on Linux http://www.4glworks.com/ifmxlinux.htm _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I am getting objections to this from someone who seems to believe that the SP will use PDQ if a SET PDQPRIORITY directive appears anywhere in it at compile time... |
#6
| |||
| |||
|
|
On Thu, 02 Aug 2012 17:59:00 +0000, John Hardin wrote: I am getting objections to this from someone who seems to believe that the SP will use PDQ if a SET PDQPRIORITY directive appears anywhere in it at compile time... That person has clarified, they were speaking of: set pdqpriority 10; create procedure abcd(...) If this is done, and the application is configured to not use PDQ (e.g. the embedded SET PDQPRIORITY N directives are _not_ executed because of the IF test) will the SP still use PDQ? Again, TIA. -- John Hardin KA7OHZ Senior Applications Developer, BI Specialist EPICOR Retail web: http://www.epicor.com email: <jhardin (AT) epicor (DOT) com --- Posted via news://freenews.netfront.net/ - Complaints to news (AT) netfront (DOT) net --- _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#7
| |||
| |||
|
|
Yes, the procedure will always run with PDQPRIORITY 10. |
|
On Thu, Aug 23, 2012 at 7:33 PM, John Hardin <jhardin (AT) epicor (DOT) com> wrote: set pdqpriority 10; create procedure abcd(...) If this is done, and the application is configured to not use PDQ (e.g. the embedded SET PDQPRIORITY N directives are _not_ executed because of the IF test) will the SP still use PDQ? |
#8
| |||
| |||
|
|
On Thu, 23 Aug 2012 20:00:55 -0400, Art Kagel wrote: Yes, the procedure will always run with PDQPRIORITY 10. Okay. Thanks, Art. In the initial scenario, assuming the SP is /not/ created with PDQPRIORITY in effect as shown below, does an IF block around a PDQPRIORITY statement within the SP allow the SP to intelligently decide whether or not to use PDQ at runtime? On Thu, Aug 23, 2012 at 7:33 PM, John Hardin <jhardin (AT) epicor (DOT) com> wrote: set pdqpriority 10; create procedure abcd(...) If this is done, and the application is configured to not use PDQ (e.g. the embedded SET PDQPRIORITY N directives are _not_ executed because of the IF test) will the SP still use PDQ? -- John Hardin KA7OHZ Senior Applications Developer, BI Specialist EPICOR Retail web: http://www.epicor.com email: <jhardin (AT) epicor (DOT) com --- Posted via news://freenews.netfront.net/ - Complaints to news (AT) netfront (DOT) net --- _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
![]() |
| Thread Tools | |
| Display Modes | |
| |