Skip to content

cache redis connection on first retrieval#3238

Merged
sgoggins merged 1 commit intomainfrom
cache-redis-conn-details
Jul 25, 2025
Merged

cache redis connection on first retrieval#3238
sgoggins merged 1 commit intomainfrom
cache-redis-conn-details

Conversation

@Ulincsys
Copy link
Contributor

Description

  • Avoid recreating Redis connection on every request
  • Cache connection info for the life of the process

This PR is intended to determine if the process of creating a Redis connection creates a non-closeable database session.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ulincsys <ulincsys@gmail.com>
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ulincsys : This appears to have fixed the infinitely climbing database connections issue!!! 🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳

@sgoggins sgoggins requested a review from MoralCode July 24, 2025 23:50
Copy link
Contributor

@MoralCode MoralCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code seems reasonable.

Will defer to Seans testing, which seems to indicate that this fixed a major issue.

LGTM

@sgoggins sgoggins merged commit 7b7bdff into main Jul 25, 2025
15 checks passed
@sgoggins
Copy link
Member

Code seems reasonable.

Will defer to Seans testing, which seems to indicate that this fixed a major issue.

LGTM

The number of open database connections is very stable now.

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.

3 participants