-
Notifications
You must be signed in to change notification settings - Fork 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
feat(ingest/snowflake): refactor + parallel schema extraction #10653
Conversation
6498f5c
to
08777f0
Compare
@@ -34,6 +36,10 @@ | |||
|
|||
logger = logging.getLogger(__name__) | |||
|
|||
DEFAULT_REST_SINK_MAX_THREADS = int( | |||
os.getenv("DATAHUB_REST_SINK_DEFAULT_MAX_THREADS", 15) |
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.
Shouldn't this be set based on the number of cores?
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.
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
6b50414
to
803e642
Compare
Stacked on #10642Checklist