crscillitoe/RoboBanana

Hitting Max Connections for SQLAlchemy

Closed this issue · 3 comments

Somehow the bot is hitting errors with maximum number of connections to the db.

image

Investigate if our session() pattern is

  1. Creating a fresh connection every time (slow)
  2. Failing to auto close (memory leak)

This is happening due to channel point accrual:
image

@braddotcoffee i believe we fixed this in #42, yeah?

Yes I believe we did - whoops!