Ryan
11/16/2021, 2:25 PMthdxr
11/16/2021, 2:42 PMRoss Coundon
11/16/2021, 2:43 PMthdxr
11/16/2021, 2:44 PMRoss Coundon
11/16/2021, 2:44 PMthdxr
11/16/2021, 2:44 PMthdxr
11/16/2021, 2:46 PMthdxr
11/16/2021, 2:47 PMRoss Coundon
11/16/2021, 2:47 PMJP (junaway)
11/16/2021, 3:13 PMgsi1pk
& gsi1sk
, etc.
How does it work in two sentences ?
You must consider that your indexes (primary and secondary) are not attributes of your data but that instead you expose parts of your data through your indexes.
Then, when you create a schema or update your schema (e.g. migration), you only new to update (1) the data attributes themselves (data model) and (2) the data-to-index mapping.
+1 for OneTable and their take on migrations using .up(version="latest")
and `.down(version="rollback")`@thdxrJP (junaway)
11/16/2021, 3:16 PMMike McCall
11/16/2021, 4:18 PMRyan
11/17/2021, 12:29 AMRyan
11/17/2021, 12:54 AMthdxr
11/17/2021, 12:55 AMDerek Kershner
11/17/2021, 6:46 PMTYPE
and VERSION
field on every entity. A migration is just a table scan looking for certain values in these fields and acting accordingly. This part of DDB actually seems easier to me than SQL (unless you mean only adding indexes, which is definitely harder, but still not bad, and fully capable of no downtime).
I also highly, highly recommend Alex DeBrie's book.JP (junaway)
11/17/2021, 6:47 PM__type__
and __version__
fields !