From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: PG Schema to be used as log and monitoring store
Date: Sun, 10 Dec 2017 10:01:24 +0100
Message-ID: <p0it4s$s7j$1@blaine.gmane.org> (raw)
In-Reply-To: <CAFcOn28y0OdsdYyB=W_Y82Vq+699K76-GnWVFKVkQ_xZL_qgtg@mail.gmail.com>
References: <CAFcOn2-haFL3N6KFzK-zjJHTWnNSE05+iTWy1ahJFFzWbwn4Gg@mail.gmail.com>
<20171209160147.36322c55@wrkhors.com>
<CAFcOn28y0OdsdYyB=W_Y82Vq+699K76-GnWVFKVkQ_xZL_qgtg@mail.gmail.com>
> I actually made some tests on my own (using generate_series) and did
> not find any disk space or performance issues yet.
> I've also found this paper from 2012 about "Sensor Data Storage
> Performance: SQL or NoSQL, Physical or Virtual" [2] which confirms my
> observations.
>
> Now, you have to know that there are about 100 attributes for the
> machines/tables - not only 40 - so I initially thought, it's easier to
> setup the schema using bit(50) and float8[50].
Did you try to use a (single) hstore or jsonb column instead where the attribute name is the key?
You'd lose some type safety, but those data types can be compressed, so that might be worth the trade off
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: PG Schema to be used as log and monitoring store
In-Reply-To: <p0it4s$s7j$1@blaine.gmane.org>
References: <CAFcOn2-haFL3N6KFzK-zjJHTWnNSE05+iTWy1ahJFFzWbwn4Gg@mail.gmail.com> <20171209160147.36322c55@wrkhors.com> <CAFcOn28y0OdsdYyB=W_Y82Vq+699K76-GnWVFKVkQ_xZL_qgtg@mail.gmail.com> <p0it4s$s7j$1@blaine.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox