Skip to content

SNOW-2684360: Check local environment before wasting useless ressources on cloud checking #2637

@G-Guillard

Description

@G-Guillard

What is the current behavior?

On a local machine, initial connection with snowflake.connector.connect takes more than 10 seconds because of detect_platforms (in Auth.base_auth_data()).

What is the desired behavior?

Check whether the code is running on a local machine before trying to detect the cloud platform.

How would this improve snowflake-connector-python?

This would reduce the connection time from more than 10 seconds to about 1 second.

References and other background

Python 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Windows-11-10.0.26100-SP0
snowflake-connector-python==4.0.0

Metadata

Metadata

Assignees

Labels

featurestatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions