| GroupAggregate (cost=47.57..47.61 rows=1 width=76) |
| Group Key: u.id |
| -> Sort (cost=47.57..47.58 rows=1 width=22) |
| Sort Key: u.id |
| -> Nested Loop (cost=10.52..47.56 rows=1 width=22) |
| -> Hash Join (cost=10.24..40.17 rows=10 width=12) |
| Hash Cond: (pa.engineer_id = u.id) |
| -> Seq Scan on tbl_project_architects pa (cost=0.00..26.11 rows=1411 width=12) |
| -> Hash (cost=10.23..10.23 rows=1 width=4) |
| -> Seq Scan on tbl_users u (cost=0.00..10.23 rows=1 width=4) |
| Filter: ((id = ANY ('{1017,5085,1001,5248,1015,1022,5296,1023}'::integer[])) AND (id = ANY ('{1017,5085,1001,5248,1015,1022,5296,1023}'::integer[]))) |
| -> Index Scan using tbl_projects_pkey on tbl_projects p (cost=0.28..0.74 rows=1 width=14) |
| Index Cond: (id = pa.project_id) |
| Filter: ((bargain_date >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3)) |