Re: UUID or auto-increment

From: Ravi Krishna <srkrishna(at)yahoo(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: UUID or auto-increment
Date: 2020-08-10 16:38:10
Message-ID: 837516231.2607507.1597077490690@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Both can handle concurrent writes.  auto-increment is nothing but serial or sequence cols and they can handle unique concurrent request.  That is why sometimes you may have gaps.UUID is not only unique, but is also unique across space. You can have two different databases generate UUID at the same time and it will still be unique. So that will help if you are consolidating different databases into one big data mart and they can all can go to the same table without conflict. With Sequence or Serial that will be a problem.Finally UUID results in write amplication in wal logs.  Keep that in mind if your app does lot of writes.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2020-08-10 16:48:34 Re: SQL Question about like
Previous Message pgml@gmx.de 2020-08-10 16:37:05 SQL Question about like