Changes between Initial Version and Version 1 of Ticket #35810, comment 2
- Timestamp:
- Oct 3, 2024, 6:01:07 PM (6 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35810, comment 2
initial v1 9 9 Select( 10 10 "messages", 11 queryset=Message.objects.order_by("created_at") ,11 queryset=Message.objects.order_by("created_at")[0], 12 12 to_attr="lastest_message", 13 13 ), … … 19 19 chat.*, 20 20 latest_message.* 21 FROM chat 21 22 LEFT JOIN LATERAL ( 22 23 SELECT * … … 34 35 lastest_message=Message.objects.filter( 35 36 chat_id=OuterRef("id"), 36 ).order_by("created_at")[ 1]37 ).order_by("created_at")[0] 37 38 ) 38 39 }}}