what is storage model migration? #20069
-
I'm making some changes to existing storage models and what is this storage model migration? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @kjuice276 great question, basically migrations here mean modifying data that are already present in the production servers. let me know if you have any more questions. |
Beta Was this translation helpful? Give feedback.
-
@seanlip is there any purpose of not closing these types of discussions which are already answered? |
Beta Was this translation helpful? Give feedback.
Hi @kjuice276 great question, basically migrations here mean modifying data that are already present in the production servers.
Imagine we are removing an existing field (say X) from the exploration. To make changes we modify the model layer code i.e., ExplorationModel class at the same time we also want to update all the ExplorationModel instances that are present in the Oppia production database. Thus we need to migrate the data from the old structure to the new structure and to do that we need to run beam jobs particularly exp_migration_job.
let me know if you have any more questions.
thanks