---
title: "Discussion on \"Why it's time to ditch UUIDv4 and switch to UUIDv7!\" | Hashnode"
description: "Discussion on \"Why it's time to ditch UUIDv4 and switch to UUIDv7!\". I've been using UUIDv4 as my go-to identifier for database primary keys for quite a long time, moving from sequential integer IDs (auto-increment/SERIAL). UUIDv4 immediately reminds me of the time when we didn't have better alternatives for distribut..."
url: "https://hashnode.com/posts/ditch-uuidv4-and-use-uuidv7/690eb7652ca15130152413a6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why it's time to ditch UUIDv4 and switch to UUIDv7!](https://pierrehenry.hashnode.dev/ditch-uuidv4-and-use-uuidv7?utm_source=hashnode&utm_medium=feed)

I've been using UUIDv4 as my go-to identifier for database primary keys for quite a long time, moving from sequential integer IDs (auto-increment/SERIAL). UUIDv4 immediately reminds me of the time when we didn't have better alternatives for distribut...

Nov 8, 2025 · 4 min read · pierrehenry.hashnode.dev  
Read the article

-   [#uuid](https://hashnode.com/tag/uuid)
-   [#databases](https://hashnode.com/tag/databases)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#preference](https://hashnode.com/tag/preference)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Pierre-Henry Soria](https://hashnode.com/@ph7)

@ph7 · Sydney (NSW), Australia 🌴

  
[View profile](https://hashnode.com/@ph7)

🚀 Enjoying Learning New Exciting Things! 😋 =>My Way of Life! 🏝🏄

I'm Pierre-Henry Soria. A passionate full stack engineer, building things that matter, making a real impact on the world. Really like to take care of others and manage my workflow based on productivity methodologies. Open to fast-paced changes with rapidly evolving business and technologies. I'm always thirsty to learn and undertake new exciting things and thrilling challenges.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
