November 20, 2007 at 9:05 pm
I believe you've hit the nail on the head... not sure even a "by value" would help on such a recursive call...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 21, 2007 at 4:26 am
Recursive? Are you seeing something I'm too dumb to realize?
November 21, 2007 at 6:29 am
I'd say that your approach was probably not the most efficient way to do things - your second call executes 1.7 million page io - I wouldn't want calls like that on a prod server - forget duration -it's affected by far too many other factors - io is always a true reading and 1.7 million is not good.
[font="Comic Sans MS"]The GrumpyOldDBA[/font]
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
November 21, 2007 at 6:39 am
For sure, but the big question is why is there such a big difference between the two call styles? (I have since discovered that the reference to CURRENT_TIMESTAMP in the function argument is the cause, but I suspect that is an error -- it should only capture the value of CURRENT_TIMESTAMP once, when making the function call IMHO.)
Viewing 4 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply