QUERY PLAN
Aggregate (cost=738.93..738.94 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=132.20..738.55 rows=152 width=0)
Recheck Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5332,5449,5467,5476}'::integer[]))
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..132.16 rows=7031 width=0)
Index Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5332,5449,5467,5476}'::integer[]))