Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: max open conns for SQLite (#781)
boojack6c17f94ef690
diff --git a/store/db/db.go b/store/db/db.goindex 7b4b391e8..370a863b4 100644--- a/store/db/db.go+++ b/store/db/db.go@@ -43,11 +43,12 @@ func (db *DB) Open(ctx context.Context) (err error) {}// Connect to the database without foreign_key.- sqlDB, err := sql.Open("sqlite3", db.profile.DSN+"?_foreign_keys=0")+ sqliteDB, err := sql.Open("sqlite3", db.profile.DSN+"?_foreign_keys=0")if err != nil {return fmt.Errorf("failed to open db with dsn: %s, err: %w", db.profile.DSN, err)}- db.Db = sqlDB+ sqliteDB.SetMaxOpenConns(1)+ db.Db = sqliteDBif db.profile.Mode == "dev" {// In dev mode, we should migrate and seed the database.