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

Improve upgrade speed by creating indexes at separate stage #5765

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

kozlovsky
Copy link
Collaborator

In this PR I delay the creation of usual indexes and FTS index until all data are loaded to the database. This lead to about 4x speed improvement of the upgrade process.

@ghost
Copy link

ghost commented Dec 1, 2020

DeepCode's analysis on #50bae8 found:

  • 1 critical issue 👇

Top issues

Description Example fixes
Unsanitized input flows from the database and is used in an SQL query in execute. This may result in an SQL Injection vulnerability. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@kozlovsky kozlovsky force-pushed the feature/improve-upgrade-speed branch 2 times, most recently from 5845f9f to e3f197e Compare December 1, 2020 19:30
@kozlovsky kozlovsky force-pushed the feature/improve-upgrade-speed branch from e3f197e to 50bae8a Compare December 1, 2020 19:39
@sonarcloud
Copy link

sonarcloud bot commented Dec 1, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ichorid ichorid merged commit 3c9fb74 into Tribler:devel Dec 1, 2020
@kozlovsky kozlovsky deleted the feature/improve-upgrade-speed branch December 8, 2020 05:19
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

3 participants