Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to optimize parameter list?
Message
From
16/04/2012 14:52:14
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01541591
Message ID:
01541729
Views:
28
>>>>Ducking issues again? Seriously, how can you justify 100's of round trips to the data base to "keep it clean and simple" vs 1 single call to get all data?
>>>
>>>Seriously, I do not call a round trip to the server a big hit. That's just the way it's done. My point was based on software maintenance, which is way more expensive than server hits.
>>
>>Round trip to the server is a hit. If you can do one SP that works with the list in one call (in SQL 2008 and up you better pass this table as TVP) then go for it and not for 100 individual calls. The performance is important.
>
>Naomi, I know performance is important. I didn't just fall off the turnip truck. It's just that the thought of a call with quote, hundreds or thousands, unquote of parameters makes me nervous.

But hundreds or thousands of trips to the server don't? Glad you don't write our data access...
Previous
Reply
Map
View

Click here to load this message in the networking platform