Skip to content

Commit d0aeeb9

Browse files
committed
Fix #5. Fix #6.
1 parent a83ec5d commit d0aeeb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud_dfs/database/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
engine = create_engine('mysql+pymysql://{0}:{1}@{2}/{3}'.format(DB_USER, DB_PASSWORD, DB_HOST, DB_NAME),
8-
convert_unicode=True, pool_recycle=1800)
8+
convert_unicode=True, pool_recycle=4)
99
db_session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine, expire_on_commit=False))
1010

1111
Base = declarative_base()

0 commit comments

Comments
 (0)