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

Fix fail in packages parallel download due to database concurrency issues #12930

Merged
merged 10 commits into from
Jan 19, 2023

Conversation

czoido
Copy link
Contributor

@czoido czoido commented Jan 19, 2023

Changelog: Fix: Fix fail in parallel packages download due to database concurrency issues.
Docs: omit

Downloading packages in paralell was failing, the test test_basic_parallel_install that covered it was forcing the number of threads to 1 waiting for the implementation of some mutex mechanism in the cache. This PR fixes the issue with the most simple solution that is opening a new database connection for each query. The usage of the database in Conan is not so intensive compared with other operations and some preliminar performance tests seems to indicate that it's not affecting performance so much. Let's try this and if we have performance problems use another way of solving the db concurrency issues.

@czoido czoido added this to the 2.0.0-beta9 milestone Jan 19, 2023
@czoido czoido changed the title Fix fail in parallel packages download due to database concurrency issues Fix fail in packages parallel download due to database concurrency issues Jan 19, 2023
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.

2 participants