Archives of the TeradataForum
Message Posted: Wed, 26 Oct 2005 @ 08:08:11 GMT
Subj: | | Re: Let me know how to incorporate dealy inside a procedure. |
|
From: | | McCall, Glenn David |
I am just curious, did you consider creating a "lock table" and precede your query with a locking for write clause? You wouldn't even need to
have any rows in the table.
For example something like this:
Locking Table KEY_TABLE FOR WRITE
Query1
;Query2
;Query3
;
Doing this would eliminate the loop, get the lock as soon as the preceeding process had completed and wouldn't use as many CPU
cycles?
Regards
Glenn Mc
|