-
Notifications
You must be signed in to change notification settings - Fork 42
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
perf: Reduce CURRENT_TIMESTAMP queries #1114
Conversation
bigframes/session/time.py
Outdated
MIN_RESYNC_SECONDS = 100 | ||
|
||
|
||
class BigquerySyncedClock: |
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.
Nit: BigQuery (capital Q)
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.
Also, could you make some unit tests for this functionality using freezegun to mock out the system monotonic time? Thanks!
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 unit tests in new revision
6037544
to
6299796
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.
Clever! This should really help things out.
Note: I think the benchmarks use a separate process per query if I remember correctly. If so, we might need to update those to take full advantage of this. Might even be worth some sort of "warm up" query before running the benchmarks proper.
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:
Fixes #<issue_number_goes_here> 🦕