Fixed template inheritance and SQLite connection pooling
- Each page template now parsed with base.html separately to avoid content block conflicts - Connection fragments parsed standalone without base layout - Increased SQLite max connections to 5 to prevent nested query deadlocks - Verified connection tracing works through patch panels and wall socketsmaster
parent
037c4e5ce3
commit
1a8799d711
|
|
@ -21,7 +21,7 @@ func Init(path string) (*Store, error) {
|
||||||
return nil, fmt.Errorf("open db: %w", err)
|
return nil, fmt.Errorf("open db: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
db.SetMaxOpenConns(1)
|
db.SetMaxOpenConns(5)
|
||||||
|
|
||||||
if _, err := db.Exec(schemaSQL); err != nil {
|
if _, err := db.Exec(schemaSQL); err != nil {
|
||||||
db.Close()
|
db.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue