Skip to content

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Tag: uuid

postgres
database

Pros and Cons of Using UUID as Primary Key in Postgres

  • bhanunadar
  • Posted on October 12, 2023

When designing a database in Postgres, one of the crucial decisions to make is choosing the primary key for your tables. Traditionally, many developers use serial (auto-incrementing integers) as primary keys. However, there’s an increasing trend in using universally unique identifiers (UUIDs) as primary keys. Each approach has its pros and cons, and in this…

Read More

Recent Posts

  • TIL: Docker Namespaces
  • My Experience with LG Ultragear 32GS60QC (32 inch)
  • TIL: Value Classes
  • Counting Subarrays Where the Max Appears At Least K Times (LeetCode 2962)
  • Solo motorcycle trip to Ratnagiri from Mumbai

Copyright © All rights reserved. Proudly powered by WordPress | Theme: Blog Nano by ThemeMiles.