<?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 Re: SDE Spatial Views and Spatial Indexes in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665794#M37731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been able to publish your view as a mapservice?&amp;nbsp; If so, have do you plan on using the data (e.g. Do you intend to perform queries on the mapservice and it's associated view?&amp;nbsp; I have been working with a view from Oracle and I am encountering fundamental flaws with how the client is communicating back to the database (where clause and sort by appears to be dropped when the SQL statement is sent to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some threads that touch on these issues and I don't believe they are database specific so it would occur in Oracle, SQL Server, Postgres:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216224"&gt;Fundamental flaw when opening attribute tables in ArcGIS Pro?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216276-available-values-for-a-query-layer-subset-selection"&gt;https://community.esri.com/thread/216276-available-values-for-a-query-layer-subset-selection&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 17:23:35 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2018-06-13T17:23:35Z</dc:date>
    <item>
      <title>SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665787#M37724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question in regards to Spatial Views. I am trying to minimize redundancy in my parcel dataset by using spatial views. I have different tabular sets that I join to the managed parcel geometries so that I don't need to re-process feature classes constantly to get updated geometries. This has been successful to this point in ArcMap and consumed in a MXD based map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently tried to use the spatial view in a msd based map service and received a High Warning that my layer did not have a spatial index. I found this odd at first, because the feature class that is the source of the geometry does have a spatial index, so why isn't that used in the spatial view? I tried to create a spatial index on the spatial view and that isn't allowed (which I expected).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I'm just looking for confirmation that the best way to use my RDBMS is to redundantly store geometry.....which would sort of laugh in the face of having a RDBMS. I mean SDE feature classes are essentially views anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam Z&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665787#M37724</guid>
      <dc:creator>AdamZiegler</dc:creator>
      <dc:date>2013-01-15T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665788#M37725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When creating a spatial view, ArcGIS will not create a spatial index (or any index) on the view (DBMS' may not support indexes on view at all unless it is a materialized view), the key aspect is to make sure the underlying database tables that are referenced in the view have the appropriate indexes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665788#M37725</guid>
      <dc:creator>BrentPierce</dc:creator>
      <dc:date>2013-01-17T19:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665789#M37726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I too have seen this issue before long ago.&amp;nbsp; Please post your environment info along with a sdelayer -o describe_long of the feature class and spatial view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my situation, i believe my problem was passing the wrong srid to view creation command that prevented the use of the spatial index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 01:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665789#M37726</guid>
      <dc:creator>anthonysanchez</dc:creator>
      <dc:date>2013-01-18T01:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665790#M37727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When creating a spatial view, ArcGIS will not create a spatial index (or any index) on the view (DBMS' may not support indexes on view at all unless it is a materialized view), the key aspect is to make sure the underlying database tables that are referenced in the view have the appropriate indexes.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;-Brent&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, that is good.&amp;nbsp; As long as the geometries being used are indexed everything should be fine.&amp;nbsp; I can ignore the High Warnings that is given by ArcGIS Server when publishing the view out as a service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam Z&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 18:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665790#M37727</guid>
      <dc:creator>AdamZiegler</dc:creator>
      <dc:date>2013-01-29T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665791#M37728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I too have seen this issue before long ago.&amp;nbsp; Please post your environment info along with a sdelayer -o describe_long of the feature class and spatial view.&lt;BR /&gt;&lt;BR /&gt;In my situation, i believe my problem was passing the wrong srid to view creation command that prevented the use of the spatial index.&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; The view I created was actually using the geometry of an existing feature class, so I did not need to specify the SRID (not using Oracle Spatial). Our RDBMS is Oracle 11g (11.2.0.3) on AIX 6.2. SDE is 10.0 (and I actually just discovered that no SPs have been applied...which will be remedied tomorrow). The long description of the table is attached.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam Z&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 19:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665791#M37728</guid>
      <dc:creator>AdamZiegler</dc:creator>
      <dc:date>2013-01-29T19:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665792#M37729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please expand on this?&lt;/P&gt;&lt;P&gt;We can message if you like?&lt;/P&gt;&lt;P&gt;I am trying to publish a view as a map service, but I get the high warning message saying that the view does not have a spatial index.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;I&amp;nbsp; am on&lt;/P&gt;&lt;P&gt;Microsoft SQL server 2014.120.5579.0&lt;/P&gt;&lt;P&gt;EGDB is 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found these resources, but would like some help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.4/manage-data/using-sql-with-gdbs/create-spatial-indexes-on-tables-with-an-st-geometry-column.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/10.4/manage-data/using-sql-with-gdbs/create-spatial-indexes-on-tables-with-an-st-geometry-column.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But there is no information on doing this on Microsoft SQL server.&lt;/P&gt;&lt;P&gt;Listing 2 on this (&lt;A href="http://www.esri.com/news/arcuser/1012/files/querylayers.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.esri.com/news/arcuser/1012/files/querylayers.pdf&lt;/A&gt;)&amp;nbsp;article says:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;create&lt;/SPAN&gt; spatial &lt;SPAN class="keyword token"&gt;index&lt;/SPAN&gt; MyTABLE _ shape &lt;SPAN class="keyword token"&gt;on&lt;/SPAN&gt; MyTABLE _ tbl &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;shape&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;USING&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;GEOMETRY&lt;/SPAN&gt; _ GRID &lt;SPAN class="keyword token"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;BOUNDING _ BOX &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Xmin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;Ymin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;Xmax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;Ymax&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665792#M37729</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2021-12-12T04:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665793#M37730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spoke to ESRI support, and, as Brent above said, Spatial Indexes cannot be created on views.&lt;/P&gt;&lt;P&gt;They can only be created on the underlying fc and table that the view references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option may be to add multicolumn attribute indexes on fields from the underlying fc’s and tables that will be queried in the view.&lt;/P&gt;&lt;P&gt;Read&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; font-size: 9pt;"&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/creating-attribute-indexes.htm"&gt;&lt;SPAN style="text-decoration: underline;"&gt;http://desktop.arcgis.com/en/arcmap/10.3/manage-data/tables/creating-attribute-indexes.htm&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px;"&gt;&lt;SPAN style="margin: 0px; font-size: 9pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 16:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665793#M37730</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-06-13T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665794#M37731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been able to publish your view as a mapservice?&amp;nbsp; If so, have do you plan on using the data (e.g. Do you intend to perform queries on the mapservice and it's associated view?&amp;nbsp; I have been working with a view from Oracle and I am encountering fundamental flaws with how the client is communicating back to the database (where clause and sort by appears to be dropped when the SQL statement is sent to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some threads that touch on these issues and I don't believe they are database specific so it would occur in Oracle, SQL Server, Postgres:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216224"&gt;Fundamental flaw when opening attribute tables in ArcGIS Pro?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/216276-available-values-for-a-query-layer-subset-selection"&gt;https://community.esri.com/thread/216276-available-values-for-a-query-layer-subset-selection&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665794#M37731</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-06-13T17:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Spatial Views and Spatial Indexes</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665795#M37732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to publish the view as a map service.&lt;/P&gt;&lt;P&gt;I created the view using the 'create database view' tool&lt;/P&gt;&lt;P&gt;Then, registered the view with the geodatabase with ArcGIS Pro or ArcMap 10.5&lt;/P&gt;&lt;P&gt;I am using this map service in a agol web map to display the latest inspection record from a table, symbolized from a field.&lt;/P&gt;&lt;P&gt;In other words, the view is used to symbolize desired records.&lt;/P&gt;&lt;P&gt;I will not perform further queries on the view.&lt;/P&gt;&lt;P&gt;The only reason I wanted to create attribute index was so that the view would run faster (because I heard that over time, as data grows, views start lagging in performance draw times).&lt;/P&gt;&lt;P&gt;I will read up on the threads you posted, and let you know if I can think of something else regarding your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-spatial-views-and-spatial-indexes/m-p/665795#M37732</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-06-13T19:21:52Z</dc:date>
    </item>
  </channel>
</rss>

