-
Notifications
You must be signed in to change notification settings - Fork 117
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
SQLite Fail on threading #140
Comments
Meanwhile I created a pull request. #141 |
Hi @cloasdata, I appreciate your willingness to write a PR. In the spirit of keeping things simple, can you please reduce its scope to only that change without allowing arbitrary user options and having a test? I think this is best solved with the simple boolean change. Sincerely, |
Hello Caleb, Understood. |
Hello Simon, |
Hello Caleb,
it looks like unifac and its underlying sqlite database is making trouble when querying from different threads.
So far I could, see the database is read only and therefore it should be not a problem to allow different threads.
However, as the connection/cursor is stored global in the modul, it will only live once in the interpreter.
Ergo, when quering from different threads and different mixutres/chemicals, the singleton sqllite driver will sooner or later complain.
For now I used the follwing patch:
However, not sure why thermo loads UNIFAC when only dealing with methane. I guess it is because of mapping the CAS number to a chemical.
The text was updated successfully, but these errors were encountered: