duckpgq-extension icon indicating copy to clipboard operation
duckpgq-extension copied to clipboard

IS6. Forum of a message, does not terminate

Open Dtenwolde opened this issue 1 year ago • 1 comments

Query IS 6 from the LDBC SNB Interactive workload does not terminate due to the replyOf edge. This edge is supposed to find the original post of a comment, which can be 0 or more steps from any message.

The Post node in this case is inherited from the Message node. It could be that this table is too large for the number of shortest paths to calculate. The SQL:1999 way would be to traverse the ParentMessageId until this value is NULL, in which case you have found the post. We do path-finding to all other Message nodes, only one of which is not NULL (the parent Post).


-FROM GRAPH_TABLE (snb_projected
    MATCH o = ANY SHORTEST (message:Message WHERE message.id = 1236950622552)-[r:replyOf_Post]-> *(p:Post)<-[c:containerOf]-(forum:Forum)-[hm:hasModerator]->(moderator:Person)
    COLUMNS (forum.id, forum.title, moderator.id, moderator.firstName, moderator.lastName)
    ) tmp;

image

Dtenwolde avatar Jan 29 '24 12:01 Dtenwolde

Seems not to be a concern in release mode, debug mode is very slow (somewhat to be expected). Likely due to a BLOCKWISE_NL_JOIN is6-analyze.txt

Dtenwolde avatar Jan 29 '24 14:01 Dtenwolde

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 04 '24 00:09 github-actions[bot]