mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/database: reduce limit for using chunked deletion
Some checks failed
Some checks failed
This commit is contained in:
parent
b44f81d114
commit
33eb00fde0
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ func (mq *MessageQuery) DeleteInChunks(ctx context.Context, portal networkid.Por
|
|||
total, err := mq.CountMessagesInPortal(ctx, portal)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to count messages in portal: %w", err)
|
||||
} else if total < deleteChunkSize {
|
||||
} else if total < deleteChunkSize/3 {
|
||||
return nil
|
||||
}
|
||||
globalMaxRowID, err := mq.getMaxRowID(ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue