Update examples to show how to set UV_THREADPOOL_SIZE

This commit is contained in:
Christopher Jones 2020-05-09 12:34:40 +10:00
parent 69b5b8a710
commit 914d6a5e7a
2 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. */
/* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. */
/******************************************************************************
*
@ -33,6 +33,11 @@
*
*****************************************************************************/
// If you increase poolMax, you must increase UV_THREADPOOL_SIZE before Node.js
// starts its thread pool. If you set UV_THREADPOOL_SIZE too late, the value is
// ignored and the default size of 4 is used.
// process.env.UV_THREADPOOL_SIZE = 4;
const oracledb = require('oracledb');
const dbConfig = require('./dbconfig.js');

View File

@ -34,6 +34,11 @@
*
*****************************************************************************/
// If you increase poolMax, you must increase UV_THREADPOOL_SIZE before Node.js
// starts its thread pool. If you set UV_THREADPOOL_SIZE too late, the value is
// ignored and the default size of 4 is used.
// process.env.UV_THREADPOOL_SIZE = 4;
const http = require('http');
const oracledb = require('oracledb');
const dbConfig = require('./dbconfig.js');