Jeremy Rickard
2023-04-01 03:53:02 UTC
For interest in case useful. I've been working on this a little while. Due to the need to raise a case it took longer than I imagined, but here at last...
Release 0.1, see: https://github.com/easydataservices/db2-compress
Please note...
* An IBM case has confirmed that Java UDFs can return LOB data types. The documentation that says otherwise is out-of-date, and will be fixed later on.
* On my laptop running Db2 11.5.8 on Ubuntu, an uncompressed 25MB JSON document compresses 6.8x in about 2 seconds, and uncompresses in about 1 second.
* If you want to work with BLOBs larger than 64MB you will need to increase JAVA_HEAP_SZ.
* Performance is now perhaps adequate for archive databases of an appropriate design. I would not suggest using this in any database where response matters.
* Smaller LOBs containing similar data run faster, more-or-less proportional to size.
If you think you have a possible use for these functions, please read the notes in the README, and be sure to test it works well for you before deploying.
Jeremy Rickard
Release 0.1, see: https://github.com/easydataservices/db2-compress
Please note...
* An IBM case has confirmed that Java UDFs can return LOB data types. The documentation that says otherwise is out-of-date, and will be fixed later on.
* On my laptop running Db2 11.5.8 on Ubuntu, an uncompressed 25MB JSON document compresses 6.8x in about 2 seconds, and uncompresses in about 1 second.
* If you want to work with BLOBs larger than 64MB you will need to increase JAVA_HEAP_SZ.
* Performance is now perhaps adequate for archive databases of an appropriate design. I would not suggest using this in any database where response matters.
* Smaller LOBs containing similar data run faster, more-or-less proportional to size.
If you think you have a possible use for these functions, please read the notes in the README, and be sure to test it works well for you before deploying.
Jeremy Rickard