pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: UUID or auto-increment
Date: Mon, 10 Aug 2020 22:06:10 +0200
Message-ID: <20200810200610.GA32371@hjp.at> (raw)
In-Reply-To: <6A5ADFD3-AF87-4DFF-AA71-5AC31ED94A07@alaska.edu>
References: <CAHaowgVasGvbuEBW4Fh-4ke31A9YfAF=VO5yk0OwS+0TT+azrw@mail.gmail.com>
	<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>

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

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (13+ messages)  latest in thread

Message-ID: <20200810200610.GA32371@hjp.at>
Permalink:  ../20200810200610.GA32371@hjp.at/
Also on:    postgresql.org/message-id/20200810200610.GA32371@hjp.at

 · 

reply

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: hjp-pgsql@hjp.at
  Subject: Re: UUID or auto-increment
  In-Reply-To: <20200810200610.GA32371@hjp.at>
  References: <CAHaowgVasGvbuEBW4Fh-4ke31A9YfAF=VO5yk0OwS+0TT+azrw@mail.gmail.com> <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> <20200810200610.GA32371@hjp.at>

* 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