<?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: How to delete data from act_ge_bytearray and act_hi_actiinst tables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232145#M185275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ujjwal, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe deleting is not a good option to consider that too for production environment. Try to index the tables and see if it helps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;btw whats the amount of data in those tables ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 08:53:19 GMT</pubDate>
    <dc:creator>hari</dc:creator>
    <dc:date>2016-05-24T08:53:19Z</dc:date>
    <item>
      <title>How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232144#M185274</link>
      <description>My application is on production and data in the above 2 table is huge. I want to clean up data. Although my ACT_HI_DETAIL tables is empty.My concerns are :-1. Does any body got the way to clear ACT_GE_BYTEARRAY table? how to find the records from bytearray table to be deleted? what is the relation o</description>
      <pubDate>Tue, 24 May 2016 07:09:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232144#M185274</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-05-24T07:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232145#M185275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ujjwal, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe deleting is not a good option to consider that too for production environment. Try to index the tables and see if it helps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;btw whats the amount of data in those tables ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:53:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232145#M185275</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-05-24T08:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232146#M185276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;act_hi_varinst –&amp;gt; 9.085.976 records &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_GE_BYTEARRAY –&amp;gt; 2.095.225 rows &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and estimated zipped(!) size of 7-8GB!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think i am not using any history data in my application. I guess it can be accessed only through history service api's of activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And i am not using any history service api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i delete all history data and all the byte array table data for those history records will it work? Or i will be in a bigger mess?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something like this below :-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DELETE from act_ge_bytearray where id_ in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(select bytearray_id_ FROM ACT_HI_VARINST &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE proc_inst_id_=processId&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND var_type_ = 'serializable');&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 09:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232146#M185276</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-05-24T09:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232147#M185277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you delete history information, do realize you're throwing away all your 'audit data' about past process instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can safely delete historical data from process instance that are not in the act_ru_execution table anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232147#M185277</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232148#M185278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've deleted records from this table in the past with activiti 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The side effect is that I had to just redeploy the processes, because the bpm data is also kept there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case I was removing all run-time and history data but keeping the models, because we wanted to start with a clean database but keep the process definitions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:27:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232148#M185278</guid>
      <dc:creator>maudrid</dc:creator>
      <dc:date>2016-06-01T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232149#M185279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the below query make sense? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; SELECT p.ID_ AS PROCESS_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM ACT_HI_PROCINST p&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN ACT_HI_TASKINST t on p.ID_ = t.PROC_INST_ID_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE p.END_TIME_&amp;lt; = &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocess_end_timestamp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp; t.delete_reason_ = 'completed';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I am selecting all the process instance id's whose task are completed and who have end time less then some time period in past.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By doing this i will delete alll completed task prcoess instance history data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will this query give a different and wrong result If I am not using ACT_RU_EXECUTION table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should i select the Process instance id like this :-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SELECT p.ID_ AS PROCESS_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM ACT_HI_PROCINST p &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where p.ID_ not in ( Select PROC_INST_ID_ from ACT_RU_EXECUTION );&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:05:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232149#M185279</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-06-01T12:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232150#M185280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, this query is ok. END_TIME_ will be null if the process instance is still in the ACT_RU_EXECUTION table&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 07:58:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232150#M185280</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-03T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data from act_ge_bytearray and act_hi_actiinst tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232151#M185281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 08:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-delete-data-from-act-ge-bytearray-and-act-hi-actiinst/m-p/232151#M185281</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-06-03T08:04:07Z</dc:date>
    </item>
  </channel>
</rss>

