From 3519326c1a5f0a33291595d527068431a8de8efe Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 2 Sep 2025 14:30:27 +0300 Subject: [PATCH] Experiment with improving sqlite performance - Auto vacuum to write more often to the db file. Should prevent backing up the database and finding missing data. - Create temporary indexes in memory - should be faster than disk --- config/runtime.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/runtime.exs b/config/runtime.exs index c6627847..93a567bd 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -33,6 +33,8 @@ if timezone = System.get_env("TIMEZONE") do end config :music_library, MusicLibrary.Repo, + auto_vacuum: :incremental, + temp_store: :memory, load_extensions: [ MusicLibrary.Repo.extension_path("unicode") ]