From f29d4296993a1156845b18ecc403e9a4394b72b3 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:46:48 +0100 Subject: [PATCH] [chore] add log line about lengthy reindex migration (#2695) --- ...0240220204526_add_statuses_mentions_is_null_or_empty_idx.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go b/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go index 632abd2df..8bf1abca5 100644 --- a/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go +++ b/internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go @@ -21,6 +21,7 @@ import ( "context" gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/uptrace/bun" "github.com/uptrace/bun/dialect" ) @@ -38,6 +39,8 @@ func init() { } return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { + log.Info(ctx, "reindexing statuses_account_id_id_idx -> statuses_account_view_idx; this may take a few minutes, please don't interrupt this migration!") + // Remove previous index for viewing // statuses created by account. if _, err := tx.