Re: [GENERAL] arrays - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: [GENERAL] arrays
Date
Msg-id 20020930135733.GA5875@wolff.to
Whole thread Raw
In response to Re: [GENERAL] arrays  (Mike Sosteric <mikes@athabascau.ca>)
List pgsql-sql
On Mon, Sep 30, 2002 at 06:38:56 -0600,
  Mike Sosteric <mikes@athabascau.ca> wrote:
> On Mon, 30 Sep 2002, Bruno Wolff III wrote:
>
> The chances are very very good that in 99% of the cases we'd only ever
> have a single title. multiple titles would be rare. and, to make it worse,
> there are several instances of this where you need a table but its seems
> overkill for the odd 1% time when you actually need teh extra row.
>
> of course, the there'd be a language lookup table.
>
> what about the speed and query issue?

The book or movie or whatever table should have an index on something
(say bookid). Then make an index on the title table on bookid. This
makes getting the titles for a specific book fairly efficient.

I think using a simpler design (i.e. tables in preference to arrays)
will make doing the project easier. This may override any speed up
you get using arrays.

pgsql-sql by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: [GENERAL] arrays
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] arrays