class JobGroup::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_job(fetch_columns = false, &block : Job::Collection -> ) : self #

def with_job(fetch_columns = false) : self #

def with_tasks(fetch_columns = false, &block : Task::Collection -> ) : self #

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


def with_tasks(fetch_columns = false) #