Adds index on cob cache for issues and patches
Queries on the cob cache are usually filtering by repo id, which is costly without an index as it involves a full table scan.
Queries on the cob cache are usually filtering by repo id, which is costly without an index as it involves a full table scan.
Removes comments and follows naming convention for index
Fixes migration test
Make the index a composite index of repo and id
Rebase