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 1k5E3q-0005p0-EJ for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 20:06:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5E3o-0005pz-FH for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 20:06:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5E3o-0005ps-6v for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 20:06:20 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5E3h-00054t-9g for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 20:06:19 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 7FEE836B8; Mon, 10 Aug 2020 22:06:10 +0200 (CEST) Date: Mon, 10 Aug 2020 22:06:10 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: UUID or auto-increment Message-ID: <20200810200610.GA32371@hjp.at> References: <837516231.2607507.1597077490690@mail.yahoo.com> <2663a1f2-7377-58e7-ad7d-a867fe75cb15@gmail.com> <20200810165332.GV29590@tamriel.snowman.net> <6A5ADFD3-AF87-4DFF-AA71-5AC31ED94A07@alaska.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <6A5ADFD3-AF87-4DFF-AA71-5AC31ED94A07@alaska.edu> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-08-10 09:10:00 -0800, Israel Brewster wrote: > I would point out, however, that using a V1 UUID rather than a V4 can > help with this as it is sequential, not random (based on MAC address > and timestamp + random). If I read the specs correctly, a V1 UUID will roll over every 429 seconds. I think that as far as index locality is concerned, this is essentially random for most applications. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl8xqK0ACgkQ8g5IURL+ KF1eZQ/9EYIQr9rY6KoGzeewRFvjEgbQNWw5602sOJWVBekFr0QkzK9U9zMIy0aO qpo00LSLdzMHNDlmktboIp1FJGuCb2Jwz5XxXFMn7onxTx+1A8JbCaLCDvbRnJM/ 4Z1RvWCO61Fw48Vd+ax4tLVGZGyNfsbps/iDvAzEsa/7fQ5dbz5oyyfSegWoQWnX /xN31GWsxeirQd9FEeDqx+ZKs7kBHjioElP8aq4UmWaAtMNwcOEHYslNYVFPMyxx 3Ant1WZI59TGBYQ5v0jZ6VWajDebV1Dwme9KDp/S3tzSxKQ7JcZX0Qbauynz+4mf LWns38OpD6JDxjaXZrV8xXXWDsDthkA8jnMO3tvaYM+Y6S7uUprix3A7Dr96RybQ D3/poNvA4Y2jiFOqDujlLImXjw9ulWmJhNekhwlm3dKCxzU8LROJq/3etzzLUZgp 5u3MusobKxIj174QGUB/P5cd8U3aLJUHlAeenlC9ZDZlJuwdnlWAVkUdeWlcBhY7 Ok/SonEoF3RkgwftN6oDY4grXEYhbdR2jBJn2LJdAPEORNznNMygb9n/AdewSqHl zecwLLWMF/6baadwrA3xfG67gkFvV2ObpFVV5G/0LXWade6hYc+HkDRsY3kd1kGx 8Ym/oL+ybGZkQiYRHdMLgTHqk00IbcLtI3tMWDhf493GEIHKqQQ= =KVDY -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--