|
| Dataset or xml in remoting. |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.remoting.
| archanatrialproduct2004@yahoo.com |
| GOOD ANSWER |
Hi all,
I am having one question related to data transfer in remoting.
I have two options to use in myapplication pass data either as xml or as dataset.
Which one is better way to transfer? i read many post on net sayung that dataset trasfer creates performance issue in remoting. can anyone elaborate more on this point.
if i use xml for transfer will it be performance improvement over dataset?.
thanks in advance.
|
|
|
| |
|
|
| |
| |
| miher |
| GOOD ANSWER |
Hi,
I don't think that i'm the one who will give You the ultimate answer, but i share what i know about this and hope it helps You while You make the choice. When You pass DataSets, those get serialized to an xml string (by default). Since a DataSet has much information(other that the data itself) in it, its xml serialized form can grow really large. I faced sometimes the issue that when i tried to return Dataset with lots of data in it, I got an OutOfMemoryException, since the string's size that the runtime tried to allocate for the serialized form was too big. (This issue can be avoided if You set the remotingformat to binary. ). Also since the DataSet will serialize all its state, You might be paying time for serializing information You will not need on the other side. What i would like to tell by this, that when using DataSets You might be transferring information, that is not needed to be transferred, and that could affect performance.
As i see, if You working with small amounts of data, passing DataSets is simpler, since You get the serialization mechanism out-of-box and also all features of the DataSet, however if You plan for large amounts of Data, or You aim for less load, I would say to use some other format of transferring data, since with that You can send only the relevant data.
Hope You find this useful. -Zsolt
"Archana" <Click here to reveal e-mail address> wrote in message news:Click here to reveal e-mail address... [Original message clipped]
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|