Skip to content

Commit

Permalink
Merge pull request #188 from louis030195/parallel-db-operations
Browse files Browse the repository at this point in the history
parallel operations
  • Loading branch information
m13v authored Aug 21, 2024
2 parents 99b9068 + 3a95671 commit 0410da3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions screenpipe-server/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ impl DatabaseManager {
.connect(&connection_string)
.await?;

// Enable WAL mode
sqlx::query("PRAGMA journal_mode = WAL;")
.execute(&pool)
.await?;

let db_manager = DatabaseManager { pool };

// Run migrations after establishing the connection
Expand Down

0 comments on commit 0410da3

Please sign in to comment.