# HG changeset patch # User Sylvain Thénault # Date 1341558030 -7200 # Node ID c5fff93d3a1c5ffdb35d643b9d0d1d678a5f0e27 # Parent cae198371548e120480aa9640cd6ab8488854c25# Parent 4fb20c09017a4a1ab2556391d9307955229ed0ae backport stable 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()