GroupAggregate (cost=359.33..359.82 rows=15 width=53) |
Group Key: pt.product_type_id, pt.name |
-> Sort (cost=359.33..359.37 rows=15 width=26) |
Sort Key: pt.product_type_id, pt.name |
-> Hash Join (cost=264.78..359.04 rows=15 width=26) |
Hash Cond: (pt.project_id = tbl_projects.id) |
-> Seq Scan on tbl_project_product_types pt (cost=0.00..85.88 rows=3188 width=30) |
-> Hash (cost=264.61..264.61 rows=13 width=4) |
-> Bitmap Heap Scan on tbl_projects (cost=83.56..264.61 rows=13 width=4) |
Recheck Cond: ((created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[])) AND (created_by = ANY ('{5329,5332,5420,1001,5087,5300,5311,5295,1013,1004,1005}'::integer[]))) |
Filter: ((bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone) AND (bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3)) |
-> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..83.56 rows=921 width=0) |
Index Cond: ((created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[])) AND (created_by = ANY ('{5329,5332,5420,1001,5087,5300,5311,5295,1013,1004,1005}'::integer[]))) |