What is the best way to update your Google datastore with new fields?

I need to add new fields to existing tables. After adding fields, the application is interrupted because old records do not have a newly added field and throw an exception. Is there a way to update all old records with new fields?

I need this for a java application in google engine.

+3
source share
1 answer

Although, according to my calculations, I did not find a strategy for updating the model in the data warehouse. You have two options:

  • Update existing rows in the datastore with default values ​​/ null for newly added columns

  • . : catch try , , catch , 1 . .

+1

Source: https://habr.com/ru/post/1729758/


All Articles