unkey
unkey copied to clipboard
List identeties does n+1
Currently when listing identeties it takes a long time because for each identity we select ratelimits in a seperate query.
This should be done using json_arrayagg in the list identities query instead.
- [ ] Select ratelimits by joining the data in the db.Query.ListIdentities query
- [ ] Remove db.Query.ListIdentityRatelimits n+1