if self.commit_intermediate_results and (i_compound % 100 == 99):
                self.session.commit()