-
Notifications
You must be signed in to change notification settings - Fork 152
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
SNOW-299559: Feature request: support async queries (sqlalchemy 1.4.0) #218
Comments
I'd be happy to provide asyncio SQLAlchemy support as an external contributor, but that would require asyncio support for the underlying connection, which doesn't look like it's coming any time soon snowflakedb/snowflake-connector-python#38 |
Any updates? |
Any update on this? Asyncio support would be a nice feature to add. |
+1 We are also using snowflake and this has a significant negative affect on performance. We have to rely on workaround with multiprocessing/multithreading etc. The alternative of using snowflake connector directly means losing all the benefits of an ORM, which is unacceptable |
bump |
1 similar comment
bump |
hi folks, thanks for all the feedback. Prerequisite I guess would be the Snowflake PythonConnector to support asyncio (snowflakedb/snowflake-connector-python#38) first. |
The snowflake connector does not necessarily need to be asyncio-compatible. The connector is thread safe https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-api which means you can wrap any IO-bound sync calls in It looks like we're not far off native async support, too snowflakedb/snowflake-connector-python#38 (comment) |
What is the current behavior?
SQLAlchemy 1.4.0 introduced the asyncio extension that add the ability to run queries in paralell.
The following code should create async engine:
But instead it throws the following error:
What is the desired behavior?
The engine will be created successfully
How would this improve
snowflake-sqlalchemy
?It'll support running async queries
References, Other Background
https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html
The text was updated successfully, but these errors were encountered: