Re: schema advice for event stream with tagging and filtering
В списке pgsql-general по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера