Re: [GENERAL] arrays

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: [GENERAL] arrays
Дата
Msg-id 20020930135733.GA5875@wolff.to
обсуждение исходный текст
Ответ на Re: [GENERAL] arrays  (Mike Sosteric <mikes@athabascau.ca>)
Список 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 по дате отправления:

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: [GENERAL] arrays
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] arrays