Re: [GENERAL] "Shared strings"-style table

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: [GENERAL] "Shared strings"-style table
Дата
Msg-id CANu8Fiwb6xsuzcKNQE_xJkHbe+_jMq8fgWOUa5XD4DOuasq4Lg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] "Shared strings"-style table  (Seamus Abshere <seamus@abshere.net>)
Ответы Re: [GENERAL] "Shared strings"-style table  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general


On Fri, Oct 13, 2017 at 12:43 PM, Seamus Abshere <seamus@abshere.net> wrote:
> > On Fri, Oct 13, 2017 at 8:49 AM, Seamus Abshere wrote:
> >> Theoretically / blue sky, could there be a table or column type that
> >> transparently handles "shared strings" like this, reducing size on disk
> >> at the cost of lookup overhead for all queries?
> >> (I guess maybe it's like TOAST, but content-hashed and de-duped and not
> >> only for large objects?)

On Fri, Oct 13, 2017, at 01:29 PM, Melvin Davidson wrote:
> What was described is exactly what relations and Foreign Keys are for.

hi Melvin, appreciate the reminder. Our issue is that we have 300+
columns and frequently include them in the SELECT or WHERE clauses... so
traditional normalization would involve hundreds of joins.

That's why I ask about a new table or column type that handles basic
translation and de-duping transparently, keeping the coded values
in-table.

>I ask about a new table or column type that handles basic translation

AFAIK, there is no such thing currently available.Your initial post indicated you were working with spreadsheets and were
looking to translate to PostgreSQL database. There is no short cut to normalizing, but the time you spend doing so in initial
design will well be worthwhile once it is implemented. 

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

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

Предыдущее
От: Seamus Abshere
Дата:
Сообщение: Re: [GENERAL] "Shared strings"-style table
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] "Shared strings"-style table