mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-22 19:02:54 +01:00
3ca85028ea
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.
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.2.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
exclude: "(.*js$|.*css$)"
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: detect-private-key
|
|
- repo: local
|
|
hooks:
|
|
- id: fmt
|
|
name: fmt
|
|
description: Format files with cargo fmt.
|
|
entry: cargo fmt
|
|
language: system
|
|
types: [rust]
|
|
args: ["--", "--check"]
|
|
- id: cargo-test
|
|
name: cargo test
|
|
description: Test the package for errors.
|
|
entry: cargo test
|
|
language: system
|
|
args: ["--features", "sqlite,mysql,postgresql,enable_mimalloc", "--"]
|
|
types: [rust]
|
|
pass_filenames: false
|
|
- id: cargo-clippy
|
|
name: cargo clippy
|
|
description: Lint Rust sources
|
|
entry: cargo clippy
|
|
language: system
|
|
args: ["--features", "sqlite,mysql,postgresql,enable_mimalloc", "--", "-D", "warnings"]
|
|
types: [rust]
|
|
pass_filenames: false
|