-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
🎉 Source Klaviyo: improve performance and make Global Exclusions stream incremental #8592
Conversation
+ make it semi-incremental by introducing reverse incremental stream + increase page_size from 100 to 5k + set cursor_field + remove validation of the records by pydantic models
|
/test connector=connectors/source-klaviyo
|
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 please enable Metrics streams.
@@ -58,7 +58,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Type[Stream]]: | |||
return [ | |||
Campaigns(api_key=config.api_key), | |||
Events(api_key=config.api_key, start_date=config.start_date), | |||
GlobalExclusions(api_key=config.api_key), | |||
GlobalExclusions(api_key=config.api_key, start_date=config.start_date), | |||
Lists(api_key=config.api_key), |
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.
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.
@marcosmarxm done, I left configured_catalog.json
unchanged because SAT is not using it anymore
@@ -29,6 +30,36 @@ def schema_extra(schema: MutableMapping[str, Any], model) -> None: | |||
ref = prop.pop("$ref") | |||
prop["oneOf"] = [{"type": "null"}, {"$ref": ref}] | |||
|
|||
@classmethod | |||
def _expand_refs(cls, schema: Any, ref_resolver: Optional[RefResolver] = None) -> None: |
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.
Awesome job @keu Solve the problem with CI failures!
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.
👍🏼
/publish connector=connectors/source-klaviyo
|
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.
awesome @eugene-kulak
…am incremental (airbytehq#8592) * improve performance of global_exclusion stream + make it semi-incremental by introducing a reverse incremental stream + increase page_size from 100 to 5k + set cursor_field + remove validation of the records by pydantic models * enable Metrics stream Co-authored-by: Eugene Kulak <[email protected]>
What
closes #8002
Two biggest/slowest streams are:
This PR focused mainly on improving the performance of GlobalExclusion stream.
How
Bonus
enable Metrics stream
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here