Re:Uvloop: Fast Python networking
by alexchamberlain on Wednesday May 04, 2016 @02:59AM
(#11626688)
If such a framework was built around asyncio, do we really need yet another database layer? 1 of the best things about Flask is it doesn't reinvent the wheel.
[ Parent
| on HN ]
Re:Uvloop: Fast Python networking
by sandGorgon on Wednesday May 04, 2016 @07:12AM
(#11627525)
It's not so much as another dB layer, but some async compatible dB layer.
Most database libraries don't play very well with non blocking code. In fact nodejs dB libraries were specifically designed for this.
Building async frameworks is not trivial - http://initd.org/psycopg/docs/advanced.html#async-support