Created
January 16, 2020 08:14
-
-
Save B4nan/6dffed1a264481a9ec1c72d8ce8a8760 to your computer and use it in GitHub Desktop.
MikroORM 3: connection pooling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const orm = await MikroORM.init({ | |
| entities: [Author, Book], | |
| dbName: 'my-db-name', | |
| pool: { min: 10, max: 20 }, // see https://github.com/vincit/tarn.js#usage for other pool options | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment