server/migractions.py
changeset 8236 cc70da744f43
parent 8216 99ff746e8de8
parent 8232 8c29253105ba
child 8307 8be58694f416
equal deleted inserted replaced
8230:00435a332502 8236:cc70da744f43
  1350             # fill cache. Do not fetch that attribute using the global rql query
  1350             # fill cache. Do not fetch that attribute using the global rql query
  1351             # since we may exhaust memory doing that....
  1351             # since we may exhaust memory doing that....
  1352             getattr(entity, attribute)
  1352             getattr(entity, attribute)
  1353             storage.migrate_entity(entity, attribute)
  1353             storage.migrate_entity(entity, attribute)
  1354             # remove from entity cache to avoid memory exhaustion
  1354             # remove from entity cache to avoid memory exhaustion
  1355             del entity[attribute]
  1355             del entity.cw_attr_cache[attribute]
  1356             pb.update()
  1356             pb.update()
  1357         print
  1357         print
  1358         source.set_storage(etype, attribute, storage)
  1358         source.set_storage(etype, attribute, storage)
  1359 
  1359 
  1360     def cmd_create_entity(self, etype, commit=False, **kwargs):
  1360     def cmd_create_entity(self, etype, commit=False, **kwargs):