This addresses the issues with using data loader in the existing resolve_reference method. (See: #205)
By grouping all the references of the same type into a single call to resolve_references the records can more easily be loaded as a batch. This can be done using a data loader (.load_all) or just a direct DB query as all the references are provided in a single method call.
The existing resolve_reference method is still supported but resolve_references will be the preferred approach.
This addresses the issues with using data loader in the existing
resolve_reference
method. (See: #205) By grouping all the references of the same type into a single call toresolve_references
the records can more easily be loaded as a batch. This can be done using a data loader (.load_all
) or just a direct DB query as all the references are provided in a single method call.The existing
resolve_reference
method is still supported butresolve_references
will be the preferred approach.