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: improve json to proto conversion by caching schema #2179

Merged
merged 18 commits into from
Jul 13, 2023

Conversation

GaoleMeng
Copy link
Contributor

By caching schema across rows during conversion, we could save ~2x conversion speed for wide schema and when the row count is large

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

GaoleMeng and others added 16 commits March 30, 2023 10:52
…eue.

Since in write api server side we have total timeout of 2 minutes, it
does not make sense to wait 15 minutes to determine whether we have met
dead connection, let's reduce the timeout here
explicitly provided 2. fix location string matching for multiplexing
@GaoleMeng GaoleMeng requested a review from a team as a code owner July 7, 2023 23:10
@GaoleMeng GaoleMeng requested a review from tswast July 7, 2023 23:10
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels Jul 7, 2023
@GaoleMeng GaoleMeng requested a review from yirutang July 7, 2023 23:10
@GaoleMeng GaoleMeng requested a review from a team as a code owner July 11, 2023 01:20
@GaoleMeng GaoleMeng force-pushed the main branch 5 times, most recently from fb52950 to 403c6b3 Compare July 11, 2023 05:35
@GaoleMeng GaoleMeng force-pushed the main branch 11 times, most recently from a6f49fa to 561cdf1 Compare July 11, 2023 23:54
@GaoleMeng GaoleMeng force-pushed the main branch 3 times, most recently from ec44394 to a856a68 Compare July 12, 2023 23:03
caching the schema. This will introduce approximately 2x improvement to
append speed
@GaoleMeng GaoleMeng added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 12, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 12, 2023
@GaoleMeng GaoleMeng added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 13, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 13, 2023
@GaoleMeng GaoleMeng added external This issue is blocked on a bug with the actual product. owlbot:run Add this label to trigger the Owlbot post processor. labels Jul 13, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 13, 2023
@GaoleMeng GaoleMeng merged commit afc550a into googleapis:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. external This issue is blocked on a bug with the actual product. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants