Skip to content
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

feat: Use of configurable concurrency for extracting assets from BigQuery #51

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

Mayurjag
Copy link

No description provided.

@Mayurjag Mayurjag force-pushed the configurable-concurrency-bq branch from 857fd81 to e85cb55 Compare January 18, 2024 08:24
@Mayurjag Mayurjag force-pushed the configurable-concurrency-bq branch 4 times, most recently from 47117d6 to 1b78dd6 Compare January 18, 2024 14:08
plugins/extractors/bigquery/bigquery.go Outdated Show resolved Hide resolved
plugins/extractors/bigquery/bigquery.go Outdated Show resolved Hide resolved
plugins/extractors/bigquery/bigquery.go Outdated Show resolved Hide resolved
@Mayurjag Mayurjag force-pushed the configurable-concurrency-bq branch 5 times, most recently from 9df98b8 to 2d5b09e Compare January 19, 2024 07:54
@Mayurjag Mayurjag force-pushed the configurable-concurrency-bq branch 2 times, most recently from 4196f02 to 0852aec Compare January 19, 2024 08:21
@@ -219,17 +220,27 @@ func (e *Extractor) Extract(ctx context.Context, emit plugins.Emit) error {
return err
}

ch := make(chan *bigquery.Dataset, len(datasets))
Copy link
Collaborator

Choose a reason for hiding this comment

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

just parallel all the dataset, and use the buffered channel to process the concurrency of the tables

@Mayurjag Mayurjag force-pushed the configurable-concurrency-bq branch from 0852aec to c245de6 Compare January 19, 2024 10:37
@haveiss haveiss force-pushed the configurable-concurrency-bq branch from 49ae7da to dccb304 Compare January 19, 2024 11:22
@Mayurjag Mayurjag merged commit fda7e0b into main Jan 19, 2024
34 of 53 checks passed
@haveiss haveiss deleted the configurable-concurrency-bq branch January 19, 2024 11:52
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.

4 participants