Skip to content
Permalink
Browse files

add innodb note to readme

  • Loading branch information...
jeremydaly committed Jul 17, 2019
1 parent c733279 commit 6a80cc7ffae3934b2b79976e41996182500751a6
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
@@ -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.

0 comments on commit 6a80cc7

Please sign in to comment.
You can’t perform that action at this time.