Database storage bloat

From: reina_ga(at)hotmail(dot)com (Tony Reina)
To: pgsql-admin(at)postgresql(dot)org
Subject: Database storage bloat
Date: 2004-04-08 09:15:07
Message-ID: 272e4be7.0404080115.39f1cb36@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I'm developing a database for scientific recordings. These recordings
are traditionally saved as binary flat files for simplicity and
compact storage. Although I think ultimately having a database is
better than 1,000s of flat files in terms of data access, I've found
that the database (or at least my design) is pretty wasteful on
storage space compared with the binary flat files.

In particular, I tried importing all of the data from a binary flat
file that is 1.35 MB into a PostgreSQL database (a very small test
file; average production file is probably more like 100 MB). The
database directory ballooned from 4.1 MB to 92 MB (a bloat of 65X the
original storage of the binary flat file).

Now I know that table design and normalizing is important. As far as
my partner and I can tell, we've made good use of normalizing (no
redundancy), we've set field sizes to their theoretical skinniness,
and we've made use of foreign keys and views. I'm also aware that
indicies/keys and other database internals will necessarily make the
DBMS solution bloated in terms of storage space. However, a 65X bloat
in space seems excessive.

Has anyone run across similar storage concerns? I'd be interested in
knowing if I just have really poorly designed tables, or if something
else is going on here. I figure a bloat of 3-4X would be permissible
(and possibly expected). But this bloat just seems too much.

Thanks.
-Tony

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Uwe C. Schroeder 2004-04-08 09:57:45 Re: Database storage bloat
Previous Message Shanmugasundaram Doraisamy 2004-04-08 06:04:20 problem with pg_dump - reg.