You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: