-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Airbyte CDK: move deprecated decorator #44023
Conversation
Signed-off-by: Artem Inzhyyants <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Can we add a bit more information on the impact? How much time do we expect to save per method call? Per sync? |
Should we do that for the methods in HttpStream as well? |
Update description with link to issue description. I expect about 4-5% of execution time (per sync).
These methods are used only in adapters and not very frequently during the sync, so their impact will be minimal. |
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.
LGTM! Thanks for linking the impacts in the PR
Signed-off-by: Artem Inzhyyants <[email protected]>
/approve-regression-tests
|
What
Resolve https://github.com/airbytehq/airbyte-internal-issues/issues/8862
@deprecated
decorator is initialized on every function call. This puts unnecessary load on the heavily used methodget_updated_state
in incremental syncs .How
Move
@deprecated
decorator for functionget_updated_state
to class level.Review guide
airbyte-cdk/python/airbyte_cdk/sources/streams/core.py
Performance Impact
According to the Profiler Stats, removing them can save us about 4-5% of execution time, see https://github.com/airbytehq/airbyte-internal-issues/issues/8862#issue-2433380004
Can this PR be safely reverted and rolled back?