equal
deleted
inserted
replaced
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): |