Skip to content

Cache permission resolver results to improve performance #449

@petruki

Description

@petruki

Is your feature request related to a problem? Please describe.
Permission resolvers can hit the DB with very complex queries causing an increase of latency when retrieving the permissions for one or more components.

Describe the solution you'd like
Build a simple initial in-memory cache (key/value) to store the requests and results when fetching permissions

Describe alternatives you've considered
Return permissions in the same payload when fetching elements.
This change would require a lot of changes for the consumer.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions