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

Do not use shared connections from column type thread #2689

Closed
wants to merge 2 commits into from

Conversation

strk
Copy link
Contributor

@strk strk commented Jan 18, 2016

Connections cannot be shared between multiple threads.
Fixes http://hub.qgis.org/issues/13141

Connections cannot be shared between multiple threads.
Fixes http://hub.qgis.org/issues/13141
@strk
Copy link
Contributor Author

strk commented Jan 18, 2016

I think the whole "shared connections" mechanism should be deprecated in favour of a proper connection pool, which is also already present (QgsPostgresConnPool) and used by some classes (QgsPGConnectionItem and QgsPostgresFeatureIterator) -- was there any plan to switch over or previous discussion about it ?

@jef-n, @wonder-sk, @luipir

@strk
Copy link
Contributor Author

strk commented Jan 18, 2016

Locally I have another implementation which does make use of the pool (feels better, imho)

@strk
Copy link
Contributor Author

strk commented Jan 18, 2016

Pushed the pool-based approach

@strk
Copy link
Contributor Author

strk commented Jan 18, 2016

Continues in #2690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant