3 ms·
> Are Node people going to reimplement event-driven MySQL client from scratch or what? No. MySQL does not provide an API that is usable with an event-loop, so
by ryah 17y ago
> Are Node people going to reimplement event-driven MySQL client from scratch or what?
No. MySQL does not provide an API that is usable with an event-loop, so it will need to be run in a separate internal thread. It will notify the main thread when it is complete. With Postgres the situation is better, they have a very nice API that can be integrated into an event loop, so the extra overhead won't be necessary.