short cirtuit out of live comment query if possible (#2318)
This commit is contained in:
parent
6cc87ceac4
commit
6a3155fa93
@ -749,7 +749,7 @@ export default {
|
||||
FROM "Item"
|
||||
-- comments can be nested, so we need to get all comments that are descendants of the root
|
||||
${whereClause(
|
||||
'"Item".path <@ (SELECT path FROM "Item" WHERE id = $1)',
|
||||
'"Item".path <@ (SELECT path FROM "Item" WHERE id = $1 AND "Item"."lastCommentAt" > $2)',
|
||||
activeOrMine(me),
|
||||
'"Item"."created_at" > $2'
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user