Skip to content

Improve performance of RemoveRemoteMediaCommand#2064

Merged
BentiGorlich merged 4 commits intomainfrom
new/improve-remove-remote-media-command
Mar 29, 2026
Merged

Improve performance of RemoveRemoteMediaCommand#2064
BentiGorlich merged 4 commits intomainfrom
new/improve-remove-remote-media-command

Conversation

@BentiGorlich
Copy link
Copy Markdown
Member

  • for some reason doctrine takes a long time to compute the changeset in this case. Use a native statement instead that is a lot faster

- for some reason doctrine takes a long time to compute the changeset in this case. Use a native statement instead that is a lot faster
@BentiGorlich BentiGorlich requested a review from blued-gear March 25, 2026 11:24
@BentiGorlich BentiGorlich self-assigned this Mar 25, 2026
@BentiGorlich BentiGorlich added backend Backend related issues and pull requests performance This is a issue regarding performance. labels Mar 25, 2026
$image->downloadedAt = null;
$this->entityManager->persist($image);
$this->entityManager->flush();
$sql = 'UPDATE image SET file_path = NULL, downloaded_at = NULL WHERE id = :id';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the two properties should still be set to null, in case code somewhere else uses them for checks or so

@BentiGorlich BentiGorlich requested a review from blued-gear March 29, 2026 14:20
@BentiGorlich BentiGorlich enabled auto-merge (squash) March 29, 2026 17:52
@BentiGorlich BentiGorlich merged commit 43dc69c into main Mar 29, 2026
9 checks passed
@BentiGorlich BentiGorlich deleted the new/improve-remove-remote-media-command branch March 29, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend related issues and pull requests performance This is a issue regarding performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants