server/migractions.py
brancholdstable
changeset 8231 1bb43e31032d
parent 8047 972360b7677b
child 8232 8c29253105ba
equal deleted inserted replaced
8176:eff4fe02ec64 8231:1bb43e31032d
  1410             # fill cache. Do not fetch that attribute using the global rql query
  1410             # fill cache. Do not fetch that attribute using the global rql query
  1411             # since we may exhaust memory doing that....
  1411             # since we may exhaust memory doing that....
  1412             getattr(entity, attribute)
  1412             getattr(entity, attribute)
  1413             storage.migrate_entity(entity, attribute)
  1413             storage.migrate_entity(entity, attribute)
  1414             # remove from entity cache to avoid memory exhaustion
  1414             # remove from entity cache to avoid memory exhaustion
  1415             del entity[attribute]
  1415             del entity.cw_attr_cache[attribute]
  1416             pb.update()
  1416             pb.update()
  1417         print
  1417         print
  1418         source.set_storage(etype, attribute, storage)
  1418         source.set_storage(etype, attribute, storage)
  1419 
  1419 
  1420     def cmd_create_entity(self, etype, commit=False, **kwargs):
  1420     def cmd_create_entity(self, etype, commit=False, **kwargs):