<?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 SDE View poor performance in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652025#M36932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with showing an SDE View as a data layer in ArcMap. It is very slow to render when zooming and panning etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my set-up;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE 10.1 for Oracle 11g R2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All geometries are stored as MDSYS.SDO_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All feature classes has spatial indexes created using AddSpatialIndex_management tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two feature classes, HV_LINE and HV_CABLE. User wants to see them as a single map layer for reasons beyond my control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created SDE View called VW_HV_CONDUCTORS using 10.1 tool with following view creation statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select ASSETID, VOLTAGE, MATERIAL, FEEDER_NAME,SHAPE From HV_LINE Where STATUS='LIVE'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Union All&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select ASSETID, VOLTAGE, MATERIAL, FEEDER_NAME,SHAPE From HV_CABLE Where STATUS='LIVE'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ASSETID is unique across the entire database, I confirmed it. STATUS field has attribute index on both feature classes. Both feature classes have up-to-date spatial index and have same coordinate system of WGS_84.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The view creates fine. Making query on the view in Oracle-SQL works reasonably well. Query in SQL on this view without where clause finishes under 10 seconds with SHAPE field ommitted from the query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add this view as a layer in ArcMap document, ArcMap asks me to choose unique key and I selected ASSETID. I also selected WGS_84 as the coordinate system. The map data frame is also in WGS_84 coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I add this as layer, zooming and panning becomes too slow... I checked with Oracle, it is using CPU continuously. The layer eventually renders but it is painfully slow. I tried removing this view layer and adding HV_LINE and HV_CABLE as individual layers. This works absolutlely fine when zooming etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea on why the SDE view is performing slow in ArcMap? This map document will be shared as mapping service and will be used in a FlexViewer application. So any help resolving this issue will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 01:27:09 GMT</pubDate>
    <dc:creator>VishApte</dc:creator>
    <dc:date>2012-09-28T01:27:09Z</dc:date>
    <item>
      <title>SDE View poor performance</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652025#M36932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with showing an SDE View as a data layer in ArcMap. It is very slow to render when zooming and panning etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my set-up;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE 10.1 for Oracle 11g R2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All geometries are stored as MDSYS.SDO_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All feature classes has spatial indexes created using AddSpatialIndex_management tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two feature classes, HV_LINE and HV_CABLE. User wants to see them as a single map layer for reasons beyond my control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created SDE View called VW_HV_CONDUCTORS using 10.1 tool with following view creation statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select ASSETID, VOLTAGE, MATERIAL, FEEDER_NAME,SHAPE From HV_LINE Where STATUS='LIVE'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Union All&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select ASSETID, VOLTAGE, MATERIAL, FEEDER_NAME,SHAPE From HV_CABLE Where STATUS='LIVE'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ASSETID is unique across the entire database, I confirmed it. STATUS field has attribute index on both feature classes. Both feature classes have up-to-date spatial index and have same coordinate system of WGS_84.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The view creates fine. Making query on the view in Oracle-SQL works reasonably well. Query in SQL on this view without where clause finishes under 10 seconds with SHAPE field ommitted from the query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add this view as a layer in ArcMap document, ArcMap asks me to choose unique key and I selected ASSETID. I also selected WGS_84 as the coordinate system. The map data frame is also in WGS_84 coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I add this as layer, zooming and panning becomes too slow... I checked with Oracle, it is using CPU continuously. The layer eventually renders but it is painfully slow. I tried removing this view layer and adding HV_LINE and HV_CABLE as individual layers. This works absolutlely fine when zooming etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea on why the SDE view is performing slow in ArcMap? This map document will be shared as mapping service and will be used in a FlexViewer application. So any help resolving this issue will be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 01:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652025#M36932</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2012-09-28T01:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: SDE View poor performance</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652026#M36933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using SDO_GEOMETRY spatial constraints on this view From SQL*Plus?&amp;nbsp; I expect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the title of this thread should be "Poor SDO_GEOMETRY view performance with UNION ALL join",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;since all ArcSDE is doing is making the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 10:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652026#M36933</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-09-28T10:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle View poor performance (solved)</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652027#M36934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could fix the problem. Here is what I did;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Dropped the existing spatial indexes on HV_LINE and HV_CABLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Select Distinct a.SHAPE.SDO_GTYPE From &amp;lt;Tables&amp;gt; a; All values were 3002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Added a spatial check constraint on both tables as SHAPE.SDO_GTYPE=3002&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Recreated rtree spatial indexes with PARAMETERS 'layer_gtype=LINE'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Dropped and recreated the view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. In MXD, removed and readded the view as layer. Spcified primary key field and SRID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And it all works fine as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 02:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-view-poor-performance/m-p/652027#M36934</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2012-10-01T02:05:03Z</dc:date>
    </item>
  </channel>
</rss>

