Skip to content

Conversation

susan-pgedge
Copy link
Member

This issues was reported by Asif N - the bit mapping in the readme is off... in this patch I've updated it to match the values he has shared.

This issues was reported by Asif N - the bit mapping in the readme is off... in this patch I've updated it to match the values he has shared.
@susan-pgedge susan-pgedge requested review from wieck and mmols April 11, 2025 11:34
@@ -7,8 +7,8 @@ Internally, `snowflakes` are 64 bit integers represented externally as `bigint`
```
bit 63 - unused (sign of int8)
bits 22-62 - timestamp with millisecond precision
Copy link

@ashwinstar ashwinstar Apr 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(no specific to this PR) I am curious to learn on the design choice -

  • why timestamp was introduced? ideally node-id + counter should give unique sequence values to each node as well
  • If timestamp with millisecond precision is used then why is there a need to WAL log the updates to this sequence type?

@luss
Copy link
Contributor

luss commented Apr 26, 2025 via email

@susan-pgedge susan-pgedge requested a review from pct960 May 5, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants