pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Francisco J Reyes <fran@natserv.net>
Cc: Ron Johnson <ron.l.johnson@cox.net>
Cc: PostgreSQL performance <pgsql-performance@postgresql.org>
Subject: Re: How number of columns affects performance
Date: Fri, 1 Aug 2003 14:18:51 -0700
Message-ID: <200308011418.51572.josh@agliodbs.com> (raw)
In-Reply-To: <20030801163346.V49062@zoraida.natserv.net>
References: <20030801115257.I92555@zoraida.natserv.net>
	<200308011044.03493.josh@agliodbs.com>
	<20030801163346.V49062@zoraida.natserv.net>

Francisco,

> I think I understand your point, however it would be very laborious after
> you do all development to find out you need to de-normalize.

Not terribly.   Views and Rules are good for this.

> On your experience at which point it would actually help to do this
> de-normalization in PostgreSQL? I know there are numerous factors ,but any
> feedback based on previous experiences would help.

My experience?   If you're running on good hardware, it's completely 
unnecessary to vertically partition the table.   The only thing I'd do would 
be to look for columns which are frequently NULL and can be grouped together, 
and spin those off into a sub-table.   That is, if you have 4 columns which 
are generally either all null or all filled, and are all null for 70% of 
records then those 4 could make a nice child table.

-- 
-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
                                        Josh Berkus
   Complete information technology 	josh@agliodbs.com
    and data management solutions 	(415) 565-7293
   for law firms, small businesses 	 fax 621-2533
    and non-profit organizations. 	San Francisco




view thread (9+ messages)

Message-ID: <200308011418.51572.josh@agliodbs.com>
Permalink:  ../200308011418.51572.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200308011418.51572.josh@agliodbs.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 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-performance@postgresql.org
  Cc: josh@agliodbs.com, fran@natserv.net, ron.l.johnson@cox.net
  Subject: Re: How number of columns affects performance
  In-Reply-To: <200308011418.51572.josh@agliodbs.com>
  References: <20030801115257.I92555@zoraida.natserv.net> <200308011044.03493.josh@agliodbs.com> <20030801163346.V49062@zoraida.natserv.net> <200308011418.51572.josh@agliodbs.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