Re: schema advice for event stream with tagging and filtering

Поиск
Список
Период
Сортировка
От Ilya Kazakevich
Тема Re: schema advice for event stream with tagging and filtering
Дата
Msg-id 055b01d1f7c2$468df6c0$d3a9e440$@JetBrains.com
обсуждение исходный текст
Ответ на schema advice for event stream with tagging and filtering  (Chris Withers <chris@simplistix.co.uk>)
Ответы Re: schema advice for event stream with tagging and filtering
Список pgsql-general
Hi,

>An event is a row with a primary key along the lines of (colo, host,
>category) and an associated set of tags, where each tag has a type and a value
>(eg: {"color": "red", "owner": "fred", "status": "open"...}).

What about  simple table with several columns and hstore  field for tags?
You may also normalize it (move hosts and categories to separate table).

indexes should help you with fast filtering, or you may load data from this table to denormalized olap table once a day
andbuild index there to speed-up queries. 

Ilya Kazakevich

JetBrains
http://www.jetbrains.com
The Drive to Develop




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