<?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>Question Re: Compress Long Binary Column in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaa-p/13847205#M4878048</link>
    <description>&lt;P&gt;Yes and no.&lt;/P&gt;
&lt;P&gt;If "reclaim disk space" means "reduce the size of the *.db file" then yes, recreating the *.db file from scratch (dbinit dbunload reload etc) is the only way to do that... it is not limited to COMPRESS.&lt;/P&gt;
&lt;P&gt;If "reclaim disk space" means "reuse free space for new or expanding rows" then no, freshly-created free space in a table data page can be used for new data in the same table, and free pages can be used for anything, without having to recreate the *.db file.&lt;/P&gt;
&lt;P&gt;FWIW you might also consider a deduplication algorithm if that is a common condition (same object stored in multiple rows).&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 07:47:21 GMT</pubDate>
    <dc:creator>Breck_Carter</dc:creator>
    <dc:date>2018-05-03T07:47:21Z</dc:date>
    <item>
      <title>Compress Long Binary Column</title>
      <link>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaq-p/13847204</link>
      <description>&lt;P&gt;I would like to compress a Long Binary column in a table (email .msg files, PDF's, JPG's). We have a replicating DB's&lt;/P&gt;
&lt;P&gt;If I apply ALTER Table ALTER Column COMPRESS at the consolidated DB (with passthrough) - will I have to dbunload -ar each remote DB and the consolidated to reclaim disk space ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 05:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaq-p/13847204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-03T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compress Long Binary Column</title>
      <link>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaa-p/13847205#M4878048</link>
      <description>&lt;P&gt;Yes and no.&lt;/P&gt;
&lt;P&gt;If "reclaim disk space" means "reduce the size of the *.db file" then yes, recreating the *.db file from scratch (dbinit dbunload reload etc) is the only way to do that... it is not limited to COMPRESS.&lt;/P&gt;
&lt;P&gt;If "reclaim disk space" means "reuse free space for new or expanding rows" then no, freshly-created free space in a table data page can be used for new data in the same table, and free pages can be used for anything, without having to recreate the *.db file.&lt;/P&gt;
&lt;P&gt;FWIW you might also consider a deduplication algorithm if that is a common condition (same object stored in multiple rows).&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 07:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaa-p/13847205#M4878048</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2018-05-03T07:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compress Long Binary Column</title>
      <link>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaa-p/13847206#M4878049</link>
      <description>&lt;P&gt;Just to add:&lt;/P&gt;
&lt;P&gt;Whether your compressed data will really require less table pages as before (or even more) should be checked via the "sa_column_stats" system procedure - I had tested with "medium length" strings a while ago (256 bytes each) just to find out they were not compressed at all, which led to &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/8169d7966ce2101497b5ac611f7413ce.html"&gt;that DCX remark&lt;/A&gt;... &lt;/P&gt;
&lt;P&gt;That being said, I guess for typical BLOBs like PDFs and images compression should acutally take place.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 09:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compress-long-binary-column/qaa-p/13847206#M4878049</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2018-05-03T09:19:19Z</dc:date>
    </item>
  </channel>
</rss>

