_comment_update_node_statistics() runs after all comment hooks have run. This means that if you wanted to query that information, for example to denormalize the count into another table, you have to do all the same logic yourself. Putting it before the hook invocations means you can just query the count column in the table instead.

CommentFileSizeAuthor
#1 statistics.patch1.44 KBcatch
statistics.patch1.28 KBcatch

Comments

catch’s picture

StatusFileSize
new1.44 KB

Added a comment.

nagba’s picture

+1

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Makes sense to me too. Committed to CVS HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.