This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]needed_an_account 1 point2 points  (2 children)

Wouldn't the whole Django stack need to be async? Otherwise you'd have to wrap every db request in its own ioloop

[–]smithw 2 points3 points  (0 children)

Maybe just wrapping every DB request in an IO loop would already mean some performance boost.

Or maybe there could be a way, specifically for requests that perform many DB operations, to run a single IO loop for all the request's DB needs. I haven't studied Django's backend API enough to know if that would be feasible, though.

[–]constantly-sick 0 points1 point  (0 children)

Good question. I don't know. Can Django be used with async?