Re: DataSet and best practice in 2.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



thanks again for your reply.
can you elaborate more about how WCF would change the game for
distributed apps ?
also,
everything over webservices serializes to xml, the question is which
objects serialize faster and slimmer output.. i think dataset is at the
lowest performance end of that matric.

David Browne wrote:
"sonic" <sonicsoul@xxxxxxxxx> wrote in message
news:1150220740.572705.97140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thanks for the reply.
i am indeed moving data across machine boundaries in a single
application. using dataset with different platforms wouldn't make much
sense.

as far as switching to binary serialization, that would mean switching
from webservices to remoting no ?

What I was thinking about as an easy change is to add a web method that
passes byte[]'s containing binary-serialized datasets. Not quite as fast as
remoting, and a bit dirty, but certianly easy.


Moreover, by the time you get around to solving this problem WCF will be
here, which changes the whole game for distributed apps.

that is a significant change. i was
wondering about datasets in webservices, and if it is worth creating
strongly typed collections for every purpose instead of using datasets.


I wouldn't. Collections serialize to XML as well so there's not that much
of a perf difference. And another new feature of .NET datasets is the
ability to exclude the schema in XML serializaion. This makes the XML
format of DataSets not too different from the XML formats for typed
collections.


David

.



Relevant Pages

  • Re: Serialization Question
    ... Note that this option can get tricky, as you are going to return an XML string from the web service method, which may not work for them. ... Create another object that has the clients format and transfer the information from your object to that object when the web routine that this client uses is hit. ... The only reason I can see is you are trying to serialize this information and present it, via some sort of service boundary, as XML, not as a serialized object. ... I would take the XML through a transformation to get the format you desire rather than attempt to have the object serialize differently. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Regarding performance on objects serialized to Xml - thoughts and code presented
    ... instance and add the XML to that. ... > StringWriter sW = new StringWriter; ... > XmlTextWriter XmlW = Xml.XmlTextWriter;> ... > // Serialize PlaceHolders ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Serialization Question
    ... files to a partner organisation and they are expecting an XML file of the ... The only reason I can see is you are trying to serialize this information ... If I had Address as Array(of String) then all parts of address would have ... How could I change things so the the XML file produced is of this format: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DataSet and best practice in 2.0
    ... is it as simple as overriding DataSets serialize method? ... The suggestion was to use Base64 encoding, not xml, to serialize the ... from webservices to remoting no? ...
    (microsoft.public.dotnet.framework.performance)
  • Re: DataSet and best practice in 2.0
    ... dataset to a byte, which has about 35,000 elements in the array. ... The suggestion was to use Base64 encoding, not xml, to serialize the ... as far as switching to binary serialization, ...
    (microsoft.public.dotnet.framework.performance)