server/migractions.py
branchstable
changeset 5552 11175c77be9c
parent 5551 e41cd3bf5080
child 5556 9ab2b4c74baf
child 5666 58d6c2c96500
equal deleted inserted replaced
5551:e41cd3bf5080 5552:11175c77be9c
  1198         """
  1198         """
  1199         from logilab.common.shellutils import ProgressBar
  1199         from logilab.common.shellutils import ProgressBar
  1200         source = self.repo.system_source
  1200         source = self.repo.system_source
  1201         storage = source.storage(etype, attribute)
  1201         storage = source.storage(etype, attribute)
  1202         source.unset_storage(etype, attribute)
  1202         source.unset_storage(etype, attribute)
  1203         rset = self.rqlexec('Any X WHERE X is %s' etype, ask_confirm=False)
  1203         rset = self.rqlexec('Any X WHERE X is %s' % etype, ask_confirm=False)
  1204         pb = ProgressBar(len(rset))
  1204         pb = ProgressBar(len(rset))
  1205         for entity in rset.entities():
  1205         for entity in rset.entities():
  1206             # fill cache. Do not fetch that attribute using the global rql query
  1206             # fill cache. Do not fetch that attribute using the global rql query
  1207             # since we may exhaust memory doing that....
  1207             # since we may exhaust memory doing that....
  1208             getattr(entity, attribute)
  1208             getattr(entity, attribute)