|  | Posted by Stephen Howe on 09/01/07 19:03 
> Now, what can you do to reduce the amount the network traffic? If you> feel that you don't need Unicode, use varchar for you character data
 > and not nvarchar. (But keep in mind that the day when you need to support,
 > say, Japanese may be closer in time than you think.) But most of all,
 > trim your result sets from unneeded columns. Make sure that there are
 > not a lot of "SELECT *" in your queries, and that you don't retrieve
 > rows you don't need.
 >
 > Furthermore, network traffic is not only about bytes, but also about
 > roundtrips. Don't get the details of the order, and then make one
 > call for each product on the order, but get all data at once.
 
 Pardon me for interjecting here Erland, I am not disagreeing with you but
 agreeing, but this subject seems hard to tackle.
 I have thought that network packet traffic contributes a lots, you ideally
 want "package" as many results as you can into a packet (I mean this is
 Nagle's algorithm) but I see precious little written on this subject. I see
 nothing in Microsoft Whitepapers or anything else.
 
 For example if I make a straight SELECT off a table for a Forward, ReadOnly
 Cursor iusing ADO, what is the ideal Cache Size for maximum throughput?
 It seems to me that it ought be Network Packet Size / Size of record. I am
 sure there are some overhead bytes.
 It ought to be determinable rather than just empirical guess work.
 But how?
 
 Thanks
 
 Stephen Howe
  Navigation: [Reply to this message] |