Skip to content

When a user joins a role or group, it should not read all existing roles and groups from the database #45689

@ahus1

Description

@ahus1

Description

The current implementation reads a stream of all entries back from the database, and sometimes even looks them up via the realm and the cache. This is not necessary and should be optimized.

Value Proposition

Faster and near-constant time when joining a group or role.

Goals

Better performance

Non-Goals

Analyzing similar problems

Discussion

No response

Notes

This came up when analyzing a different performance problem, so I'll submit my findings as a pull request.

Metadata

Metadata

Assignees

Labels

No fields configured for enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions