asp.net - What's the fastest way to load a text or ntext SQL Server column? -
I make it as straightforward as possible, but sometimes the query takes 3+ seconds. Using a query with the original parameter:
Choose from MyStream (NOLOCK) from TextStuff Where MyInfoID = @ MyInfoID
Is there a faster way For doing this? Performance improving on changing the ntext
column in nvarchar (MAX)
column
I will go against some political winds here and say ...
If you do not need 16-bit Unicode capabilities, then varchar (MAX) Instead of ntext instead of Nvarchar (MAX), the storage and transfer time will be cut in half for the text field using varchar (MAX).
If you Seriously the networks are IO-bound (example: your "text field" megabyte-range), so you can consider using data compression They are: Store a zipped version of the text in a verb (instead of text). Thus, shuffling the results on the network is all compressed.
(The new "Compression" attributes of SQL Server 2008 are actually Here will not help ... the traffic on the wire will be the same.)
Comments
Post a Comment