Co-authored-by: Karol Sójko <karolsojko@proton.me>
@@ -114,6 +114,8 @@ export class AppDataSource {
...commonDataSourceOptions,
type: 'sqlite',
database: this.env.get('DB_SQLITE_DATABASE_PATH'),
+ enableWAL: true,
+ busyErrorRetry: 2000,
}
this._dataSource = new DataSource(sqliteDataSourceOptions)
@@ -80,6 +80,8 @@ export class AppDataSource {
this.dataSource = new DataSource(sqliteDataSourceOptions)
@@ -98,6 +98,8 @@ export class AppDataSource {