Inheritance a burden?

From: reina(at)nsi(dot)edu (Tony Reina)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Inheritance a burden?
Date: 2002-07-19 21:33:08
Message-ID: f40d3195.0207191333.5cbb11c3@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

As a followup to my slow query plans:

I've experimented with removing the inheritance schema to see how it
affects my database calls. Originally, because several fields of the
primary key (subject, arm, rep, direction, success) were common to
every table, I made those fields a separate table and had subsequent
tables inherit the fields. Just out of curiosity, I built a new
database with the same data but didn't use the inheritance (i.e. each
table had its own copy of those common fields). It looks like about a
20% increase in execution speed when I run my programs side by side.
I'm not sure if that kind of performance hit should be expected.
Anyone have an idea about this?

-Tony

reina(at)nsi(dot)edu (Tony Reina) wrote in message news:<5(dot)1(dot)1(dot)6(dot)0(dot)20020718095319(dot)009ecec0(at)schubert(dot)nsi(dot)edu>...
> If I understand correctly, I tried specifying the target and even casting
> all of the smallint's, but it still is a slow estimate. Perhaps, this is
> just due to a large amount of data, but my gut is telling me that I have
> something wrong here.
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alessandro Baretta 2002-07-19 21:48:59 Re: Arrays and FFTW
Previous Message Tom Lane 2002-07-19 21:20:25 Re: preserving statistics settings