Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldProp(sequence): extend sequence ability for normal integer field #162

Open
wenchy opened this issue Nov 4, 2024 · 0 comments
Open

Comments

@wenchy
Copy link
Member

wenchy commented Nov 4, 2024

// Ensure this field's value is a sequence and begins with this value.
// Mainly used for map key and list element.
optional int64 sequence = 4;

Example

In some situations, the developler want to compress the strorage size with bitset. So the bitset index column should be provided, and usually is a sequence started with 0.

ID Index Desc
Map<uint32, Chapter> uint32|{sequence:0} string
Chapter's ID Chapter's Index Chapter's desc
1001 0 desc1
1002 1 desc2
1003 2 desc3
@wenchy wenchy changed the title FieldProp: extend sequence ability for normal integer field FieldProp(sequence): extend sequence ability for normal integer field Nov 13, 2024
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

No branches or pull requests

1 participant