Re: Arrays instead of join tables

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: Arrays instead of join tables
Дата
Msg-id 460F8D0A.2060302@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Arrays instead of join tables  (William Garrison <postgres@mobydisk.com>)
Список pgsql-general
William Garrison wrote:
> I've never worked with a database with arrays, so I'm curious...
>
> + Efficiency: To return the set_ids for an Item, I could return an array
> back to my C# code instead of a bunch of rows with integers.  That's
> probably faster, right?

You should look in to the contrib modules intagg and intarray.

In particular contrib/intagg/README.int_aggregate discusses an example
quite similar to what you're proposing.

Short summary: Seems like a win for very static data, a loss for very dynamic data.

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Default value of column not respecting character length or domain restraints.
Следующее
От: "Anton Melser"
Дата:
Сообщение: postgresl for mysql?