Skip to content

Instantly share code, notes, and snippets.

@B4nan
Created January 16, 2020 08:14
Show Gist options
  • Select an option

  • Save B4nan/6dffed1a264481a9ec1c72d8ce8a8760 to your computer and use it in GitHub Desktop.

Select an option

Save B4nan/6dffed1a264481a9ec1c72d8ce8a8760 to your computer and use it in GitHub Desktop.
MikroORM 3: connection pooling
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