Flagsmith / Flagsmith/flagsmith
Spike: Investigate performance issues when loading UI identities
Open
- Dominant language
- Python
- Stars
- 6.6k
- Forks
- 567
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 121
Description
API endpoint: `/api/v1/environments//identities/`
For environments with millions of identities, it can be very slow to load the UI, even while it's paginated.
Possibly [this sorting](https://github.com/Flagsmith/flagsmith/blob/b135023160873dbb5feed2e00097174afa49bc8e/api/environments/identities/views.py#L65) could benefit from a binary tree index on `Identity.created_date` exclusively. This spike is to coordinate an investigation and confirm this is the case, or point somewhere else.
Contributor guide
Assessment
This issue has not been assessed yet.