Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNxUS-00049u-Fb for pgsql-general@arkaria.postgresql.org; Sun, 10 Dec 2017 09:01:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eNxUP-0008Rr-QF for pgsql-general@arkaria.postgresql.org; Sun, 10 Dec 2017 09:01:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eNxUP-0008Rh-IX for pgsql-general@lists.postgresql.org; Sun, 10 Dec 2017 09:01:37 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eNxUJ-0001p9-0T for pgsql-general@postgresql.org; Sun, 10 Dec 2017 09:01:36 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eNxU9-0003ky-Hp for pgsql-general@postgresql.org; Sun, 10 Dec 2017 10:01:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Re: PG Schema to be used as log and monitoring store Date: Sun, 10 Dec 2017 10:01:24 +0100 Lines: 16 Message-ID: References: <20171209160147.36322c55@wrkhors.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 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