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