Skip to content

Commit

Permalink
Update sequences.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew123987 authored and djw-m committed Oct 29, 2024
1 parent ec12750 commit 6cc1a3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion product_docs/docs/pgd/5/sequences.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ There are various possible algorithms for global sequences:
SnowflakeId sequences generate values using an algorithm that doesn't require
inter-node communication at any point. It's faster and more robust and has the
useful property of recording the timestamp when the values were
created.
created. Snowflake sequences are generally the preferred sequence option if the
application can support it.

SnowflakeId sequences have the restriction that they work only for 64-bit BIGINT
datatypes and produce values up to 19 digits long. This might be too long for
Expand Down Expand Up @@ -229,6 +230,9 @@ support renaming `galloc` sequences or moving them to another namespace or
renaming the namespace that contains a `galloc` sequence. Be
mindful of this limitation while designing application schema.

Additionally, after restoring a node from a backup, all galloc sequences must manually have their maximum value set to the maximum value of the attached data column.


#### Converting a local sequence to a galloc sequence

Before transforming a local sequence to galloc, you need to take care of several
Expand Down

0 comments on commit 6cc1a3d

Please sign in to comment.