Skip to content

Commit

Permalink
Disable connection pooling [Resolves #22]
Browse files Browse the repository at this point in the history
  • Loading branch information
thcrock committed Mar 2, 2017
1 parent e60c1d4 commit c9dbf49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion triage/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from sqlalchemy.types import ARRAY
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy.pool import NullPool
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.engine.url import URL

Expand Down Expand Up @@ -130,4 +131,4 @@ def connect():
'port': profile['port'],
}
dburl = URL('postgres', **dbconfig)
return create_engine(dburl)
return create_engine(dburl, poolclass=NullPool)

0 comments on commit c9dbf49

Please sign in to comment.