mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:12:25 -05:00
whoops
This commit is contained in:
parent
dd3a32acdb
commit
5c000620e2
1 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ func init() {
|
||||||
Column("id").
|
Column("id").
|
||||||
Where("? < ?", bun.Ident("id"), maxID).
|
Where("? < ?", bun.Ident("id"), maxID).
|
||||||
OrderExpr("? DESC", bun.Ident("id")).
|
OrderExpr("? DESC", bun.Ident("id")).
|
||||||
Limit(250).
|
Limit(1000).
|
||||||
Scan(ctx); err != nil && !errors.Is(err, sql.ErrNoRows) {
|
Scan(ctx); err != nil && !errors.Is(err, sql.ErrNoRows) {
|
||||||
return gtserror.Newf("error selecting unthreaded statuses: %w", err)
|
return gtserror.Newf("error selecting unthreaded statuses: %w", err)
|
||||||
}
|
}
|
||||||
|
|
@ -137,13 +137,13 @@ func init() {
|
||||||
log.Infof(
|
log.Infof(
|
||||||
ctx,
|
ctx,
|
||||||
"[~%.0f rows/s; updated %d total rows] migrated ~%.2f%% of statuses",
|
"[~%.0f rows/s; updated %d total rows] migrated ~%.2f%% of statuses",
|
||||||
updatedRowsTotal, rowsPerSecond, percentDone,
|
rowsPerSecond, updatedRowsTotal, percentDone,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
log.Infof(
|
log.Infof(
|
||||||
ctx,
|
ctx,
|
||||||
"[~%.0f rows/s; updated %d total rows] almost done... ",
|
"[~%.0f rows/s; updated %d total rows] almost done... ",
|
||||||
updatedRowsTotal, rowsPerSecond,
|
rowsPerSecond, updatedRowsTotal,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue