GroupAggregate (cost=462.73..463.64 rows=6 width=214) |
Group Key: ct.id |
-> Sort (cost=462.73..462.87 rows=55 width=160) |
Sort Key: ct.id |
-> Hash Right Join (cost=166.53..461.14 rows=55 width=160) |
Hash Cond: (c.client_type = ct.id) |
-> Hash Join (cost=165.39..459.76 rows=55 width=14) |
Hash Cond: (p.client_id = c.id) |
-> Bitmap Heap Scan on tbl_projects p (cost=35.49..329.72 rows=55 width=14) |
Recheck Cond: (created_by = ANY ('{1004,1005,1013,5087}'::integer[])) |
Filter: ((bargain_date >= '2025-01-01'::date) AND (bargain_date <= '2025-12-31'::date) AND (bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone)) |
-> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..35.48 rows=849 width=0) |
Index Cond: (created_by = ANY ('{1004,1005,1013,5087}'::integer[])) |
-> Hash (cost=105.51..105.51 rows=1951 width=8) |
-> Seq Scan on tbl_clients c (cost=0.00..105.51 rows=1951 width=8) |
-> Hash (cost=1.06..1.06 rows=6 width=150) |
-> Seq Scan on tbl_client_types ct (cost=0.00..1.06 rows=6 width=150) |