4 ms·
That's a nice benefit of using async ORMs (not yet available in django), the db calls are explicit!
by tasn 6y ago
That's a nice benefit of using async ORMs (not yet available in django), the db calls are explicit!
- 411111111111111 6y agoYou can also commit to always use .values() in django. That makes it error out when you access non-prefetched entities
- Demiurge 6y agoalso, values is awesome for returning your models as dicts when that's all you need most of the time, avoiding all the overhead of objects