mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
perf(database): ⚡ Improve performance when fetching timelines by fetching all data in a single SQL query
This commit is contained in:
parent
26dfd14aaf
commit
e48f57a3d8
24 changed files with 158 additions and 89 deletions
|
|
@ -106,6 +106,9 @@ export const getTestStatuses = async (
|
|||
statuses.map((s) => s.id),
|
||||
),
|
||||
asc(Notes.id),
|
||||
undefined,
|
||||
undefined,
|
||||
user.id,
|
||||
)
|
||||
).map((n) => n.getStatus());
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue