Use the right composite index for a sub-deployment