Re: Embedded text column versus referenced text

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Embedded text column versus referenced text
Date: 2010-08-04 18:48:39
Message-ID: AANLkTincrV-UJOkFhkcWBgtLqz_o7LKm9HEW4iKdebXO@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 4, 2010 at 11:05 AM, Rikard Bosnjakovic
<rikard(dot)bosnjakovic(at)gmail(dot)com> wrote:
> The comments field will be used here and there but I expect it will
> most often be NULL.

If it is most often NULL it won't really take up much space in the
table. However, if when it does have content the contents are large,
and are not relevant to the bulk of queries about the "something",
then having it separate is probably a good idea, especially if you are
using an ORM that will want to pull that data in every time you load
the object. It really depends on how much you use the column and how
you use it.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Santiago Álvarez Martínez 2010-08-04 19:18:20 Re: "package org.postgresql.util does not exist" compilation problem
Previous Message Joshua D. Drake 2010-08-04 18:45:40 Re: killing idle attaches without killing others