pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sebastian Ritter <ritter.sebastian@gmail.com>
To: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: Database normalization
Date: Tue, 28 Aug 2007 16:15:01 +0100
Message-ID: <99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com> (raw)
In-Reply-To: <20070828145902.GB847@phlogiston.dyndns.org>
References: <99b656cb0708210709j5182b73cna63a2d275efa0e84@mail.gmail.com>
	<99b656cb0708280447x4eb7c45axec01c8d0ebc6c82d@mail.gmail.com>
	<20070828132604.GB461@phlogiston.dyndns.org>
	<99b656cb0708280737l3d50585fifcfef7103b26059b@mail.gmail.com>
	<20070828145902.GB847@phlogiston.dyndns.org>

Hi,

On 8/28/07, Andrew Sullivan <ajs@crankycanuck.ca> wrote:
>
> On Tue, Aug 28, 2007 at 03:37:22PM +0100, Sebastian Ritter wrote:
> > Thanks for the information.
> >
> > Both tables would be exactly sames apart from the  foreign key relation
> to
> > clients or services.
>
> Hmm.  Are the services or clients tables different?  A useful rule of
> thumb is that, to the extent you can sort things into "kinds of
> data", then you should have exactly one space for each one.  (I hope
> that's clear.)


  The table definition is exactly the same. The only difference is whether
the
  row refers to a client or service.


> Another factor ive been considering is that one of the fields in this
> > table(s) definition(s) is free flowing text which could potentially
> become
> > very large. Should I take this in to
> > consideration when deciding whether to split the tables? In terms of
> > searching speed that is.
>
> I'd put it in its own table, probably, unless you're going to use it
> frequently.


  Why would frequency of use change whether or not I use one or two tables?

Sebastian

view thread (11+ messages)  latest in thread

Message-ID: <99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com>
Permalink:  ../99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com/
Also on:    postgresql.org/message-id/99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ritter.sebastian@gmail.com, ajs@crankycanuck.ca
  Subject: Re: Database normalization
  In-Reply-To: <99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com>

* 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