Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedure always faster?
Message
From
27/07/2006 04:08:37
 
 
To
26/07/2006 16:31:46
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Database:
MS SQL Server
Miscellaneous
Thread ID:
01140442
Message ID:
01140585
Views:
25
>The dynamic SQL is 2 times faster than the SP. Can you guys confirm this?

The benchmark rings a bell, but I have no link / reference at the moment. AFAIR the gist was, that on identical dynamic queries (at least) the whole execution plan is cached, whereas with SP the parameter is always "inserted" - but they wanted to optimize further. So perhaps a different [better?] test would be to have lnPercentage change inside the loop. And since when are you mDotting the left side of assignments as in
m.lnPercentage = 30
m.lnElapsed = seconds() - m.a
??

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform