Modify database ORM code to use UUIDs #253
Labels
Backend & Database
Issues about the GraphQL, SQLite, PostgreSQL, or logic systems
SMM
Tasks for SMM to complete
Milestone
When we save run records to the database, we are currently using sequential integer IDs. This is nice because it's simple and easy for humans to read. However, as we're implementing data syncing between multiple databases in multiple locations, we're going to run into collision problems. Run ID #13 at COSI can't sync up with SMM because we might have our own run #13.
UUIDs are a nice solution for this. Although they are somewhat harder for humans to read, each record, no matter where it is generated, always generates a unique ID. This will make it easy to merge the various databases together into a single central record of all the xMacroscope data.
The text was updated successfully, but these errors were encountered: