mirror of https://github.com/pixelfed/pixelfed
dev
staging
revert-7995-renovate/serversideup-php-8.x
renovate/lock-file-maintenance
l10n_crowdin_translations
newui
fix/username-case-insensitive
configcache-v2.1-api
fix/dm-remote-delete-media-leak
fix/hashtags-outside-bmp
copilot/review-old-issues
groups
vue3
v0.1.9
v0.10.0
v0.10.1
v0.10.10
v0.10.2
v0.10.3
v0.10.4
v0.10.5
v0.10.6
v0.10.7
v0.10.8
v0.10.9
v0.11.0
v0.11.1
v0.11.10
v0.11.11
v0.11.12
v0.11.13
v0.11.2
v0.11.3
v0.11.4
v0.11.5
v0.11.6
v0.11.7
v0.11.8
v0.11.9
v0.12.0
v0.12.1
v0.12.10
v0.12.11
v0.12.12
v0.12.2
v0.12.3
v0.12.4
v0.12.5
v0.12.6
v0.12.7
v0.12.8
v0.12.9
v0.13.0
v0.14.0
v0.14.1
v0.14.2
v0.14.3
v0.14.4
v0.14.5-rc
v0.14.5-rc1
v0.15.0
v0.15.0-rc1
v0.15.1
v0.15.2
v0.5.9
v0.6.0
v0.6.1
v0.7.6
v0.8.0
v0.8.5
v0.8.6
v0.9.0
v0.9.4
v0.9.5
v0.9.6
${ noResults }
1 Commits (25e1384dbebf4fa779d2e710ed71fb0a62975db7)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
c4e5b96d25 |
Stream deletions with cursor and batch notification lookups in delete jobs
The status- and account-deletion jobs loaded whole collections with ->get() and then looped, running a per-row Notification lookup inside each iteration. - StatusDelete / RemoteStatusDelete: resolve associated DirectMessage and MediaTag ids, fetch their notifications in a single whereIn query, clear each via cursor (NotificationService::del must run per row for cache/redis cleanup), then bulk delete the DMs and media tags. - DeleteAccountPipeline / DeleteRemoteProfilePipeline: stream Story and Collection deletions with cursor() instead of loading every row into memory. Per-row file unlink and item deletes are preserved. Adds StatusDeleteCleanupTest covering DM + notification cleanup, media tag + notification cleanup, and the no-associations case. |
3 months ago |