POST /api/notes/children runs into timeouts #256
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not sure if this is just on my instance, but most of the time, the /api/notes/children endpoint returns a 500 indicating a timeout in query execution.
this has the effect, that it can't show replies to threads
EDIT: played around a bit (for a couple of minutes) to send different limits and depths params. as soon as i set limit > 1, it timeouts.
EDIT 2: did a bit more digging. seems like either the join on avatar or on the banner (or both) are causing the issue (
.leftJoinAndSelect('user.avatar', 'avatar')
)
EDIT 3: its definitly both. without those 2 joins, the query returns data instantly
considering that this seems to be an issue with drive files, i suspect #143 is maybe related to this
EXPLAIN on the query shows me 2 parts with an awefull high cost
and
i checked the indexes and it seems that every field, where this query is joining has an index. so doesn't look to me, that its an indexing issue (might be wrong with this tho)
Full Query:
note: replace $noteId, $depth (FE sends 6 by default) and $limit (FE sends 30 by default)
Full Query Plan:
Is this still happening after the linked PR was merged?
Not on my side. replies now load without running into a timeout