Christopher Carvalho
Results
2
comments of
Christopher Carvalho
> @carvalhochris > > try pre fetching also artist_set > > ```python > Card.objects.prefetch_related("cardhold_set", "artist_set") > ``` Hi @vitalik thanks for your response. I tried that and get the following:...
> yeah, maybe prefetch_related does not support async yet.. > > try: > > ```python > @api.get("/get-cards", response=List[CardOut]) > @decorate_view(cache_page(7 * 24 * 60 * 60)) > async def list_cards(request):...