go: sqlite

main
sudo pacman -Syu 2025-01-04 01:41:09 +07:00
parent cbc013ba40
commit 640a53cf09
2 changed files with 2 additions and 0 deletions

View File

@ -796,6 +796,7 @@ internal
<p>Remember to config:</p> <p>Remember to config:</p>
<ul> <ul>
<li>Write-Ahead Logging: <code>PRAGMA journal_mode=WAL</code></li> <li>Write-Ahead Logging: <code>PRAGMA journal_mode=WAL</code></li>
<li>Set timeout retry lock: <code>PRAGMA busy_timeout=5000</code></li>
<li> <li>
Disable connections pool with <code>SetMaxOpenConns</code> sets to 1 Disable connections pool with <code>SetMaxOpenConns</code> sets to 1
</li> </li>

View File

@ -408,6 +408,7 @@ Remember to config:
Remember to config: Remember to config:
- Write-Ahead Logging: `PRAGMA journal_mode=WAL` - Write-Ahead Logging: `PRAGMA journal_mode=WAL`
- Set timeout retry lock: `PRAGMA busy_timeout=5000`
- Disable connections pool with `SetMaxOpenConns` sets to 1 - Disable connections pool with `SetMaxOpenConns` sets to 1
Don't use [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3), it's required Don't use [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3), it's required