-
Notifications
You must be signed in to change notification settings - Fork 174
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
Is the Connection object thread-safe? #3
Comments
Yes. Connection is thread-safe and it can be shared by multiple statements. |
Awesome! Can we rely on this in the future as well (given that this is not documented anywhere)? |
Yes. You can rely on it. If it does not work, it will be treated as a bug. I will add documenting this to my todo list. |
Perfect, thanks! |
Hi, so I just ran into an issue where k records from across n Spark dataframes are written as k+y where y is non-deterministic, using concurrent write using same SF jdbc connection (drivers: spark-snowflake_2.11-2.5.2-spark_2.4.jar, snowflake-jdbc-3.9.1.jar). write config:
How can I synchronize this to achieve data integrity? |
@howryu any thoughts? |
Is it also safe to use a Connection for concurrent client-side PUT statements? For example |
Hello Wheezil, Yes, its safe to use a connection for concurrent client-side PUT statements in Snowflake. Snowflake's architecture is designed to handle concurrent operations efficiently, including file uploads using PUT statements. Regards, |
…plugin [Snowservices][User Metrics] Metrics Discovery Service
We'd like to:
connection.setAutoCommit(false)
)java.sql.Connection
connection.commit()
)Can we do that and rely on it to be thread-safe?
The text was updated successfully, but these errors were encountered: