sasjs / server

Build Apps on Base SAS

Home Page:https://server.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

replace ID with UID

allanbowe opened this issue · comments

In addressing #359 it was discovered that the sequencing utility was broken in COSMODB (set every id to 1)

In general, sequencing (surrogate key) isn't a great approach as it provides a bottleneck in generating the latest id (and avoiding RACE conditions)

For scalability, and to simplify the process, we should switch away from IDs and use UUIDs in the following schemas:

  • Users
  • Groups
  • Permissions