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

perf(ingest): speed up MCPW.validate() #7319

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Feb 11, 2023

In my local tests with an MCPW with a dataset schema of 3000 columns, this reduced runtime from ~676 ms to ~189 ms, which is a 3-4x improvement. It seems to scale linearly with the size of the MCPW object, but I didn't test that extensively.

Note that almost 200ms is still pretty bad for basic data validation. With the changes from acryldata/avro_gen#18, I was able to get it down to ~130 ms. Not sure how much further it is worth pushing it.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

In my local tests with an MCPW with a dataset schema of 3000 columns,
this reduced runtime from ~676 ms to ~189 ms, which is a 3-4x
improvement. It seems to scale linearly with the size of the MCPW
object, but I didn't test that extensively.

Note that almost 200ms is still pretty bad for basic data validation.
With the changes from acryldata/avro_gen#18, I
was able to get it down to ~130 ms.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Feb 11, 2023
Copy link
Contributor

@treff7es treff7es left a comment

Choose a reason for hiding this comment

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

lgtm

@treff7es treff7es merged commit 76846b4 into datahub-project:master Feb 11, 2023
oleg-ruban pushed a commit to RChygir/datahub that referenced this pull request Feb 28, 2023
@hsheth2 hsheth2 deleted the mcpw-perf branch February 14, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants