Skip to content

Commit

Permalink
add innodb note to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Jul 17, 2019
1 parent c733279 commit 6a80cc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ let results = await mysql.transaction()
.commit() // execute the queries
```

**NOTE:** Transaction support is designed for InnoDB tables (default). Other table types may not behave as expected.

## Reusing Persistent Connections
If you're using AWS Lambda, be sure to set `context.callbackWaitsForEmptyEventLoop = false;` in your main handler. This will allow the freezing of connections and will prevent Lambda from hanging on open connections. See [here](https://www.jeremydaly.com/reuse-database-connections-aws-lambda/) for more information.

Expand Down

0 comments on commit 6a80cc7

Please sign in to comment.