Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lACac-0004em-3O for pgsql-general@arkaria.postgresql.org; Thu, 11 Feb 2021 14:05:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lACab-0006cy-43 for pgsql-general@arkaria.postgresql.org; Thu, 11 Feb 2021 14:05:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lACZP-0002Bb-1z for pgsql-general@lists.postgresql.org; Thu, 11 Feb 2021 14:03:47 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lACZL-0003mb-JK for pgsql-general@lists.postgresql.org; Thu, 11 Feb 2021 14:03:45 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id C5488446D; Thu, 11 Feb 2021 15:03:41 +0100 (CET) Date: Thu, 11 Feb 2021 15:03:41 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Which partition scheme makes sense for my time based IoT-datagrams? Message-ID: <20210211140341.GB1603@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: <1342657685.20210210160930@am-soft.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Content-Disposition: inline In-Reply-To: <1342657685.20210210160930@am-soft.de> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-02-10 16:09:30 +0100, Thorsten Sch=F6ning wrote: > I have a table storing datagrams from some IoT-devices, with one > datagram per device per day most likely for around 75'000 devices > currently. I want to test query performance with a partitioned table > and am interested in the following queries mostly:=20 >=20 > * querying arbitrary datagrams by their ID > * querying datagrams being X old based on some timestamp > * 15 minutes If you get one datagram per day, how it is useful to query all datagrams received in the last 15 minutes? That's either a random sample (if devices report at random times) or empty (if they all report at midnight and it isn't just after midnight). hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmAlOTkACgkQ8g5IURL+ KF38LBAAliUgHx8+AcDfsSXunKnmuCN0VXaJmNHtCod64+Ky4hBVleMan8GlGuDC pHr8smt+7vNmMJMPITXQf2yplCi+1hWj+4mDu1nf9chK12qwJduucMITTIPzDC7M itvhAp0caKuSB6Ef73y3NO0kUWOOvzwqVvyKH7J+ArZmNu7IujCHg3pSL7HSBQin VDT/2pxBr9V6IMebMqNfoSchUQP5GTU1FuxgFlAuimGpzkd77SmTs+hITXFwBy8J ypFZpweeDZrFI9VPIA4WO7hwPrwn7HqZTQTdd//kHXqY51n5F8emG2KV/h7sjdIk v4f69lwuAKuobDjF73cfFkoV+YZfy/ndYT5o/Q88UP9EM2lJj4LHPhl/K2ixiDkC ifyThIKj8w43khAN71PNlmbeI2WuC/7KgRYOzmeN28Ld4INqcZ9GloHBDLUA8yAO hC16I17dLicyjMCeCytafyx1g+gd6cgI0848neAaxXNiKH8fxz1u6atv5VfihTra 4V/9NK8OyVRPVGzIhKiyzKKIwIOa5j3IFK72A4iHVcOVN6gSmZO+RUnLDHDeKi1q KfMj0+l6FINTg2MzwnG/21WiZZD2vxscrvFDQk73VndDJAx8OBsl7KBUCcJnu6pN FqilLcG5fCuvpID1zrfI9hyz2HnKU9I2Q7qQ/j+7ObWQd/g4TT8= =ExsG -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--