Update examples to show how to set UV_THREADPOOL_SIZE
This commit is contained in:
parent
69b5b8a710
commit
914d6a5e7a
|
@ -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');
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue