class Job::Collection

Overview

Addition of the method for eager loading and N+1 avoidance.

Defined in:

bitte_ci/model.cr

Instance Method Summary

Instance Method Detail

def with_build(fetch_columns = false, &block : Build::Collection -> ) : self #

def with_build(fetch_columns = false) : self #

def with_evaluations(fetch_columns = false, &block : Evaluation::Collection -> ) : self #

Eager load the has many relation evaluations. Use it to avoid N+1 queries.


def with_evaluations(fetch_columns = false) #

def with_job_groups(fetch_columns = false, &block : JobGroup::Collection -> ) : self #

Eager load the has many relation job_groups. Use it to avoid N+1 queries.


def with_job_groups(fetch_columns = false) #