Aggregate (cost=750.63..750.64 rows=1 width=8) |
-> Sort (cost=748.59..748.93 rows=136 width=401) |
Sort Key: r.updated_at DESC |
-> Group (cost=743.09..743.77 rows=136 width=401) |
Group Key: r.id |
-> Sort (cost=743.09..743.43 rows=136 width=12) |
Sort Key: r.id |
-> Hash Right Join (cost=109.20..738.27 rows=136 width=12) |
Hash Cond: (cs.object_id = c.id) |
-> Seq Scan on tbl_attachement_relationships cs (cost=0.00..621.20 rows=2016 width=4) |
Filter: (object_type = 108) |
-> Hash (cost=107.50..107.50 rows=136 width=16) |
-> Hash Right Join (cost=38.46..107.50 rows=136 width=16) |
Hash Cond: (c.id = r.purchase_contract_id) |
-> Seq Scan on tbl_purchase_contracts c (cost=0.00..60.13 rows=2013 width=4) |
-> Hash (cost=36.76..36.76 rows=136 width=16) |
-> Hash Right Join (cost=14.28..36.76 rows=136 width=16) |
Hash Cond: (rvr.erp_purchase_cost_id = r.id) |
Filter: ((r.created_by = 1001) OR (rvr.user_id = 1001) OR (r.created_by = ANY ('{1000,1001,1004,1005,1011,1013,1015,1017,1022,1023,5016,5064,5085,5087,5248,5250,5252,5295,5300,5311,5332,5360,5388,5446,5449}'::integer[]))) |
-> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr (cost=0.00..19.70 rows=970 width=8) |
-> Hash (cost=11.90..11.90 rows=190 width=20) |
-> Seq Scan on tbl_erp_purchase_costs r (cost=0.00..11.90 rows=190 width=20) |