Isaac105 commited on
Commit
e7b76e2
·
1 Parent(s): 84af9c0

deploy from github actions

Browse files
Files changed (1) hide show
  1. app/database.py +5 -3
app/database.py CHANGED
@@ -23,10 +23,12 @@ if DATABASE_URL:
23
  }
24
  engine = create_engine(
25
  DATABASE_URL,
 
 
 
 
26
  pool_pre_ping=True,
27
- pool_recycle=300,
28
- connect_args=connect_args,
29
- poolclass=NullPool
30
  )
31
  else:
32
  SQLITE_URL = "sqlite:///./musical_master.db"
 
23
  }
24
  engine = create_engine(
25
  DATABASE_URL,
26
+ pool_size=10,
27
+ max_overflow=20,
28
+ pool_timeout=30,
29
+ pool_recycle=180,
30
  pool_pre_ping=True,
31
+ connect_args=connect_args
 
 
32
  )
33
  else:
34
  SQLITE_URL = "sqlite:///./musical_master.db"