Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It would seem that there are a few issues here. </p> <ol> <li><p>First, WCF services, being stateful unless otherwise configured, have to be activated on every new connection. This activation is slowed by SSL due to additional trips back and forth for authentication. As one of the questions/suggestions led to above, try to make the initial connection and then attempt to execute the method 10 times or so and measure the time it takes for subsequent calls, it should be much faster after the initial call. In fact, <a href="http://msdn.microsoft.com/en-us/library/bb310550.aspx" rel="nofollow">according to MS</a>, WCF is more efficient in handling calls than the "old school" ASMX, but is still subject to an activation time.</p></li> <li><p>Next, WCF has some crazy serialization action happening in the background and does not play well with a DataSet object, because of the insane amounts of overhead and metadata that the DataSet object has. If a larger dataset MUST be used, you should change the serialization of the stream to MTOM or Binary (but that only works if your clients are also WCF/.NET based). The other option would be to not use DataSets, which is probably the best option when it comes to WCF. <a href="http://blogs.microsoft.co.il/blogs/oshvartz/archive/2011/07/23/wcf-performance-using-datasets-part-2.aspx" rel="nofollow">Here is a link to an interesting article about the speed of serializing datasets</a>.</p></li> </ol> <p><a href="http://www.hanselman.com/blog/ReturningDataSetsFromWebServicesIsTheSpawnOfSatanAndRepresentsAllThatIsTrulyEvilInTheWorld.aspx" rel="nofollow">An additional article on why not to use DataSets.</a></p> <p>ref:</p> <p><a href="http://msdn.microsoft.com/en-us/library/bb310550.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/bb310550.aspx</a></p> <p><a href="http://blogs.microsoft.co.il/blogs/oshvartz/archive/2011/07/23/wcf-performance-using-datasets-part-2.aspx" rel="nofollow">http://blogs.microsoft.co.il/blogs/oshvartz/archive/2011/07/23/wcf-performance-using-datasets-part-2.aspx</a></p> <p><a href="http://www.hanselman.com/blog/ReturningDataSetsFromWebServicesIsTheSpawnOfSatanAndRepresentsAllThatIsTrulyEvilInTheWorld.aspx" rel="nofollow">http://www.hanselman.com/blog/ReturningDataSetsFromWebServicesIsTheSpawnOfSatanAndRepresentsAllThatIsTrulyEvilInTheWorld.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload