Skip to content

Commit

Permalink
[chore] add log line about lengthy reindex migration (#2695)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst committed Feb 27, 2024
1 parent ad28b9f commit f29d429
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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"
)
Expand All @@ -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.
Expand Down

0 comments on commit f29d429

Please sign in to comment.