Skip to content

Commit b6085f2

Browse files
authored
fix(sqlite): fix database locked issues (#7469)
<!-- Describe what has changed in this PR --> **What changed?** * Number of open and idle connections has reduced to 1 in `development_sqlite.yaml` from 20 to 1 <!-- Tell your future self why have you made these changes --> **Why?** * Due to multiple parallel connections, a `database is locked` error is occurred. This change reduces the number of open connections managed by sqlite plugin. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** * Unit test <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** * No risks
1 parent db4bd6b commit b6085f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/development_sqlite.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ persistence:
55
sqlite-default:
66
sql:
77
pluginName: "sqlite"
8-
maxConns: 20
9-
maxIdleConns: 20
10-
maxConnLifetime: "1h"
8+
maxConns: 1
9+
maxIdleConns: 1
10+
maxConnLifetime: "128h"
1111
databaseName: "cadence.db"
1212
sqlite-visibility:
1313
sql:
1414
pluginName: "sqlite"
15-
maxConns: 20
16-
maxIdleConns: 20
17-
maxConnLifetime: "1h"
15+
maxConns: 1
16+
maxIdleConns: 1
17+
maxConnLifetime: "128h"
1818
databaseName: "cadence_visibility.db"

0 commit comments

Comments
 (0)