QUERY PLAN
Aggregate (cost=746.69..746.70 rows=1 width=8)
-> Bitmap Heap Scan on tbl_schedules (cost=137.27..746.34 rows=141 width=0)
Recheck Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420,5448,5449}'::integer[]))
Filter: ((NOT is_complete) AND (is_public = 1))
-> Bitmap Index Scan on tbl_schedules_created_by_idx (cost=0.00..137.23 rows=7133 width=0)
Index Cond: (created_by = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420,5448,5449}'::integer[]))