Skip to content

Commit

Permalink
Reduce sqlite mmap_size to 256mb
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Mar 5, 2024
1 parent 7ca95a5 commit 0641cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.3.25
version: 1.3.26
externalDocs:
description: Find out more about spec
url: ''
Expand Down
2 changes: 1 addition & 1 deletion internal/persistence/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func InitDB(dataSourceName string) error {
}

db, err := sql.Open("sqlite", fmt.Sprintf(
"file:%s?cache=shared&_fk=1&_journal_mode=WAL&_pragma=analysis_limit=400&pragma=synchronous=normal&_pragma=temp_store=memory&_pragma=mmap_size=30000000000&_pragma=busy_timeout(5000)",
"file:%s?cache=shared&_fk=1&_journal_mode=WAL&_pragma=analysis_limit=400&pragma=synchronous=normal&_pragma=temp_store=memory&_pragma=mmap_size=268435456&_pragma=busy_timeout(5000)",
dataSourceName),
)
if err != nil {
Expand Down

0 comments on commit 0641cae

Please sign in to comment.