Re: JSONB Array of Strings (with GIN index) versus Split Rows(B-Tree Index)

Поиск
Список
Период
Сортировка
От Ian Zimmerman
Тема Re: JSONB Array of Strings (with GIN index) versus Split Rows(B-Tree Index)
Дата
Msg-id 20190204214425.k3cxfkrj4exof65n@matica.foolinux.mooo.com
обсуждение исходный текст
Ответ на JSONB Array of Strings (with GIN index) versus Split Rows (B-TreeIndex)  (Syed Jafri <syed.jafri2@ucalgary.ca>)
Список pgsql-general
On 2019-02-04 05:34, Syed Jafri wrote:

> |---------------------|------------------|---------------------|------------------|
> |      Receiver       |       Event      |         Date        |      Location    |
> |---------------------|------------------|---------------------|------------------|
> |       Alpha         |         3        |          12         |         USA      |
> |---------------------|------------------|---------------------|------------------|
> |       Bravo         |         3        |          12         |         USA      |
> |---------------------|------------------|---------------------|------------------|
> |       Charlie       |         3        |          12         |         USA      |
> |---------------------|------------------|---------------------|------------------|

Please forgive a naive question, but doesn't this simply cry out for a
normalization step?

EventID   Date   Location
3         12     USA

Receiver  EventID
Alpha     3
Bravo     3
Charlie   3

If you want to use JSON by any means necessary, perhaps a simpler
key/value store is more appropriate than a relational DB like Postgres?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Server goes to Recovery Mode when run a SQL
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: JSONB Array of Strings (with GIN index) versus Split Rows (B-Tree Index)