[CONJS-179] better pool option `resetAfterUse` default value Created: 2021-10-01 Updated: 2021-10-18 Resolved: 2021-10-18 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | configuration |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.0-rc |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Pool option `resetAfterUse` permit to indicate if resetting connection when releasing connection to pool. Default value is true, so each time a connection is released to pool, a COM_RESET command will be issued. A better default is only sending a ROLLBACK command if a transaction is still in progress. This avoid an additional command each time. A better default is false. |