4 ms·
Might be unpopular but still good to stick to it. I tend to associate excessive enthusiasm for pythons async await framework as a sign of immaturity and potenti
by ramraj07 4y ago
Might be unpopular but still good to stick to it. I tend to associate excessive enthusiasm for pythons async await framework as a sign of immaturity and potential for doing things without understanding them fully. I’d never trust async code from anyone except the best python engineers. Most of them out there can’t even debug linear code, adding async to the mix only makes it worse. At least you can trust the time stamps.
- BozeWolf 4y agoOr when accidentally some blocking database driver is used, even when django's ORM is async, a query with mongodb's driver is not async. Or just the filesystem... This harms performance badly, especially if the idea was to run only a few threads. Other than that, it has benefits too! :-)
- mrmikardo 4y agoAnd indeed, there's an important caveat in the Django 4.1 docs; Note that, at this stage, the underlying database operations remain synchronous, with contributions ongoing to push asynchronous support down into the SQL compiler, and integrate asynchronous database drivers.... https://docs.djangoproject.com/en/4.1/releases/4.1/#asynchronous-orm-interface https://docs.djangoproject.com/en/4.1/releases/4.1/#asynchro...
- coldtea 4y ago>I tend to associate excessive enthusiasm for pythons async await framework as a sign of immaturity and potential for doing things without understanding them fully. Couldn't it be the inverse? I.e. your inexeperience with async code in other languages, and not understanding it fully, translating into "new thing aversion"?
- hansonkd13 4y agoI think my experience in async in other languages has shown how rough async in Python is. Unless async is the default python, it will always be an after thought and introduce needless complexity when working on large projects that require a lot of external libs.