France-ioi / AlgoreaBackend

Backend for the new Algorea platform
MIT License
1 stars 2 forks source link

Slow request: get group invitation #1095

Closed smadbe closed 1 week ago

smadbe commented 1 month ago

Investigate why this request is slow on dev db: (2.5-4sec)

time curl 'https://dev.algorea.org/api/current-user/group-invitations' -H 'Authorization: Bearer <demousertoken>' 

Under some condition(s) running (non-parallel) UI tests (for instance on branch https://github.com/France-ioi/AlgoreaFrontend/tree/feature/join-by-code-approvals), the service sometimes takes up to 40sec responding !!! (reproducible)

smadbe commented 3 weeks ago

Apparently it is even slower with the #1070