Aggregate (cost=292.68..292.69 rows=1 width=8) |
-> Sort (cost=292.66..292.67 rows=1 width=393) |
Sort Key: r.created_at DESC |
-> Group (cost=292.64..292.65 rows=1 width=393) |
Group Key: r.id |
-> Sort (cost=292.64..292.65 rows=1 width=12) |
Sort Key: r.id |
-> Hash Right Join (cost=269.29..292.63 rows=1 width=12) |
Hash Cond: (rvr.erp_collect_ticket_id = r.id) |
-> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr (cost=0.00..19.70 rows=970 width=4) |
-> Hash (cost=269.27..269.27 rows=1 width=12) |
-> Nested Loop (cost=231.09..269.27 rows=1 width=12) |
-> Hash Join (cost=230.81..268.90 rows=1 width=4) |
Hash Cond: (ectss.sales_contract_id = s.id) |
-> Seq Scan on tbl_erp_collect_ticket_settles ectss (cost=0.00..32.86 rows=1986 width=8) |
-> Hash (cost=230.80..230.80 rows=1 width=4) |
-> Seq Scan on tbl_sales_contracts s (cost=0.00..230.80 rows=1 width=4) |
Filter: (project_id = 263) |
-> Index Scan using tbl_erp_collect_tickets_pkey on tbl_erp_collect_tickets r (cost=0.28..0.38 rows=1 width=12) |
Index Cond: (id = ectss.erp_collect_ticket_id) |