-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
perf: Backport of #3889 to v12 #3905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: Backport of #3889 to v12 #3905
Conversation
How did you test that? |
https://github.com/PostgREST/postgrest/actions/runs/13158254898 |
I see. The loadtest results have no meaning for this kind of PR:
Thus, the loadtest is testing none of what would be relevant for this PR. |
It is difficult for me to judge the effectiveness of existing load tests. So it seems that even in case of small JWT cache with fresh tokens taking |
I don't think we should backport this. The Additionally a |
@steve-chavez |
Yes, here #3889 (comment) it's revealed there's indeed perf gains.
Mostly that it doesn't seem good for maintenance to have it like that, I was thinking it should be in a function. It's looking like this logic could be inside the debounce added in #3802 or perhaps another debounce. Let's continue on #3889. This should go into v13. |
See #3889
@steve-chavez @taimoorzaeem
I've prepared a backport of asynchronous JWT cache purge to 12.
Looks like there is consistent (small but noticable) performance gain.
Done this as it is not clear when next major is going to be released (and if any JWT caching improvements are going to be included).