Multimobile Development: Building Applications for any Smartphone
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.
Reply to this message...
Vote that this is a GOOD answer... (6 votes from other users already)
 
 
    
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]

Reply to this message...
Vote that this is a GOOD answer... (4 votes from other users already)
 
 
 
point
System.Data.DataSet
System.OutOfMemoryException




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734