class PipelineRunDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.MANDATORY)
    public void updateRunsTags(final Collection<PipelineRun> runs) {
        if (CollectionUtils.isEmpty(runs)) {
            return;
        }
        final MapSqlParameterSource[] params = runs.stream()
                .map(run -> PipelineRunParameters.getParameters(run, getConnection()))
                .toArray(MapSqlParameterSource[]::new);
        getNamedParameterJdbcTemplate().batchUpdate(updateTagsQuery, params);
    }

}