Sunday 15 July 2012

mysql - how many worker threads in nodejs?is it possible to modify the number for better performance? -


As far as I know, nodejs are not single threaded. In the background, a worker threadbull is a loop to perform long io functions, which can not end with Ipole etc. But how many threads are there in the background? I can not find any documents to grid in numbers.

If I want to collaborate with nodes in mysql database, then there should be several threads to execute long-term query functions. And it is very attractive if some SQL blocks the questions, if only there are some threads which have been provided nodes. Therefore, I should be very careful about my SQL model definition and SQL query performance, while it is actually a dedicated job of some kind. "post-text" itemprop = "text">

You are wrong Node.js is single-threaded.

Most good MySQL drivers node. Asynchronous for JS, so they do not block the process while waiting to complete the query.

No comments:

Post a Comment