<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Did any one else notice a slow down is Serialization from QueryTask from 2.2 to 2.3? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412606#M10692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I first noticed it in a FeatureLayer. I then tested a QueryTask for the same features(1000+). It was fast when I didn't return geometry. Then when I switched to returning Geometry it was much slower in 2.3 than in 2.2. I finally switch the whole project to 2.2 and was back to the performance that I was expecting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My client had thought it slowed down going to 2.2 from 1.x. Is this a progressive thing with each release the performance is getting worse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 19:38:51 GMT</pubDate>
    <dc:creator>HyrumErnstrom</dc:creator>
    <dc:date>2012-01-12T19:38:51Z</dc:date>
    <item>
      <title>Did any one else notice a slow down is Serialization from QueryTask from 2.2 to 2.3?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412606#M10692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I first noticed it in a FeatureLayer. I then tested a QueryTask for the same features(1000+). It was fast when I didn't return geometry. Then when I switched to returning Geometry it was much slower in 2.3 than in 2.2. I finally switch the whole project to 2.2 and was back to the performance that I was expecting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My client had thought it slowed down going to 2.2 from 1.x. Is this a progressive thing with each release the performance is getting worse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 19:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412606#M10692</guid>
      <dc:creator>HyrumErnstrom</dc:creator>
      <dc:date>2012-01-12T19:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Did any one else notice a slow down is Serialization from QueryTask from 2.2 to 2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412607#M10693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to reproduce this bug, what version of ArcGISServer are you using? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following code, please let me know if it needs to be tweaked to get the same performance slowdown that you are experiencing. I will be testing it against latest and previous releases. Using the code below, I did not experience a slowdown between 2.1, 2.2. and latest. If you can share service and/or code, that would help us reproduce the bug and hopefully fix it. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I've noticed is that there seems to be no difference in server response for ReturnGeometry=True and ReturnGeometry=False using sampleserver3. I just learned that this is a known server bug that is planned to be fixed in future releases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;
&amp;nbsp; &amp;lt;esri:Map WrapAround="True" x:Name="MyMap"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer ID="MyLayer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.Renderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleMarkerSymbol Color="Red" Size="15" Style="Circle"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.Renderer&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer&amp;gt;
&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&amp;nbsp; &amp;lt;StackPanel VerticalAlignment="Top" HorizontalAlignment="Center"&amp;gt;
&amp;nbsp; &amp;lt;Button&amp;nbsp; Content="Query" Click="Button_Click"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;CheckBox x:Name="ReturnGeom" IsChecked="False"/&amp;gt;
&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
 &amp;lt;/Grid&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
DateTime started;
&amp;nbsp; private void Button_Click(object sender, RoutedEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var queryTask = new QueryTask("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/FeatureServer/0")
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching = true
&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; var query = new Query() { ReturnGeometry = ReturnGeom.IsChecked.Value , Where = "1=1"};
&amp;nbsp;&amp;nbsp; queryTask.ExecuteCompleted += new EventHandler&amp;lt;QueryEventArgs&amp;gt;(queryTask_ExecuteCompleted);
&amp;nbsp;&amp;nbsp; started = DateTime.Now;
&amp;nbsp;&amp;nbsp; queryTask.ExecuteAsync(query);
&amp;nbsp; }

&amp;nbsp; void queryTask_ExecuteCompleted(object sender, QueryEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var elapsed = DateTime.Now.Subtract(started).TotalMilliseconds;
&amp;nbsp;&amp;nbsp; System.Diagnostics.Debug.WriteLine("Elapsed time (ms): {0}", elapsed);
&amp;nbsp;&amp;nbsp; (sender as QueryTask).ExecuteCompleted -= queryTask_ExecuteCompleted;
&amp;nbsp;&amp;nbsp; var l = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
&amp;nbsp;&amp;nbsp; if (e.FeatureSet != null)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var f in e.FeatureSet.Features)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Graphics.Add(f);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412607#M10693</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T18:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Did any one else notice a slow down is Serialization from QueryTask from 2.2 to 2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412608#M10694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm when I started a new project tried to recreate it I didn't find anything like I did from the existing project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The orginal project started in Silverlight 2.0 and has since been updated to Silverlight 3.0 then Silverlight 4.0. I'm wondering if there is any issues with the various Visual Studio upgrades that have caused this. I will look deeper into this and see if I can see what the issue might be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412608#M10694</guid>
      <dc:creator>HyrumErnstrom</dc:creator>
      <dc:date>2012-01-18T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Did any one else notice a slow down is Serialization from QueryTask from 2.2 to 2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412609#M10695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would be interested in what you find. At 2.0 (or maybe it was 2.1 - cant remember) the deserializer was optimized to 2-4 times faster than before (depending on the number of processors you PC have).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However there is also more data that can be requested and thereby deserialized, so if the data you are getting is larger, it might be slightly slower (you can double-check in Fiddler if you get a larger payload back, and they try and tweak the parameters to get the same data).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 00:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/did-any-one-else-notice-a-slow-down-is/m-p/412609#M10695</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2012-01-20T00:13:10Z</dc:date>
    </item>
  </channel>
</rss>

