perf(database): Improve performance when fetching timelines by fetching all data in a single SQL query

This commit is contained in:
Jesse Wierzbinski 2024-05-08 13:19:53 -10:00
parent 26dfd14aaf
commit e48f57a3d8
No known key found for this signature in database
24 changed files with 158 additions and 89 deletions

View file

@ -106,6 +106,9 @@ export const getTestStatuses = async (
statuses.map((s) => s.id),
),
asc(Notes.id),
undefined,
undefined,
user.id,
)
).map((n) => n.getStatus());
};