mojolicious / minion

:octopus: Perl high performance job queue

Home Page:https://metacpan.org/release/Minion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple tasks enqueue

kak-tus opened this issue · comments

Is it in plans to add support to enqueue multiple tasks at once (with one postgresql query, as example)?

No plans.

If I will program this functionality, there are any reasons not to accept it in upstream?

Well, are there good reasons to have it?

I need to insert many (1000, 10000,...) tasks in a single action. It's not very fast.
Action is blocked and waiting for this many inserts.
Of course, I can create one task (that inserts other tasks), but multiple-at-once may be better for DB performance.

I've brought this up a few times on IRC, and it doesn't look like there is much interest in this feature i'm afraid.

Unless there's a very simple and clean patch that doesn't cost us much, i don't see this happening.

This might be related to #52, which needs a test case with about a million jobs.

Ok, benchmarks that require a lot of jobs to be enqueued very fast are a very good use case for this. But sadly there have been no proposals yet, and not a single comment in three weeks. So i'll close this issue for now.