- Reduce cache size from 8GB to 512MB (still plenty for 2.4GB DB) - Reduce mmap_size from 10GB to 256MB (reasonable default) - Use default page size (4KB) instead of 8KB - Use default WAL checkpoint interval (1000 pages) - Remove redundant pragmas (threads, cache_spill, read_uncommitted) - Clean up connection string to only use _txlock parameter - Keep synchronous=OFF for performance (since we have mutex protection) |
||
|---|---|---|
| .. | ||
| database_test.go | ||
| database.go | ||
| interface.go | ||
| models.go | ||
| schema.sql | ||
| slowquery.go | ||
| utils.go | ||