def METHOD_NAME(self, records):
    to_load = collections.defaultdict(list)
    for record in records:
        to_load[record['type']].append(record['pk'])
    loaded = {}
    for tp, ids in to_load.items():
        loaded[tp] = {
            obj.pk: obj for obj in self.QS_BY_TYPE[tp].filter(pk__in=ids)}
    for record in records:
        pk = record['pk']
        tp = record['type']
        record['object'] = loaded[tp][pk]