Skip to content

Move processing of bulk image uploads to separate queue - #2535

Merged
tf merged 1 commit into
codevise:masterfrom
tf:bulk-processing-queue
Nov 20, 2026
Merged

tf merged 1 commit into
codevise:masterfrom
tf:bulk-processing-queue

Conversation

@tf

@tf tf commented Nov 20, 2026

Copy link
Copy Markdown
Member

Uploading hundreds of images enqueues a processing job for each of them on the resizing queue, which is shared by all entries. Single uploads in other entries then wait until the whole batch has been processed.

Add an optional bulk_file_processing_queue. Once an entry has more than bulk_file_processing_threshold files of the same type in the processing state, further processing jobs go to that queue. Workers can watch it after the resizing queue to process single uploads first.

Add an index on entry_id and state to image files to keep counting processing files cheap.

Uploading hundreds of images enqueues a processing job for each of
them on the resizing queue, which is shared by all entries. Single
uploads in other entries then wait until the whole batch has been
processed.

Add an optional bulk_file_processing_queue. Once an entry has more
than bulk_file_processing_threshold files of the same type in the
processing state, further processing jobs go to that queue. Workers
can watch it after the resizing queue to process single uploads
first.

Add an index on entry_id and state to image files to keep counting
processing files cheap.
@tf tf added this to the v17.3 milestone Nov 20, 2026
@tf
tf merged commit 5292354 into codevise:master Nov 20, 2026
16 checks passed
@tf
tf deleted the bulk-processing-queue branch November 20, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant