This commit is contained in:
2020-05-14 16:37:14 +00:00
parent fb52f89191
commit c0b871e7ac

View File

@@ -1,19 +1,6 @@
PRIORITY - ALWAYS Lowest level stuff first
=-=-=-=-
todo: switch to Identity column from serial column as it's the proper way to do autoid in postgres now
todo: uint isn't very big, maybe I should use long in it's place everywhere (concurrency token??)
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types
todo: AUTO ID GENERATOR
change to a dedicated spot in global rather than inferring as it is not right practically for reasons
Get the auto-id most recent values at boot time
internal static void SetMostRecentAutoIdValuesFromDatabase(AyaNova.Models.AyContext ct)
Server serialized fields, it should *not* be getting the value from the table but rather have it's own table with last number assigned instead
My plan has flaws, getting the number from teh last number used in the actual table is a bit fucked because it means you could end up with mutiple issues
Instead have central location for storing serial numbers (perhaps one per table type for concurrency efficieny? Though it's a pretty fast operation.)
Do not put in shared object though, i.e. global settings or something because it's going to be it's own thing and require efficient access.
Maybe this is a case for a stored procedure?
todo: change trial detection route that client first hits
- make it a different controller and renamed to something like server ping or "hello" or something friendly and useful
- maybe the route that gets Notifications