Skip to content

WIP: Optimise runner builds matching

Kamil Trzciński requested to merge optimise-runner-builds-matching into master

What does this MR do?

I'm trying to simplify our code for matching the builds and make it always to be pure-sql rather than mixed SQL and Rails.

This generally improves the performance of matching as it:

  1. Removes expensive can_pick? call,
  2. Updating runners is done now with single SQL statement that finds all eglictable runners.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports