Re: UUID or auto-increment
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Date: 2020-08-10T16:53:32Z
Lists: pgsql-general
Greeitngs, * Ron (ronljohnsonjr@gmail.com) wrote: > On 8/10/20 11:38 AM, Ravi Krishna wrote: > >Finally UUID results in write amplication in wal logs. Keep that in mind > >if your app does lot of writes. > > Because UUID is 32 bytes, while SERIAL is 4 bytes? and because it's random and so will touch a lot more pages when you're using it... Avoid UUIDs if you can- map them to something more sensible internally if you have to deal with them. Thanks, Stephen