News for hackers. Stuff that matters.
Re:12 requests per second: A realistic look at Python web fr... by tasn on Friday February 19, 2021 @12:58AM (#26190219)
That's a nice benefit of using async ORMs (not yet available in django), the db calls are explicit!
Re:12 requests per second: A realistic look at Python web fr... by 411111111111111 on Friday February 19, 2021 @01:55AM (#26190460)
You can also commit to always use .values() in django. That makes it error out when you access non-prefetched entities
Re:12 requests per second: A realistic look at Python web fr... by Demiurge on Friday February 19, 2021 @11:15AM (#26194634)
also, 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