GroupAggregate (cost=354.59..355.31 rows=24 width=214) |
Group Key: ci.id |
-> Sort (cost=354.59..354.65 rows=24 width=160) |
Sort Key: ci.id |
-> Hash Right Join (cost=85.38..354.04 rows=24 width=160) |
Hash Cond: (c.client_industry = ci.id) |
-> Nested Loop (cost=83.84..352.46 rows=13 width=14) |
-> Bitmap Heap Scan on tbl_projects p (cost=83.56..264.61 rows=13 width=14) |
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[]))) |
-> Index Scan using tbl_clients_pkey on tbl_clients c (cost=0.28..6.76 rows=1 width=8) |
Index Cond: (id = p.client_id) |
-> Hash (cost=1.24..1.24 rows=24 width=150) |
-> Seq Scan on tbl_client_industries ci (cost=0.00..1.24 rows=24 width=150) |