<?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: Tableview in ArcSDE in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/tableview-in-arcsde/m-p/531983#M30136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What storage type is being used in your layer?&amp;nbsp; If the storage is ST_GEOMETRY or SDO_GEOMETRY,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then you really shouldn't use 'sdetable -o create_view' (instead, create the view with SQL, and register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the result with 'sdelayer -o register').&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of Oracle are you using (A.B.C.D notation)? I've seen extremely ugly query plans from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oracle 10gR1 (10.1.0.2) servers on views over SDO_GEOMETRY layers that resulted in 8 minute &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queries on a&amp;nbsp; view with 2000 rows (with a 7M row base table), but haven't seen anything like that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with modern Oracle builds (unless the table was a remote view into another instance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that views can generate unhealthy queries without a spatial component, but that some&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatial comparisons can be very expensive, so aligning the spatial comparison on the first table in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the join is much more likely to hit the right index.&amp;nbsp; You should also explore the impact of hints and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;various indexes, and of table join order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 18:19:14 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-10-25T18:19:14Z</dc:date>
    <item>
      <title>Tableview in ArcSDE</title>
      <link>https://community.esri.com/t5/data-management-questions/tableview-in-arcsde/m-p/531982#M30135</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;SPAN&gt;I've just started to learn ArcSDE, and I have a question about creating views. My database is Oracle Spatial and uses SDE. In my SDE-geodatabase there are several featureclasses; both polygons, polylines and points. I'm going to create a view based on some of the polyline featureclasses, with some of the attributes from the classes. I've create a geodatabasetable containing the featureinformation using SQL (Union). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create the view using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"%SDEHOME%"\bin\sdetable -o create_view ^
-T DV_Points ^
-t "RiverPoints,dv_points" ^
-c "dv_points.description,dv_points.historic,dv_points.station,RiverPoints.SHAPE,RiverPoints.OBJECTID" ^
-w "RiverPoints.OBJECTID = dv_points.OBJECTID" ^
-i %1 -s %2 -u %3 -p %4&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query executes ok, and the view shows up in the geodatabase. But it's really slow. The view takes contains around 2000 features and it takes several minutes (10-30) to draw or query it. Is it right to use just one of the featuresclasses SHAPE-field (in the c-parameter), or should I use the shape-field from every featureclass?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Torbjørn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/tableview-in-arcsde/m-p/531982#M30135</guid>
      <dc:creator>TorbjørnDalløkken</dc:creator>
      <dc:date>2021-12-11T23:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tableview in ArcSDE</title>
      <link>https://community.esri.com/t5/data-management-questions/tableview-in-arcsde/m-p/531983#M30136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What storage type is being used in your layer?&amp;nbsp; If the storage is ST_GEOMETRY or SDO_GEOMETRY,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then you really shouldn't use 'sdetable -o create_view' (instead, create the view with SQL, and register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the result with 'sdelayer -o register').&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of Oracle are you using (A.B.C.D notation)? I've seen extremely ugly query plans from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oracle 10gR1 (10.1.0.2) servers on views over SDO_GEOMETRY layers that resulted in 8 minute &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queries on a&amp;nbsp; view with 2000 rows (with a 7M row base table), but haven't seen anything like that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with modern Oracle builds (unless the table was a remote view into another instance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind that views can generate unhealthy queries without a spatial component, but that some&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatial comparisons can be very expensive, so aligning the spatial comparison on the first table in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the join is much more likely to hit the right index.&amp;nbsp; You should also explore the impact of hints and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;various indexes, and of table join order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 18:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/tableview-in-arcsde/m-p/531983#M30136</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-10-25T18:19:14Z</dc:date>
    </item>
  </channel>
</rss>

