Skip to content

Conversation

davidfischer
Copy link
Collaborator

While investigating PG connection pooling (#1080), I figured I should look at the same thing for Redis. Looks like django-redis uses a connection pool by default. Some parameters can be tweaked but I don't think we need to make any changes there without experimenting. However, the docs did mention that there's a slightly higher performance C client that can be used. This PR enables that. Overall, I'm not sure this will make much difference but seemed low risk and maybe it'll help under load.

Just a note that the docs are slightly outdated and Hiredis will be used by default if it is installed.

Just a note that the docs are slightly outdated and Hiredis will be used
by default if it is installed:

https://github.com/jazzband/django-redis?tab=readme-ov-file#pluggable-parsers
@davidfischer davidfischer requested a review from a team as a code owner October 17, 2025 22:13
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Looks good -- I thought we were using this on RTD as well, but seems we removed it a long time ago. Hopefully those issues are fixed.

@davidfischer davidfischer merged commit c7f07fe into davidfischer/psycopg-pool Oct 20, 2025
1 check passed
@davidfischer davidfischer deleted the davidfischer/redis-hiredis branch October 20, 2025 17:26
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.

2 participants