adobe / da-admin

Apache License 2.0
0 stars 4 forks source link

Improve org list performance #50

Closed auniverseaway closed 3 months ago

auniverseaway commented 3 months ago

As a visitor of the root of da-live's homepage (the org list) I would like the list to show up in a timely manner so that I am not wasting time.

Context

The current bucket list uses two for of loops. These are great from a code clarity perspective, but they are not good performance because each request has to wait on the previous. The goal would be to move to a map + promise.all approach so all key lookups can be requested in parallel.

Criteria of acceptance

  1. Make org list faster (from 3s+ to < ~1s)
  2. Tests to cover:
    1. Anonymous bucket
    2. Authenticated bucket
    3. Not authenticated bucket