I suppose this is a very simple question, but after reading a lot of documentation and tips, I still don't get the point.
Except for all external things like middleware and SGI type, if my view only consists of a database query and synchronous code to work with the received data, will using async def and sync_to_async for ORM query give me any performance boost? Since at the moment, the ORM queries are still synchronous.
async def myview(request):
users = await sync_to_async(list)(User.objects.all())
...
vs
def myview(request):
users = list(User.objects.all())
...