QUERY PLAN
Aggregate (cost=710.52..710.53 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=127.14..710.19 rows=134 width=0)
Recheck Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[]))
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..127.11 rows=6935 width=0)
Index Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420}'::integer[]))