-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b366273
commit 9af1fa3
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From 5c3e107d5ddcab29e12cfa1dcc56330261eb7242 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> | ||
Date: Mon, 6 Nov 2023 15:56:26 +0100 | ||
Subject: [PATCH] make atuin on zfs fast again | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Signed-off-by: Jörg Thalheim <joerg@thalheim.io> | ||
--- | ||
atuin-client/src/database.rs | 1 + | ||
atuin-client/src/record/sqlite_store.rs | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs | ||
index c4b45302..15ba723c 100644 | ||
--- a/atuin-client/src/database.rs | ||
+++ b/atuin-client/src/database.rs | ||
@@ -131,6 +131,7 @@ pub async fn new(path: impl AsRef<Path>) -> Result<Self> { | ||
|
||
let opts = SqliteConnectOptions::from_str(path.as_os_str().to_str().unwrap())? | ||
.journal_mode(SqliteJournalMode::Wal) | ||
+ .synchronous(sqlx::sqlite::SqliteSynchronous::Off) | ||
.create_if_missing(true); | ||
|
||
let pool = SqlitePoolOptions::new().connect_with(opts).await?; | ||
diff --git a/atuin-client/src/record/sqlite_store.rs b/atuin-client/src/record/sqlite_store.rs | ||
index db709f20..0a72fee0 100644 | ||
--- a/atuin-client/src/record/sqlite_store.rs | ||
+++ b/atuin-client/src/record/sqlite_store.rs | ||
@@ -38,6 +38,7 @@ pub async fn new(path: impl AsRef<Path>) -> Result<Self> { | ||
|
||
let opts = SqliteConnectOptions::from_str(path.as_os_str().to_str().unwrap())? | ||
.journal_mode(SqliteJournalMode::Wal) | ||
+ .synchronous(sqlx::sqlite::SqliteSynchronous::Off) | ||
.create_if_missing(true); | ||
|
||
let pool = SqlitePoolOptions::new().connect_with(opts).await?; | ||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{atuin}: | ||
atuin.overrideAttrs (old: { | ||
# as cursed as doing mitigations=off in the kernel command line | ||
patches = [./0001-make-atuin-on-zfs-fast-again.patch]; | ||
}) |