QUERY PLAN
Aggregate (cost=14.04..14.05 rows=1 width=112)
-> Bitmap Heap Scan on tbl_projects p (cost=10.00..14.02 rows=1 width=22)
Recheck Cond: ((client_id = 982) AND (created_by = 1001))
Filter: ((bargain_date >= '2026-01-01'::date) AND (bargain_date < '2027-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3))
-> BitmapAnd (cost=10.00..10.00 rows=1 width=0)
-> Bitmap Index Scan on tbl_projects_client_id_idx (cost=0.00..4.36 rows=11 width=0)
Index Cond: (client_id = 982)
-> Bitmap Index Scan on tbl_projects_created_by_idx (cost=0.00..5.38 rows=147 width=0)
Index Cond: (created_by = 1001)