[api] try to avoid slow DB with high amount of delayed jobs