cubicweb/server/migractions.py
changeset 11273 c655e19cbc35
parent 11057 0b59724cb3f2
child 11348 70337ad23145
equal deleted inserted replaced
11272:53fbd5644bff 11273:c655e19cbc35
  1367             # fill cache. Do not fetch that attribute using the global rql query
  1367             # fill cache. Do not fetch that attribute using the global rql query
  1368             # since we may exhaust memory doing that....
  1368             # since we may exhaust memory doing that....
  1369             getattr(entity, attribute)
  1369             getattr(entity, attribute)
  1370             storage.migrate_entity(entity, attribute)
  1370             storage.migrate_entity(entity, attribute)
  1371             # remove from entity cache to avoid memory exhaustion
  1371             # remove from entity cache to avoid memory exhaustion
  1372             del entity.cw_attr_cache[attribute]
  1372             entity.cw_attr_cache.pop(attribute, None)
  1373             pb.update()
  1373             pb.update()
  1374         print()
  1374         print()
  1375         source.set_storage(etype, attribute, storage)
  1375         source.set_storage(etype, attribute, storage)
  1376 
  1376 
  1377     def cmd_create_entity(self, etype, commit=False, **kwargs):
  1377     def cmd_create_entity(self, etype, commit=False, **kwargs):