-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: process wait conditions in batch mode #910
Conversation
6999b84
to
b3d8c73
Compare
b3d8c73
to
8a2282d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still looking through it, one Q so far.
ProcessQueue q = PROCESS_QUEUE.as("q"); | ||
return tx.select(q.INSTANCE_ID, q.CURRENT_STATUS) | ||
.from(q) | ||
.where(q.INSTANCE_ID.in(processes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is JOOQ smart enough to turn this INSTANCE_ID IN (...)
into an array operation? I'm worried that it's going to fail for large processes
sets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the upper limit is waitProcessLimitForStatusQuery
? Should be fine, I think, but for the query parser sake I'd replaced with an array operation if it is possible here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, waitProcessLimitForStatusQuery
is a limit
the idea here is this: instead of processing each wait condition individually, we will process them in batches. As a result, instead of requesting the status for each process separately, we will request the statuses for a batch of processes at once