use threadlocal for single user access

This commit is contained in:
Damien Elmes 2009-11-30 08:34:31 +09:00
parent d44cbd5518
commit 6a8c19a889

View file

@ -2814,7 +2814,8 @@ class DeckStorage(object):
path = "sqlite:///" + path
if pool:
# open and lock connection for single use
engine = create_engine(path, connect_args={'timeout': 0})
engine = create_engine(path, connect_args={'timeout': 0},
strategy="threadlocal")
else:
# no pool & concurrent access w/ timeout
engine = create_engine(path,