Skip site navigation (1) Skip section navigation (2)

Lists or external TABLE?

From: xchris <lyralyra(at)fastmail(dot)fm>
To: pgsql-performance(at)postgresql(dot)org
Subject: Lists or external TABLE?
Date: 2005-09-30 09:16:21
Message-ID: 1128071781.8112.32.camel@lyra (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Hi list,
i'm a postgres noob and before designing a new Database Schema i would
like to ask you a simple question because preformance will be a critical

My question regards performance comparison between a Table which
includes a list or a Table without list and with an external table.

1 - TABLE A has several fields (most of which are types defined by me)
for a total of 30-40 field (counting fields in my new types) and could
contain 5000 rows. 
2 - TABLE A will be accessed several times with several views or query.
    (many SELECT,few UPDATE)

Let's suppose i need to add an info about addresses (which includes
country,city,cap....etc etc).
Addresses can vary from 1 to 20 entries..

Talking about performance is it better to include a list of addresses in
TABLE A or is it better to create an external TABLE B?

I'm afraid that including those addresses will decrease performance in
doing many SELECT.

On the other side i'm afraid of doing JOIN with TABLE B.

What do you think?
Thank you!



pgsql-performance by date

Next:From: Richard HuxtonDate: 2005-09-30 09:34:35
Subject: Re: Lists or external TABLE?
Previous:From: Richard HuxtonDate: 2005-09-30 07:14:38
Subject: Re: Is There Any Way ....

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group