Skip to content

Improve caching scheme to avoid extra queries to _Session #1869

Closed
@drew-gross

Description

@drew-gross

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions