Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedure always faster?
Message
From
01/09/2006 10:35:10
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
01/09/2006 09:20:55
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Database:
MS SQL Server
Miscellaneous
Thread ID:
01140442
Message ID:
01150372
Views:
45
>>You've completely missed the point. I'm simulating a thousand users hitting the server to run 1000 queries. Each of them calling a stored procedure is worse than if they ran the query directly.
>>
>
>I agree that sometimes it is more convenient and as efficient to use dynamic SQL. But my test results using your code show the stored proc is 20% faster.
>
>>Your test would be like all of the queries being cached and returned to one user.
>>
>
>>There are times when a stored procedure can be beneficial, but this isn't one of them.
>>
>
>That was my point in the "Speed" thread. You have one user generating 1000's of calls to the database server when you could probably handle it with one call to a stored proc.

Since I don't have a thousand pcs to test with, what else can I do? It is not a valid test to wrap the 1000 calls in an sp.
Previous
Reply
Map
View

Click here to load this message in the networking platform