diff -r cae198371548 -r c5fff93d3a1c server/checkintegrity.py --- a/server/checkintegrity.py Wed Jul 04 11:01:51 2012 +0200 +++ b/server/checkintegrity.py Fri Jul 06 09:00:30 2012 +0200 @@ -136,6 +136,8 @@ for eschema in etypes: rset = session.execute('Any X WHERE X is %s' % eschema) source.fti_index_entities(session, rset.entities()) + # clear entity cache to avoid high memory consumption on big tables + session.drop_entity_cache() if withpb: pb.update()