<?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 Spatial View Created w/Linked Server Very Slow Rendering?? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648023#M36673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have several spatial views that utilize tables from a linked server.&amp;nbsp; When viewed in SQL Server Management Studio the queries run no problem, but if I try viewing them in Catalog, Map or Reader they bog down and sometimes just hang until the user ends the process.&amp;nbsp; I've put in a incident with ESRI and they can't seem to locate where the problem is coming from.&amp;nbsp;&amp;nbsp; This has been an ongoing issue and there doesn't seem to be a consistent pattern to the slow rendering.&amp;nbsp; We're using version 10 and SQL Server 2008 and SDE tables are compressed and analyzed nightly.&amp;nbsp; Anybody else experienced this or use a similar process?&amp;nbsp; At this point I'll take any and all suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 20:48:38 GMT</pubDate>
    <dc:creator>brettangel</dc:creator>
    <dc:date>2012-05-11T20:48:38Z</dc:date>
    <item>
      <title>Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648023#M36673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have several spatial views that utilize tables from a linked server.&amp;nbsp; When viewed in SQL Server Management Studio the queries run no problem, but if I try viewing them in Catalog, Map or Reader they bog down and sometimes just hang until the user ends the process.&amp;nbsp; I've put in a incident with ESRI and they can't seem to locate where the problem is coming from.&amp;nbsp;&amp;nbsp; This has been an ongoing issue and there doesn't seem to be a consistent pattern to the slow rendering.&amp;nbsp; We're using version 10 and SQL Server 2008 and SDE tables are compressed and analyzed nightly.&amp;nbsp; Anybody else experienced this or use a similar process?&amp;nbsp; At this point I'll take any and all suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648023#M36673</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2012-05-11T20:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648024#M36674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doing a join through a linked server is usually slow, and occassionaly very, very slow,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;usually because the foreign table isn't available for SQL optimization.&amp;nbsp; Oracle has some&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tuning parameters that sometimes make extremely slow DBLINK accesses only painfully&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; slow; I haven't seen that level of control available in SQL-Server (but I haven't really&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; looked, either).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only real solution is to cache all the rows locally (replicate the join table in the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;local server).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 12:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648024#M36674</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-13T12:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648025#M36675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince, the joined view works great in SSMS, but crawls when being viewed in any ESRI product so I believe the slow rendering is related to ESRI software.&amp;nbsp; I had ESRI poke around and run a trace, but haven't heard back from them.&amp;nbsp; I'm currently looking into the cache solution, but being a bit of a hack at this I'm not familiar with this process.&amp;nbsp; In the meantime I've modified the query and made some symbology changes in the maps and that seemed to help, but it's bothersome to not know why.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-B&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 16:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648025#M36675</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2012-05-15T16:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648026#M36676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have an index on the symbology column(s)?&amp;nbsp; A compound key of the symbology&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;column and join key would likely help join performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 17:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648026#M36676</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-15T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648027#M36677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not have a index on the symbology columns, but that sure makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; I'm running into issues turning on schema-binding and creating an index, but will report back with results.&amp;nbsp; Are you asking about an index on the table or view?&amp;nbsp; I'm assumed the view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-B&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 17:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648027#M36677</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2012-05-15T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648028#M36678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't index views, only tables.&amp;nbsp; Views use the indexes of the tables (a view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is basically a preparsed SELECT statement), but they generally can't use more&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; than one index per table (it's the optimizer's job to determine which index is used,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; and the optimizer across to a linked server doesn't have the necessary statistics&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; to choose wisely).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 18:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648028#M36678</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-15T18:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648029#M36679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m also trying to create a view with a data table from a linked server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately it doesn´t work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What idid:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. creating a view using this statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T WPB_2 -t WPB_join -c "*" -i sde:sqlserver:ARCGIS2010 -u sde -p Password -D GeoDB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I tried to modify the view in sql server management studio using the same syntax as i used for a different view I created before:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wpb.Element, wpb.Name, wpb.Totaal_debiet,wpb.Gemiddelde_druk, wpb.Totaal_opslag, wpb.Status,sde.WPB_join.Status AS Expr1, sde.WPB_join.LOCATIE, sde.WPB_join.PLAATS_, sde.WPB_join.Shape, sde.WPB_join.ADRES, sde.WPB_join.OBJECTID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PI_AF_LINKEDSERVER.BrabantWater].DataT.Snapshot_WaterProductieBedrijven AS wpb INNER JOIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde.WPB_join ON wpb.Name = sde.WPB_join.ARC_Address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works now and is my preffered approach too, BUT is not much faster then joining the data in ArcMap via joins and relates. It´s just a little more convinient to have the feature class as a whole in the sde with all the columns you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also make sure you use non versioned tables as underlying tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still if I want to create the view with sdetable tools could someone give me their syntax for creating views with data in a linked database? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The second approach is that I created a join in SQL Server Management Studio and then tried to register it. Prerequisite for the view is that it is schema bound otherwise the index cannot be build. When I now want to create this view and click on "bind to Schema" in SQL Management Studio I get an error message: Remote access is not allowed from within a schema-bound object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I now create a view which can be registered with SDE and joines data from a Linked Server???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 11:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648029#M36679</guid>
      <dc:creator>CarstenVock</dc:creator>
      <dc:date>2012-07-04T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial View Created w/Linked Server Very Slow Rendering??</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648030#M36680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot use ArcSDE tools to build complex views, and I doubt you ever will.&amp;nbsp; The&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;best way to handle this is to create empty tables with the columns you intend to join,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and use this for a simple view, then edit the view (keeping the same columns in the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;same order and the same type -- to do otherwise risks unpredictable behavior).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But first you must delete all the spatial data loaded as the SDE user, create a user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to own the spatial data, and load the data again as that user (the 'sde' schema &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should only ever contain the tables created by ArcSDE, and then only be used for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE administration).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Performance in a linked database can range from poor to awful to miserable.&amp;nbsp; I've never&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;seen it better than poor, so I don't recommend this solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-view-created-w-linked-server-very-slow/m-p/648030#M36680</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-07-04T13:21:51Z</dc:date>
    </item>
  </channel>
</rss>

