Postgreslq BYTEA compression
Mike Matthews - Omnis
omnis at lineal.co.uk
Tue Sep 2 11:54:11 UTC 2025
Hello Xavier
A good question. We store our files inside PG, and we don’t compress any. Many are small files, so maybe the overhead of Zip and UNZIP is not worth it maybe?
We have 30,000 documents that when exported use 4.50gb of space. Mostly PDF docs.
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
http://www.lineal.co.uk/<http://www.lineal.co.uk/>
http://www.sqlworks.co.uk/<http://www.sqlworks.co/>
On 2 Sep 2025, at 12:30, IT <it at plastipol.com> wrote:
Warning: Unusual link
This message contains an unusual link, which may lead to a malicious site.
Confirm the message is safe before clicking any links.
Hi,
I need to store some files on disk in a Postgres database. This could be .pdf, .xlsx, .eml, .docx, among others. I understand that I should create a BYTEA field in the database, convert those documents to binary in Omnis, and store them in the BYTEA field.
However, I have a question: do I need to compress the original files into ZIP format beforehand to reduce their size in the database, or does Postgres already compress BYTEA fields effectively? I’m going to have many documents to insert in the database and space could be an issue.
Any advice ?
regards
xavier
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,7wM9-twwVlYwXoJdqwSXicxwBtKCBq8TKyvFGGM93M_xNQ14o5sGc9zuyjgxn3sdkzg0WwdY58fw4YcWGSPcLrvIN-9Dtp4c7JEEQn0lqg,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list