fastify-mysql icon indicating copy to clipboard operation
fastify-mysql copied to clipboard

Mention mysql2 pooling option in the docs

Open songpr opened this issue 3 years ago • 1 comments

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Mysql2 pooling is good for performance https://www.npmjs.com/package/mysql2#using-connection-pools also it have promise pool

Motivation

To improve performance when it have a lot of connection to mysql

Example

No response

songpr avatar Jul 11 '22 03:07 songpr

It is already doable and the default setting as well

from docs:

If you don't use the connectionString option, the options that you pass to register will be passed to the MySQL pool builder.

https://github.com/fastify/fastify-mysql/blob/e492e3c59728cffb221aa8403925101c399d16eb/index.js#L67

Would you mind improving our docs?

Eomm avatar Jul 11 '22 07:07 Eomm