Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedure always faster?
Message
From
01/09/2006 09:20:55
 
 
To
01/09/2006 08:51:17
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:
01150351
Views:
35
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform