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(ingest/snowflake): refactor + parallel schema extraction #10653

Merged
merged 9 commits into from
Jun 14, 2024

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Jun 6, 2024

Stacked on #10642

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

@@ -34,6 +36,10 @@

logger = logging.getLogger(__name__)

DEFAULT_REST_SINK_MAX_THREADS = int(
os.getenv("DATAHUB_REST_SINK_DEFAULT_MAX_THREADS", 15)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be set based on the number of cores?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because of the python GIL, python pretty much runs on a single core regardless - the total number of cores available only matters when using multiprocessing, not threading.

The threads help because the rest sink is usually bound by I/O, which releases the GIL and allows other threads to run

@hsheth2 hsheth2 merged commit 62c6704 into master Jun 14, 2024
57 of 58 checks passed
@hsheth2 hsheth2 deleted the snowflake-refactor branch June 14, 2024 20:23
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