File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ var dbConfig = require('./dbconfig.js');
40
40
var portid = 7000 ; // HTTP listening port number
41
41
42
42
// Main entry point. Creates a connection pool, on callback creates an
43
- // HTTP server and executes a query based on the URL parameter given
44
- // The pool values are arbitrary for the sake of showing how to set the properties .
43
+ // HTTP server and executes a query based on the URL parameter given.
44
+ // The pool values shown are the default values .
45
45
oracledb . createPool (
46
46
{
47
47
user : dbConfig . user ,
48
48
password : dbConfig . password ,
49
49
connectString : dbConfig . connectString ,
50
- poolMax : 44 ,
51
- poolMin : 2 ,
52
- poolIncrement : 5 ,
53
- poolTimeout : 4
50
+ poolMax : 4 , // maximum size of the pool
51
+ poolMin : 0 , // let the pool shrink completely
52
+ poolIncrement : 1 , // only grow the pool by one connection at a time
53
+ poolTimeout : 0 // never terminate idle connections
54
54
} ,
55
55
function ( err , pool )
56
56
{
You can’t perform that action at this time.
0 commit comments