documentation

This commit is contained in:
Connor Johnstone
2026-03-23 16:17:01 -04:00
parent f87949dc82
commit 673de39918
2 changed files with 6 additions and 2 deletions

View File

@@ -615,9 +615,11 @@ pub fn settings_page() -> Html {
<p class="text-sm" style="margin:0;">
<strong style="color: var(--warning);">{ "Heads up: " }</strong>
{ "This downloads ~24 GB of data and builds a ~10 GB local database. " }
{ "The initial import can take 3-6 hours depending on your hardware. " }
{ "The initial import can take 12-24 hours depending on your hardware. " }
{ "Total disk usage: ~35 GB (downloads + database). " }
{ "After the initial import, the database is automatically refreshed weekly to stay current." }
{ "After the initial import, the database is automatically refreshed weekly to stay current. " }
<strong>{ "SSD storage is recommended" }</strong>
{ " for best performance. HDDs will still be faster than the API, but lookups may take a few seconds instead of being instant." }
</p>
</div>
{

View File

@@ -416,6 +416,7 @@ async fn trigger_mb_import(
// Run import in blocking task since rusqlite is sync
let result = tokio::task::spawn_blocking(move || {
shanty_data::mb_import::run_import_at_path(&db_path, &data_dir, |msg| {
tracing::info!("{msg}");
state_clone.tasks.update_progress(&tid_clone, 4, 8, msg);
})
})
@@ -423,6 +424,7 @@ async fn trigger_mb_import(
match result {
Ok(Ok(stats)) => {
tracing::info!(%stats, "MusicBrainz import complete");
state.tasks.complete(&tid, format!("{stats}"));
}
Ok(Err(e)) => {