Skip to content

Limit parallelism when fetching chunks from DynamoDB#644

Merged
bboreham merged 1 commit intomasterfrom
cap-aws-chunk-get-threads
Jan 10, 2018
Merged

Limit parallelism when fetching chunks from DynamoDB#644
bboreham merged 1 commit intomasterfrom
cap-aws-chunk-get-threads

Conversation

@bboreham
Copy link
Contributor

@bboreham bboreham commented Jan 9, 2018

I think I went too far in #603 - if someone sends a query that requires 260,000 chunks we don't want to hit DynamoDB from 260 goroutines in parallel.

(Ideally there would be a global pool of workers for each table)

If someone sends a query that requires 260,000 chunks we don't want
to hit DynamoDB from 260 goroutines in parallel.
Copy link
Contributor

@jml jml left a comment

Choose a reason for hiding this comment

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

Agree re pool.

@bboreham bboreham merged commit 0c627d7 into master Jan 10, 2018
@bboreham bboreham deleted the cap-aws-chunk-get-threads branch February 22, 2018 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants