We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6451192 commit 9c1559eCopy full SHA for 9c1559e
addok_psql_store/__init__.py
@@ -23,6 +23,8 @@ def __init__(self, *args, **kwargs):
23
curs.execute(create_index_query)
24
25
def getconn(self):
26
+ # Use pid as connection id so we can reuse the connection within the
27
+ # same process.
28
return self.pool.getconn(key=os.getpid())
29
30
def fetch(self, *keys):
0 commit comments