Skip to content

Load pipeline status in batch from redis

Bob Van Landuyt requested to merge bvl-load-pipeline-status-in-batch into master

What does this MR do?

In this we're loading all pipeline statuses from redis in batch using Redis#multi. When the status couldn't be found in redis, a new entry is created, this is still using a different connection.

So once all projects being displayed have their status cached in redis, we only need one connection to fetch them.

Why was this MR needed?

To improve the view rendering as discussed in #27376 (closed). This would also affect #27390 (closed) and all other actions where views/shared/projects/_list.html.haml is rendered.

Does this MR meet the acceptance criteria?

Merge request reports