Hi,
So I am pretty new to web dev and sanic or async python in general, so I couldn’t think of a way to test this.
I built a wrapper around peewee to use it as an ORM with one of my projects. Could not use the peewee-async package since it does not support sqlite and my project needs sqlite. The wrapper works and all, but I read somewhere that using sync code with async code is a bad idea because sync code may block the entire event loop, when it executes.
As mentioned earlier I could not think of anything on how to test if the sync db driver is actually blocking up the event loop when run. So, is this theoretically correct? Or how could I test if the event loop is being blocked by the db driver?