<?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: Compacting Postgresql database size in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4514#M2027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally managed to shrink my database by nearly 100GB using the below steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Added the below line in alfresco-global.properties and restarted alfresco:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;attributes.propcleaner.cronExpression=* 11 18 * * ? *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;This runs the property cleaner job at 6.11pm. Can take upto a few hours to complete, depending on the size of the database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;2. Ran Vacuum DB on Postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;a) sudo su postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;b) /usr/bin/vacuumdb -a -z -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 11:31:52 GMT</pubDate>
    <dc:creator>villdre</dc:creator>
    <dc:date>2017-09-22T11:31:52Z</dc:date>
    <item>
      <title>Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4510#M2023</link>
      <description>Hi AllWe are running Alfresco CE 5.1 and Postgresql 9.4 on a separate server. When I take a dump of the database for backup, the SQL file generated is more than 20GB in size. This seems a bit large given the number of users and number of documents that we have (we do have a few tenants created).Any</description>
      <pubDate>Tue, 31 Jan 2017 05:42:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4510#M2023</guid>
      <dc:creator>villdre</dc:creator>
      <dc:date>2017-01-31T05:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4511#M2024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on the features that you have enabled the database can grow quite a lot larger than you would assume from just the number of users / documents / tenants. Especially when Auditing is enabled and used by some customisations / addons will you see a significant growth of the database. Similarily, if you use workflows extensively they will also add to the size of the DB - and workflows that have been completed are not really apparent to the user but are still stored in the database.&lt;/P&gt;&lt;P&gt;Also, you should make sure to regularly perform maintenance tasks like cleaning up the Alfresco "trash can" of deleted nodes, checking and limiting the amount of versions being retained (I have seen customers with 300+ minor versions in single documents), running the Alfresco cleanup scripts for the alf_prop_* tables, removing historic workflow data etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 15:15:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4511#M2024</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-02-18T15:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4512#M2025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Axel. Are the cleanup scripts available in Community Edition 5.1? I couldn't find anything in the docs (though I found something in the docs for Alfresco One).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 08:20:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4512#M2025</guid>
      <dc:creator>villdre</dc:creator>
      <dc:date>2017-02-22T08:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4513#M2026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfresco Community Edition 5.1 does contain the alf_prop_* cleanup job / scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 08:31:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4513#M2026</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-02-22T08:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4514#M2027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally managed to shrink my database by nearly 100GB using the below steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Added the below line in alfresco-global.properties and restarted alfresco:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;attributes.propcleaner.cronExpression=* 11 18 * * ? *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;This runs the property cleaner job at 6.11pm. Can take upto a few hours to complete, depending on the size of the database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;2. Ran Vacuum DB on Postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;a) sudo su postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, clean, sans-serif; font-size: 15.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;b) /usr/bin/vacuumdb -a -z -f&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4514#M2027</guid>
      <dc:creator>villdre</dc:creator>
      <dc:date>2017-09-22T11:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compacting Postgresql database size</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4515#M2028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I managed to shrink my database&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;by nearly 40GB adding the line&amp;nbsp;commented using pgAdminIII with Vacuum FULL/ANALYZE. But the database have 105GB yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I have Windows Server 2012 R2. Do you know if i can to do somthing else ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 10:00:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compacting-postgresql-database-size/m-p/4515#M2028</guid>
      <dc:creator>gomezma</dc:creator>
      <dc:date>2018-03-01T10:00:14Z</dc:date>
    </item>
  </channel>
</rss>

