Skip to content

SQLite: Add busy timeout preset to reduce locking errors when indexing #2707

@lastzero

Description

@lastzero

Based on the advice in #392 (comment) by @lapo-luchini, we will add ?_busy_timeout=5000 to the default SQLite DSN.

Is there anything else that might be helpful? At https://pkg.go.dev/github.com/mattn/go-sqlite3#section-readme you will find an overview of the parameters.

I've also seen advice to set sqlite_unlock_notify at compile time, but I haven't figured out what it really does, whether we should use it or if it's a Gitea-specific build tag that otherwise has no effect?

We just got back from vacation, so I'm pretty busy and don't have much time to read through the documentation. Help is much appreciated! 👍

Metadata

Metadata

Assignees

Labels

enhancementEnhancement or improvement of an existing featureperformancePerformance OptimizationreleasedAvailable in the stable release

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions