| Limit (cost=37.65..37.65 rows=1 width=167) |
| -> Sort (cost=37.65..37.65 rows=1 width=167) |
| Sort Key: r.created_at DESC |
| -> Nested Loop Left Join (cost=0.30..37.64 rows=1 width=167) |
| -> Nested Loop Left Join (cost=0.15..29.46 rows=1 width=167) |
| -> Seq Scan on tbl_reimbursements r (cost=0.00..21.28 rows=1 width=167) |
| Filter: ((status <> 0) AND (created_by = ANY ('{5493,5495}'::integer[])) AND (occurrence_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (occurrence_at <= '2026-12-31 23:59:59+08'::timestamp with time zone) AND ((status = '1'::smallint) OR (status = '2'::smallint) OR (status = '3'::smallint))) |
| -> Index Only Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt1 (cost=0.15..8.17 rows=1 width=4) |
| Index Cond: ((object_id = r.id) AND (term_id = 15)) |
| -> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships dt2 (cost=0.15..8.17 rows=1 width=4) |
| Index Cond: ((object_id = r.id) AND (term_id = 18)) |
| Filter: (object_type = 7) |