Discussion:
Dataset or xml in remoting.
(too old to reply)
Archana
2008-12-18 14:08:09 UTC
Permalink
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
2009-01-12 12:52:43 UTC
Permalink
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
Post by Archana
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.
Loading...