Fetch parent message in same query to eliminate reply N+1

Performancekamo-shared-library
Shipped
March 12, 2026 at 2:34 AM UTC
Author
Kamo
Commit
49747b4

Alias m.msg and LEFT JOIN FETCH msg.parent so that threaded reply messages have their parent loaded in the initial query rather than triggering a separate SELECT per reply

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing