Phase 2 of Appr migration
Backfills the new tables from the old ones, and switches all code to read and write from the new tables
This commit is contained in:
parent
d75e932d09
commit
acb7d626a4
4 changed files with 38 additions and 9 deletions
|
@ -310,5 +310,5 @@ class CNRAppModel(AppRegistryDataInterface):
|
|||
return appr_model.blob.get_blob_locations(digest, self.models_ref)
|
||||
|
||||
|
||||
# Phase 1: Read from old tables, disallow writing.
|
||||
model = CNRAppModel(OLD_MODELS, features.READONLY_APP_REGISTRY)
|
||||
# Phase 2: Read and write from new tables.
|
||||
model = CNRAppModel(NEW_MODELS, features.READONLY_APP_REGISTRY)
|
||||
|
|
Reference in a new issue