Skip to content

Conversation

podgaietska
Copy link
Contributor

Overview

This PR enables multiplexing for the Storage Write API.
Note: multiplexing is only available when using the default stream.

What this does

  • Allows to reuses existing connections to BigQuery instead of creating new ones. Improves efficiency and scalability when writing many table or running many tasks.
  • Reduces connection overhead and helps avoid hitting BigQuery connection quotas.

/**
* Override to provide additional configs to JsonStreamWriter
*/
protected void applyJsonWriterConfig(JsonStreamWriter.Builder builder) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change this to updateJsonStreamWriterBuilder or something similar that indicates that this class is updating the argument.

The current name makes it sound like we are using the builder to apply a config to this object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. Thanks!

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.

3 participants