Aggregate (cost=298.26..298.27 rows=1 width=32) |
-> Hash Join (cost=252.04..298.09 rows=69 width=6) |
Hash Cond: (sci.contract_id = c.id) |
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..38.45 rows=1845 width=10) |
-> Hash (cost=251.30..251.30 rows=59 width=4) |
-> Hash Join (cost=186.27..251.30 rows=59 width=4) |
Hash Cond: (c.project_id = p.id) |
-> Seq Scan on tbl_sales_contracts c (cost=0.00..60.86 rows=1586 width=8) |
-> Hash (cost=184.89..184.89 rows=110 width=4) |
-> Bitmap Heap Scan on tbl_projects p (cost=5.13..184.89 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) |