<?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: A rows not liked to version are not compressing in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1138142#M7537</link>
    <description>&lt;P&gt;Sorry for the delayed response - life/work got super busy!&lt;BR /&gt;&lt;BR /&gt;To your questions - in the sde.versions table, see what version is pointing to 0 by looking at the State_ID column.&amp;nbsp; Default is at 316113 and other versions are at other numbers.&amp;nbsp; I can't see the full table so hard to know what version is at 0.&amp;nbsp; Can you sort ascending perhaps?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you issue the compress, are all connections to the eGDB released or are there users/services still connected to the eGBD when the compress command starts?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 21:59:25 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2022-01-27T21:59:25Z</dc:date>
    <item>
      <title>A rows not liked to version are not compressing</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1106831#M7393</link>
      <description>&lt;P&gt;We have a feature class in sde that is not compressing as expected.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;database Oracle&lt;/LI&gt;&lt;LI&gt;ArcGIS version 10.6.1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My understanding is that if an A row edit state is not linked to a version it is eligible for compression. So, I have made up a SQL query to find said rows.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;--versions that join to states
with lina as
 (select s.lineage_name
    from XXXX.a106 a
    join sde.states s
      on a.sde_state_id = s.state_id),
linv as
 (select v.owner, v.name, s.lineage_name
    from sde.versions v
    join sde.states s
      on v.state_id = s.state_id)
select linv.owner, linv.name, count(*) as a_row_edit_num
  from lina
  left join linv
    on linv.lineage_name = lina.lineage_name
 group by linv.owner, linv.name
 order by 3 desc&lt;/LI-CODE&gt;&lt;P&gt;This query is reporting ~500,000&amp;nbsp; A rows without a version. But when I compress none are removed. Before I compress I am:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Disconnecting all users&lt;/LI&gt;&lt;LI&gt;Prohibiting new connections&lt;/LI&gt;&lt;LI&gt;Ensuring&amp;nbsp;sde.table_locks has no rows&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, I am not sure what I am missing. Is there something wrong with my assumption? Or is my query flawed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 19:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1106831#M7393</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-10-12T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: A rows not liked to version are not compressing</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1119717#M7447</link>
      <description>&lt;P&gt;Hmmm...are you using eGDB replication and/or archiving?&amp;nbsp; This would pin states in the Delta tables certainly.&amp;nbsp; Another thing to try is to open your sde.VERSIONS and see which child VERSIONs are pointing to a State_ID of zero.&amp;nbsp; Try to reconcile/post that version with DEFAULT.&amp;nbsp; Keep working through this workflow until the DEFAULT version points to zero.&amp;nbsp; What is the result?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 22:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1119717#M7447</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2021-11-23T22:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: A rows not liked to version are not compressing</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1120921#M7448</link>
      <description>&lt;P&gt;Thanks fro the feedback Robert.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;No we are not using&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;eGDB replication and/or archiving.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Reconciling and posting&lt;OL&gt;&lt;LI&gt;We have a large number of versions so reconciling and posting them all is impossible.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;Another thing to try is to open your sde.VERSIONS and see which child VERSIONs are pointing to a State_ID of zero."&lt;/EM&gt; -- how do I find the version that is pointing to state 0? All of are state ids are advanced well past state 0. And they all have default as a parent.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forestknutsen1_1-1638211075928.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28453iC7C26FFCCE4BAE8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="forestknutsen1_1-1638211075928.png" alt="forestknutsen1_1-1638211075928.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Lastly, my core question is this: if a delta row can not be linked back to a version with the above sql should it be available for compression? In other words if rows that are not linked to a versions are not getting compressed there is an issues with the versioning in the geodatabase.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 29 Nov 2021 18:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1120921#M7448</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2021-11-29T18:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: A rows not liked to version are not compressing</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1138142#M7537</link>
      <description>&lt;P&gt;Sorry for the delayed response - life/work got super busy!&lt;BR /&gt;&lt;BR /&gt;To your questions - in the sde.versions table, see what version is pointing to 0 by looking at the State_ID column.&amp;nbsp; Default is at 316113 and other versions are at other numbers.&amp;nbsp; I can't see the full table so hard to know what version is at 0.&amp;nbsp; Can you sort ascending perhaps?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When you issue the compress, are all connections to the eGDB released or are there users/services still connected to the eGBD when the compress command starts?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 21:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-rows-not-liked-to-version-are-not-compressing/m-p/1138142#M7537</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2022-01-27T21:59:25Z</dc:date>
    </item>
  </channel>
</rss>

