From 89e738064e061c9d555a18c519c4dfa41e8ac589 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 8 Mar 2017 18:20:09 +0100 Subject: start with only 1 db connection --- api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index 2bb37a1..cfbcbb8 100644 --- a/api.py +++ b/api.py @@ -21,7 +21,8 @@ class Apigrabber(joblib.worker.Worker): """Connect to database.""" logging.warning("connecting to database") await super().connect(**args) - self._pool = await asyncpg.create_pool(**args) + self._pool = await asyncpg.create_pool(min_size=1, + **args) async def setup(self): """Initialize the database.""" -- cgit v1.3.1