<?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 Hosted feature layer size same for subset of data in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223463#M48406</link>
    <description>&lt;P&gt;I created a hosted feature layer with all its features (294162 features) and the size is 199.156MB. I then added a definition query in ArcGIS Pro to show only the first 20 features. When I published the subset of data as a hosted feature layer, the size is 199.18MB. The subset layer shows 20 features in the attribute table.&lt;/P&gt;&lt;P&gt;Why would the size of the subset layer with 20 features be the same (or actually slightly larger) than the original layer with 294162 features?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original layer details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1666200751153.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53974i0D55297A5AE17274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1666200751153.png" alt="julian_svcs_0-1666200751153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_1-1666200776196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53975i3D9A2339301E41B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_1-1666200776196.png" alt="julian_svcs_1-1666200776196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subset layer details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_2-1666200820189.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53976i3E524D13A155C479/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_2-1666200820189.png" alt="julian_svcs_2-1666200820189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_3-1666200841073.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53977iF4885F45D6857B07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_3-1666200841073.png" alt="julian_svcs_3-1666200841073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 17:34:46 GMT</pubDate>
    <dc:creator>julian_svcs</dc:creator>
    <dc:date>2022-10-19T17:34:46Z</dc:date>
    <item>
      <title>Hosted feature layer size same for subset of data</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223463#M48406</link>
      <description>&lt;P&gt;I created a hosted feature layer with all its features (294162 features) and the size is 199.156MB. I then added a definition query in ArcGIS Pro to show only the first 20 features. When I published the subset of data as a hosted feature layer, the size is 199.18MB. The subset layer shows 20 features in the attribute table.&lt;/P&gt;&lt;P&gt;Why would the size of the subset layer with 20 features be the same (or actually slightly larger) than the original layer with 294162 features?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original layer details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_0-1666200751153.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53974i0D55297A5AE17274/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_0-1666200751153.png" alt="julian_svcs_0-1666200751153.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_1-1666200776196.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53975i3D9A2339301E41B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_1-1666200776196.png" alt="julian_svcs_1-1666200776196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subset layer details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_2-1666200820189.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53976i3E524D13A155C479/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_2-1666200820189.png" alt="julian_svcs_2-1666200820189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="julian_svcs_3-1666200841073.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53977iF4885F45D6857B07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="julian_svcs_3-1666200841073.png" alt="julian_svcs_3-1666200841073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 17:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223463#M48406</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2022-10-19T17:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted feature layer size same for subset of data</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223478#M48407</link>
      <description>&lt;P&gt;I &lt;EM&gt;believe &lt;/EM&gt;that size stat comes from the service definition file that is uploaded, not the service itself. I've noticed that my layers don't change their size even when all existing records or truncated, or also when the number of records more than doubles.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 17:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223478#M48407</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-19T17:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted feature layer size same for subset of data</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223567#M48414</link>
      <description>&lt;P&gt;Seems like this is by design, which I think is not ideal. I would have thought that if you have a definition query on the layer, you only want those to be published and not everything.&lt;/P&gt;&lt;P&gt;This also has other issues associated with it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Performance of effecting the definition query in the service&lt;/LI&gt;&lt;LI&gt;AGOL credit usage&lt;/LI&gt;&lt;LI&gt;Security - might have records published in AGOL which could potentially be exposed if someone was able to remove the definition query (unlikely, but possible)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is an excerpt from &lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#ESRI_SECTION1_94021BE7D875474681DAD20D05A90AF6" target="_blank" rel="noopener"&gt;this site&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H5&gt;Note:&lt;/H5&gt;&lt;P&gt;If the layers in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcMap&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;map have definition queries applied to them, ArcGIS applies the definition queries to the published hosted feature layer. However, all data is uploaded to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;. If you want only a subset of the data to be published to and stored in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Online&lt;/SPAN&gt;, you must export the subset of the data to another feature class and publish that.&lt;/P&gt;&lt;P&gt;If you intend to overwrite the hosted feature layer to update it, be sure to choose the option to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Preserve layer IDs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;when you publish the feature layer from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcGIS Pro&lt;/SPAN&gt;. This option is not available in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ArcMap&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 19 Oct 2022 20:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1223567#M48414</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2022-10-19T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted feature layer size same for subset of data</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1224098#M48462</link>
      <description>&lt;P&gt;That's so weird. Are we able to remove the definition query once it's been uploaded?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1224098#M48462</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2022-10-20T21:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted feature layer size same for subset of data</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1224791#M48515</link>
      <description>&lt;P&gt;Yes I can. If I go into the REST's admin endpoint and I can edit the layer's definition in the updateDefinition. If I remove the 'lastEditDate' and remove the 'definitionQuery', I get the full set of features in my hosted feature layer.&lt;/P&gt;&lt;P&gt;I know it is really unlikely for someone to be able to access the admin endpoint, but could this still be seen as a data exposure risk? The data is still uploaded to AGOL instead of just the subset (as most people would expect) when using a definition query when publishing the service.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 17:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-size-same-for-subset-of-data/m-p/1224791#M48515</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2022-10-24T17:52:59Z</dc:date>
    </item>
  </channel>
</rss>

