summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-02-27 18:46:48 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-27 18:46:48 +0100
commitf29d4296993a1156845b18ecc403e9a4394b72b3 (patch)
tree83f1bf85917e174de51bc207c0244eb64308d437
parent[bugfix] Account timeline: exclude self-replies that mention other accounts (... (diff)
downloadgotosocial-f29d4296993a1156845b18ecc403e9a4394b72b3.tar.xz
[chore] add log line about lengthy reindex migration (#2695)v0.14.0-rc1
-rw-r--r--internal/db/bundb/migrations/20240220204526_add_statuses_mentions_is_null_or_empty_idx.go3
1 files changed, 3 insertions, 0 deletions
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.