This is an archive of the discontinued LLVM Phabricator instance.

Cleanup session creation code, use close() instead of rollback()
ClosedPublic

Authored by MatzeB on Aug 31 2017, 3:59 PM.

Details

Summary

session.rollback() leads to sqlalchemy producing a bunch of additional
queries to compare the objects in the session cache with the database
and rolling the objects in the cache back if necessary. This is a lot
of unnecessary extra database traffic that we do not need there.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB created this revision.Aug 31 2017, 3:59 PM

ping.
@cmatthews: I actually sneaked this change into our internal server and it is running fine for a while now.

cmatthews accepted this revision.Sep 25 2017, 6:41 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Sep 25 2017, 6:41 PM
MatzeB closed this revision.Sep 26 2017, 11:59 AM

Thanks, comitted in r314184