Skip to content

Improve caching scheme to avoid extra queries to _Session #1869

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

Closed
drew-gross opened this issue May 22, 2016 · 1 comment
Closed

Improve caching scheme to avoid extra queries to _Session #1869

drew-gross opened this issue May 22, 2016 · 1 comment
Labels
type:feature New feature or improvement of existing feature

Comments

@drew-gross
Copy link
Contributor

Currently we cache session token -> user, so that we don't have to query _User on every request. But, when a user is modified, we have to clear the cache for every session token, and to do that, we have to query the _Session table: https://github.com/ParsePlatform/parse-server/pull/1844/files#diff-3646535e0655c134862bb00401c8097cR325

We should instead cache session token -> user id and user id -> user, then we can clear the cache when a user is updated without needing to query _Session.

@montymxb
Copy link
Contributor

Closing as caching was merged in #2286

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants