server/checkintegrity.py
branchstable
changeset 8447 4fb20c09017a
parent 7965 d45c0eb39e72
child 8450 11063635c4e4
equal deleted inserted replaced
8424:664d0bf525c8 8447:4fb20c09017a
   134     # attribute to their current value
   134     # attribute to their current value
   135     source = repo.system_source
   135     source = repo.system_source
   136     for eschema in etypes:
   136     for eschema in etypes:
   137         rset = session.execute('Any X WHERE X is %s' % eschema)
   137         rset = session.execute('Any X WHERE X is %s' % eschema)
   138         source.fti_index_entities(session, rset.entities())
   138         source.fti_index_entities(session, rset.entities())
       
   139         # clear entity cache to avoid high memory consumption on big tables
       
   140         session.drop_entity_cache()
   139         if withpb:
   141         if withpb:
   140             pb.update()
   142             pb.update()
   141 
   143 
   142 
   144 
   143 def check_schema(schema, session, eids, fix=1):
   145 def check_schema(schema, session, eids, fix=1):