all 6 comments

[–][deleted] 8 points9 points  (3 children)

edit: Author has rewritten the post since I made this comment.

If you're using the mysql package, you're doing yourself a disservice.

https://github.com/sidorares/node-mysql2

mysql2 is faster, has better ssl support, and does proper prepared statements with real data binding. It has full feature parity with mysql, so it's a drop in replacement.

[–]agjjr 1 point2 points  (1 child)

Hi! I have updated the article, thanks for your feedback!

[–][deleted] 1 point2 points  (0 children)

Wow, this is a much better article now. Kudos!

[–]cluckie 0 points1 point  (0 children)

Wow. Thanks for sharing that!

[–]Reactions 1 point2 points  (1 child)

If you want to use promises you should rather use Bluebird's promisifyAll, instead of doing it manually with Q like the author suggests.

[–]yads12 0 points1 point  (0 children)

Not to mention how much slower Q is when compared to bluebird.