estuary / ui

A web based UI to assist in working with Estuary Flow
https://dashboard.estuary.dev/
Other
12 stars 1 forks source link

Reduce impact of `estuary_support` when loading UI #1156

Closed travjenkins closed 1 month ago

travjenkins commented 1 month ago

We are currently loading the tenants way too much in the UI for Estuary folks. The approach was made for people without access to thousands of tenants. We need to change how we load tenants.

Some specific checks we need to know

  1. has at least 1 tenant
  2. has access to estuary_support
  3. has access to demo tenant

After that I think we can just start loading in tenants when they are actually needed or async in the background or maybe both.

Also - these should be persisted by Zustand in storage to reduce the impact.

travjenkins commented 1 month ago

We will be doing this with a new view that is getting created on the backend.

travjenkins commented 1 month ago

Phil is current working on a new SQL Function that will return the special cases we needed handled. That way we do not need to query the tenant table at all unless we are looking for specific settings about a tenant.