Aggregate (cost=67.47..67.48 rows=1 width=8) |
-> Sort (cost=65.31..65.67 rows=144 width=238) |
Sort Key: r.created_at DESC |
-> HashAggregate (cost=58.71..60.15 rows=144 width=238) |
Group Key: r.id |
-> Hash Right Join (cost=21.85..57.62 rows=438 width=12) |
Hash Cond: (rvr.erp_ticket_change_log_id = r.id) |
-> Seq Scan on tbl_erp_ticket_change_log_handlers rvr (cost=0.00..30.40 rows=2040 width=4) |
-> Hash (cost=20.05..20.05 rows=144 width=12) |
-> Seq Scan on tbl_erp_ticket_change_logs r (cost=0.00..20.05 rows=144 width=12) |
Filter: ((created_at >= '2025-08-18 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-24 23:59:59+08'::timestamp with time zone)) |