Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Remoting and Datasets

Remoting and Datasets

Scheduled Pinned Locked Moved .NET (Core and Framework)
wcfcomxmlquestiondiscussion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kir Birger
    wrote on last edited by
    #1

    http://support.microsoft.com/kb/829740 This article would have you use a wrapper class that serializes more nicely than DataSet, and in fact it really does halve the size of the dataset (in serialized form). However, the time it takes to serialize a decently sized dataset 100 times to the time it takes to serialize the surrogate 100 times is 6 seconds to 30... Nonetheless it seems like the overall consensus is that it's good to avoid sending DataSets across remoting and soap. What are your thoughts and solutions on the matter?

    K 1 Reply Last reply
    0
    • K Kir Birger

      http://support.microsoft.com/kb/829740 This article would have you use a wrapper class that serializes more nicely than DataSet, and in fact it really does halve the size of the dataset (in serialized form). However, the time it takes to serialize a decently sized dataset 100 times to the time it takes to serialize the surrogate 100 times is 6 seconds to 30... Nonetheless it seems like the overall consensus is that it's good to avoid sending DataSets across remoting and soap. What are your thoughts and solutions on the matter?

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      I ran into something like this a while back. We had large files that we needed to send across a web service. I wrote an article on the solution I came up with: http://www.codeproject.com/cs/webservices/sending_files_via_webserv.asp[^] Note if you do have a web service some of the new WSE 3.0 allow some pretty nice features for attaching files. It means that WSE 3.0 needs to be installed, but some nice stuff comes with it. Anyway, my article is about files, but you can certainly take other large objects and zip them down and encode them and pass them along a cdata node. Anyway, I don't know if that will help you out or not. Ben

      K 1 Reply Last reply
      0
      • K kubben

        I ran into something like this a while back. We had large files that we needed to send across a web service. I wrote an article on the solution I came up with: http://www.codeproject.com/cs/webservices/sending_files_via_webserv.asp[^] Note if you do have a web service some of the new WSE 3.0 allow some pretty nice features for attaching files. It means that WSE 3.0 needs to be installed, but some nice stuff comes with it. Anyway, my article is about files, but you can certainly take other large objects and zip them down and encode them and pass them along a cdata node. Anyway, I don't know if that will help you out or not. Ben

        K Offline
        K Offline
        Kir Birger
        wrote on last edited by
        #3

        Thanks for your response. I looked at your solution and it may work well enough for files, but in serialization and compression it's really the file type that matters. You created a pseudo-schema, which is almost like a dataset in itself. I'm just trying to find the quickest way to do it. The problem with the Surrogate that MSDN suggests is the large overhead to get to it. A simple object[][] (light but a pain to use) outperforms DataSet and DataSurrogate (zipped and unzipped) significantly on a small number of rows, but as the actual size increases, the difference fades.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups