Skip to content

Replace post_hidden trigger with bulk db fns #243

Description

@danneu

Every time a post is hidden or unhidden, the post_hidden trigger is called that finds a new latest_post_id and latest_post_at candidate for the post's topic.

This is bad for bulk post.is_hidden = true updates like the nukeUser fn.

However, since we ~always nuke new users with barely any posts, we don't necessarily run into a perf issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    polishlow priority stuff, probably just thinking out loud

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions