mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
[PR #2429] [MERGED] Improve sync speed and updated dep. versions #3264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2429
Author: @BlackDex
Created: 4/22/2022
Status: ✅ Merged
Merged: 5/11/2022
Merged by: @dani-garcia
Base:
main← Head:sql-optimizations📝 Commits (1)
3ca8502Improve sync speed and updated dep. versions📊 Changes
38 files changed (+6252 additions, -6003 deletions)
View changed files
📝
.github/workflows/build.yml(+2 -2)📝
.github/workflows/hadolint.yml(+3 -3)📝
.github/workflows/release.yml(+3 -3)📝
.pre-commit-config.yaml(+1 -1)📝
Cargo.lock(+112 -119)📝
Cargo.toml(+16 -14)📝
docker/Dockerfile.j2(+1 -1)📝
docker/amd64/Dockerfile(+1 -1)📝
docker/amd64/Dockerfile.buildx(+1 -1)📝
docker/arm64/Dockerfile(+1 -1)📝
docker/arm64/Dockerfile.buildx(+1 -1)📝
docker/armv6/Dockerfile(+1 -1)📝
docker/armv6/Dockerfile.buildx(+1 -1)📝
docker/armv7/Dockerfile(+1 -1)📝
docker/armv7/Dockerfile.buildx(+1 -1)📝
rustfmt.toml(+3 -3)📝
src/api/core/ciphers.rs(+94 -22)📝
src/api/core/emergency_access.rs(+6 -3)📝
src/api/core/mod.rs(+1 -0)📝
src/api/core/organizations.rs(+9 -3)...and 18 more files
📄 Description
Improved sync speed by resolving the N+1 query issues.
Solves #1402 and Solves #1453
With this change there is just one query done to retreive all the important data, and matching is done in-code/memory.
With a very large database the sync time went down about 3 times.
Also updated misc crates and Github Actions versions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.