Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
conceptme
· 3y ago · 0 comments
So how do you test your migration? Will work fine with 10 records but perhaps not with 10 million.
Comments
[–]
rokkitmensch
3y ago
Run it in a transaction, and if it fails, abort the transaction. nbd, did this for years in prod. Discovered some interesting assumptions about sequential IDs in the DB tests while running it against prod under peak load, too!
[–]
ComputerGuru
3y ago
I don’t consider that “a regular test” but something db-specific that would have a custom workflow.
[–]
workingjubilee
3y ago
Eliminating "custom workflows" seems like rather the point of such an extension.