-
Notifications
You must be signed in to change notification settings - Fork 221
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
support for configuring max concurrent batches in fetcher #612
Conversation
|
||
val groupedBatches: Iterator[TraversableOnce[Vector[Any]]] = ctx.fetcher.config.maxConcurrentBatchesConfig match { | ||
case Some(size) ⇒ groupedIds.grouped(size) | ||
case None ⇒ Iterator(groupedIds) |
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.
We are now using the =>
. Can we change them?
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.
Replaced! I also updated .scalafmt.conf
so no one has to ever think about it!
a1cb696
to
bffb820
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.
🥇
added a new config param maxConcurrentBatches to configure the max number of batched IDs that can be fetched concurrently by fetcher. not specifying any value for this param will fallback to the existing behaviour of running all batches concurrently.
bffb820
to
4d96be6
Compare
added a new config param maxConcurrentBatches to configure
the max number of batched IDs that can be fetched concurrently by fetcher.
not specifying any value for this param will fallback to the existing
behaviour of running all batches concurrently.