QUERY PLAN
Aggregate (cost=1433.63..1433.64 rows=1 width=32)
-> Nested Loop (cost=8.10..1433.61 rows=6 width=5)
-> Hash Join (cost=7.81..1428.67 rows=7 width=9)
Hash Cond: (dt1.taxonomy_id = tt.id)
-> Seq Scan on tbl_term_taxonomy_relationships dt1 (cost=0.00..1415.49 rows=2013 width=13)
Filter: ((term_id = 18) AND (object_type = 11))
-> Hash (cost=7.80..7.80 rows=1 width=4)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.80 rows=1 width=4)
Filter: ((serial_no)::text = '221106'::text)
-> Index Scan using tbl_erp_cash_cost_tickets_pkey on tbl_erp_cash_cost_tickets t (cost=0.28..0.71 rows=1 width=4)
Index Cond: (id = dt1.object_id)
Filter: ((verify_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2))