Skip to content

SequentialId #14

Description

@albrow

Just like RandomId, SequentialId would be a struct which you can embed to satisfy the Model interface. Like the name implies, instead of randomly generating ids, it will assign ids in sequential order, by atomically incrementing a key in Redis via INCR. This would have an impact on performance (saves would take approximately twice as long) and would be suitable for applications where collisions cannot happen under any circumstances. Let me know if this is something you would like to see and I'll make it a higher priority.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions