Skip to content
Snippets Groups Projects

Swap to UNLINK for Redis set cache

Merged Robert May requested to merge unlink-cache-deletions into master
All threads resolved!

What does this MR do?

This uses UNLINK in Redis 4 to delete sets. This unlinks the key from the value but actually deletes the value asynchronously. With large sets this should give us a reasonable performance boost.

This MR also implements multi-key deletes for RepositorySetCache methods in the Repository model, meaning only one UNLINK call will be issued for all sets being expired.

Implements :repository_set_cache_unlink feature flag, defaulting to on.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Robert May

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Stan Hu assigned to @robotmay and unassigned @stanhu

    assigned to @robotmay and unassigned @stanhu

  • Robert May added 1 commit

    added 1 commit

    Compare with previous version

  • Robert May added 257 commits

    added 257 commits

    Compare with previous version

  • Robert May added 1 commit

    added 1 commit

    Compare with previous version

  • Robert May added 185 commits

    added 185 commits

    Compare with previous version

  • Robert May assigned to @stanhu and unassigned @robotmay

    assigned to @stanhu and unassigned @robotmay

  • Author Contributor

    Back to you @stanhu, as I've sorted out the version issue and rebased again :thumbsup:

  • Stan Hu
  • Stan Hu resolved all threads

    resolved all threads

  • Stan Hu added 49 commits

    added 49 commits

    • cc4d9af9...960eff07 - 46 commits from branch master
    • 568905a0 - Swap to UNLINK for Redis set cache
    • 474ed146 - Gracefully fall back to DEL
    • b7cff7f5 - No need to glob keys again

    Compare with previous version

  • Stan Hu approved this merge request

    approved this merge request

  • Stan Hu enabled an automatic merge when the pipeline for ba20751d succeeds

    enabled an automatic merge when the pipeline for ba20751d succeeds

  • Robert May resolved all threads

    resolved all threads

  • merged

  • Stan Hu mentioned in commit 5cd3a67a

    mentioned in commit 5cd3a67a

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • Igor mentioned in merge request !38410 (merged)

    mentioned in merge request !38410 (merged)

  • Please register or sign in to reply
    Loading