pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Douglas Trainor <trainor@uic.edu>
To: Tony Reina <reina_ga@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database storage bloat
Date: Thu, 08 Apr 2004 06:41:37 -0500
Message-ID: <40753A71.3060104@uic.edu> (raw)
In-Reply-To: <272e4be7.0404080115.39f1cb36@posting.google.com>
References: <272e4be7.0404080115.39f1cb36@posting.google.com>

Saying "we've set field sizes to their theoretical skinniness" makes me 
think that
you may have the wrong data types.  For example, you may have used CHAR
and not VARCHAR.

    douglas

Tony Reina wrote:

>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,
>[...]
>  
>




view thread (13+ messages)  latest in thread

Message-ID: <40753A71.3060104@uic.edu>
Permalink:  ../40753A71.3060104@uic.edu/
Also on:    postgresql.org/message-id/40753A71.3060104@uic.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: trainor@uic.edu, reina_ga@hotmail.com
  Subject: Re: Database storage bloat
  In-Reply-To: <40753A71.3060104@uic.edu>
  References: <272e4be7.0404080115.39f1cb36@posting.google.com> <40753A71.3060104@uic.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox