Aggregate (cost=259.97..259.98 rows=1 width=32) |
-> Hash Join (cost=213.45..259.80 rows=69 width=6) |
Hash Cond: (sci.contract_id = c.id) |
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..38.66 rows=1866 width=10) |
-> Hash (cost=212.67..212.67 rows=62 width=4) |
-> Hash Join (cost=144.57..212.67 rows=62 width=4) |
Hash Cond: (c.project_id = p.id) |
-> Seq Scan on tbl_sales_contracts c (cost=0.00..63.71 rows=1671 width=8) |
-> Hash (cost=143.19..143.19 rows=110 width=4) |
-> Bitmap Heap Scan on tbl_projects p (cost=5.13..143.19 rows=110 width=4) |
Recheck Cond: (created_by = 1001) |
-> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..5.11 rows=110 width=0) |
Index Cond: (created_by = 1001) |