Skip to content

Conversation

@caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Oct 21, 2025

Honestly I don't think we really need it.

We basically only append to the messages tables, the default journaling seems enough to me.

Using the default will also allow to use SMB shares, and reduce IO.

Closes #473
See https://blog.sqlite.ai/journal-modes-in-sqlite
See https://sqlite.org/pragma.html

Honestly I don't think we really need it.

We basically only append to the messages tables, the default journaling
seems enough to me.

Using the default will also allow to use SMB shares, and reduce IO.

Closes #473
See https://blog.sqlite.ai/journal-modes-in-sqlite
See https://sqlite.org/pragma.html

Signed-off-by: Carlos Alexandro Becker <[email protected]>
@caarlos0 caarlos0 self-assigned this Oct 21, 2025
@caarlos0 caarlos0 requested a review from a team as a code owner October 21, 2025 18:52
@caarlos0 caarlos0 requested review from Copilot, kujtimiihoxha and tauraamui and removed request for a team October 21, 2025 18:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the SQLite journal mode from WAL (Write-Ahead Logging) to DELETE mode to improve compatibility with SMB shares and reduce I/O operations. The change aligns with the database's append-only usage pattern for the messages table.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@LarsArtmann
Copy link

Less IO sounds nice :)

@caarlos0 caarlos0 merged commit bb96ca3 into main Nov 5, 2025
18 checks passed
@caarlos0 caarlos0 deleted the sqlite-pragma-wal branch November 5, 2025 20:49
kujtimiihoxha added a commit that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLite fail on SMB-mounted filesystems

4 participants