<?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: Cleanup Activiti history tables and act_ge_bytearray in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125439#M88296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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 of bytearray table and ACT_HI_ACTINST table in DB? How can I fetch records from ACT_GE_BYTEARRAY table starting from ACT_HI_ACTINST table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How to find what all history data i can delete? can anybody post any query ? what all checks i need to keep in mind regarding date or anything else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Data in my ACT_HI_DETAIL table is empty. Does this mean that all the History data is not of any use for me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 07:21:59 GMT</pubDate>
    <dc:creator>ujjwalchoudhari</dc:creator>
    <dc:date>2016-05-24T07:21:59Z</dc:date>
    <item>
      <title>Cleanup Activiti history tables and act_ge_bytearray</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125437#M88294</link>
      <description>We are using Activiti for quite a long time now (since 2011), version 5.9. Now our Activiti database is getting larger and larger (currently ~22GB). Due to some unfortunate circumstances, I cannot use the Activiti Java API to cleanup the history, I can only use SQL. I found out that these are the ta</description>
      <pubDate>Thu, 30 May 2013 11:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125437#M88294</guid>
      <dc:creator>ifischer</dc:creator>
      <dc:date>2013-05-30T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup Activiti history tables and act_ge_bytearray</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125438#M88295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, so if you aren't using history, you can indeed remove history. For your query: check the runtime tables for executions that don't exist anymore. These can be simply removed in the history tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;11GB sounds like a lot for the byte array. Besides process xml and process images, what do you guys store in it together with the process? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the rule of thumb of that the byte arrays linked to a process definition you don't use anymore can be deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be safe, I would check what the repositoryService.deleteDeployment() does (check the SQL logging) and see if you can mimic it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 12:11:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125438#M88295</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-31T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup Activiti history tables and act_ge_bytearray</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125439#M88296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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 of bytearray table and ACT_HI_ACTINST table in DB? How can I fetch records from ACT_GE_BYTEARRAY table starting from ACT_HI_ACTINST table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How to find what all history data i can delete? can anybody post any query ? what all checks i need to keep in mind regarding date or anything else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Data in my ACT_HI_DETAIL table is empty. Does this mean that all the History data is not of any use for me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:21:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125439#M88296</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-05-24T07:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup Activiti history tables and act_ge_bytearray</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125440#M88297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have few doubts . Could you please help on the below mentioned points :- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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 of bytearray table and ACT_HI_VARINST table in DB? How can I fetch records from ACT_GE_BYTEARRAY table starting from ACT_HI_VARINST table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I executed the above mentioned query &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select min(start_time_) from act_hi_actinst p where exists (select * from act_ru_execution e where p.proc_inst_id_=e.proc_inst_id_);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i am not getting any record in my ACT_HI_VARINST table older then this min date. What does this mean? My history level is default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Data in my ACT_HI_DETAIL table is empty. Does this mean that all the History data is not of any use for me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:23:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125440#M88297</guid>
      <dc:creator>ujjwalchoudhari</dc:creator>
      <dc:date>2016-05-24T07:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanup Activiti history tables and act_ge_bytearray</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125441#M88298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. This means that you are storing byte array variables, most likely serialized java objects. To get those values, you'd need to start follow the FK in the ACT_HI_VARINST table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Once a process is finished, it is removed from act_ru_execution, hence why you won't find anything&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. that table is only filled when running on the highest history level&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:06:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cleanup-activiti-history-tables-and-act-ge-bytearray/m-p/125441#M88298</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T10:06:49Z</dc:date>
    </item>
  </channel>
</rss>

