mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #488] migrate to modernc.org/sqlite #373
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sbinet on GitHub (Nov 12, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/488
hi there,
any reason why
ntfydoesn't use modernc.org/sqlite which is a pure-Go implementation ofsqlite3?this would ease the cross-compilation story (ex: amd64 -> arm64) and make the binary pure-Go (and more easily statically compiled)
@binwiederhier commented on GitHub (Nov 12, 2022):
This is certainly intriguing. Do you have any information around the maturity, compatibility or the performance of this implementation?
Specifically
@sbinet commented on GitHub (Nov 12, 2022):
AFAIK, it's a mechanically translated C-to-Go version from the official sqlite3 project.
as for the architectures supported:
I don't have performances numbers wrt
mattn/go-sqlite3.perkeep has switched to
modernc.org/sqlitesome time ago.are there tests in
ntfythat exercize WAL ?(running
go test ./...fails for me, with and w/omodernc.org/sqlite)@binwiederhier commented on GitHub (Nov 13, 2022):
Fascinating. But also terrifying.
There are no tests that use the WAL. In fact, it's not used by default at all. But it can be enabled like this: https://ntfy.sh/docs/config/#wal-for-message-cache (which is done for ntfy.sh to speed up cache writes).
Can you share what fails? Maybe use the
make testtarget (though that's almost the same)@binwiederhier commented on GitHub (Nov 16, 2022):
Given my recent issues with SQLite (see #498), I think I'll still with the real deal for now.
I'll definitely keep this in mind. It would make things much easier indeed.
Let me know if you get it to compile.
COMMITinto a variable so it could be overridden if desired #1286