mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02: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