What I meant was to do something like:

```python
variant_ids = [line.data['variant_id'] for line in session_cart]
variants = Variant.objects.filter(id__in=variant_ids)
variant_map = dict((v.id, v)
                   for v in variants.select_related('product'))
```

The goal here is to only issue a single DB query for the whole cart.