Bug 1310016 - Persist DB connections for 5 mins to improve performance
Bug 1310016 - Persist DB connections for 5 mins to improve performance

By default Django doesn't perform any connection pooling, so closes the
DB connection after each request:
https://docs.djangoproject.com/en/1.10/ref/settings/#conn-max-age

Reconnecting takes 20-40ms on production (due to use of TLS), which is
avoided with this change.

kapy2010/treeherder,edmorley/treeherder,tojon/treeherder,kapy2010/treeherder,tojonmz/treeherder,KWierso/treeherder,tojonmz/treeherder,tojonmz/treeherder,edmorley/treeherder,edmorley/treeherder,tojonmz/treeherder,kapy2010/treeherder,tojon/treeherder,KWierso/treeherder,KWierso/treeherder,tojon/treeherder,kapy2010/treeherder,kapy2010/treeherder,edmorley/treeherder,tojonmz/treeherder,KWierso/treeherder,tojon/treeherder,tojonmz/treeherder