|  | Posted by  raymond_b_jimenez on 09/01/07 10:50 
> Rather than blaming TDS, maybe you should look into trimming the> application. TDS is not going to change.
 BTDT. Especially with Profiler, which is a great tool.
 
 > First step is to analyse what is making up those 25 Mbps. Is it SQL
 > commands? Or is data? SQL batches are, as I discussed in my previous post,
 > Unicode by necessity. Data is another matter.
 Queries and replies. Replies are in the 3-4 packets range. Lots of
 stored procedures of course.
 
 > As I said, I have not eavesdropped on TDS, but I would execpt varchar
 > data to be sent as bytes. That is, the value 'character' would be eleven
 > bytes on the wire. On the other hand, the value N'character' would be
 > 20 bytes. And of course, metadata goes as Unicode.
 Don't accept anything for granted. Seeing is a completely different
 experience.
 
 > 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.
 BTDT
 
 > 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.
 You're absolutely correct! That's why I got another thread going on
 about "SET NO_BROWSETABLE ON". This one seems particularly annoying,
 as it seems it is getting inserted automatically by ADO.Net. Accounts
 for about 20% of the data traffic, and one additional round trip do
 the DB server for each query.
 
 > And, yes, while you would have seen a gross cut if TDS was UTF-8 on
 > the wire and not UTF-16, a Chinese user would have seen an increase
 > instead.
 Wouldn't it be great to have an option?
 
 rj
  Navigation: [Reply to this message] |