-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Connection Pooling #74
Comments
can you suggest api? By the way, take a look at https://github.com/sidorares/node-mysql2 - it's nearly 10 times faster and has same features (and many more). The is pooling in mysql2, same api as with node-mysql |
What does sidorares/node-mysql2 offer over felixge/node-mysql - is it speed How does sidorares/node-mysql2 compare to mysql-native for speed? Is mysql-native discontinued in favour of mysql2? If not, I'll think about On 17 May 2013 12:06, Andrey Sidorov [email protected] wrote:
|
speed (x2 to x7 times), prepared statements, SSL, compression. Rows are compiled to proper JS objects, which means property access is very fast ( = not in a dictionary mode) I'll probably declare mysql-native discontinued in favour of mysql2. It was long due to be refactored and ended in complete rewrite. mysql-native parser is string based and byte manipulation on strings is slower than on Buffer. Also, in mysql2 I'm trying not to buffer as much as possible - if there is enough data in incoming chunk to make a packet it is processed immediately without appending to internal buffer first. mysql-native is still useful as it can be used with virtually any version of node, even with 0.1 if you add sha1 shim. |
my speed benchmarks (might be wrong, I'm biased) on air 5.1 2Ghz and local mysql 5.6 selecting large number of rows or multiple selects in many parallel connections: numbers given for a very small row (1-2 numeric columns, might be different for another types of data) Also there is server protocol api so you can easily mock any mysql server behaviour. |
Thanks, I'll try mysql2 on my next project. On 17 May 2013 14:44, Andrey Sidorov [email protected] wrote:
|
In the meantime I'll try to port node-mysql pool code to mysql-native (e.i same pool api) |
Would it be possible to add connection pooling to mysql-native?
I have an 8 core DB server and sometimes I need to run dozens of queries from one NodeJS process (where the order of completion is unimportant). It would be nice if these queries finished sooner.
The text was updated successfully, but these errors were encountered: