openstatusHQ / openstatus

🏓 The open-source synthetic monitoring platform 🏓
https://openstatus.dev
GNU Affero General Public License v3.0
6k stars 378 forks source link

Performance: Improve the trpc procedure in apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/(overview)/page.tsx #962

Closed thibaultleouay closed 1 month ago

thibaultleouay commented 1 month ago

Description

The following trpc procedure could be improved with query grouping (promise.all) also we should use the drizzle select interface to

    api.incident.getIncidentsByWorkspace.query(),
    api.monitorTag.getMonitorTagsByWorkspace.query(),
    api.maintenance.getLast7DaysByWorkspace.query(),
    api.monitor.isMonitorLimitReached.query(),
Ipriyankrajai commented 1 month ago

Can I work on this @thibaultleouay ?