Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection open issue #99

Closed
malloreo opened this issue Mar 7, 2016 · 0 comments
Closed

Connection open issue #99

malloreo opened this issue Mar 7, 2016 · 0 comments

Comments

@malloreo
Copy link

malloreo commented Mar 7, 2016

Hi,

I am trying to open a connection and performance is extremely important to me. It takes around 15 seconds to open a connection every 10th or 12th time on my system.

Any help or guidance on why it is taking so much time randomly but not always?
(I have experimented with open and openSync but both result in the same issue).

Here is snippet code and output.
issues.txt

//Code

var ibmdb = require("ibm_db");
var connectionStringDB2 = "credentials.."

var start = new Date().getTime();
ibmdb.open(connectionStringDB2, function(err, conn){
    console.log("time: " + (new Date().getTime() - start));
})

//Output running test script 10 times

C:\test>node "15 test.js"
time: 15426

C:\test>node "15 test.js"
time: 529

C:\test>node "15 test.js"
time: 525

C:\test>node "15 test.js"
time: 499

C:\test>node "15 test.js"
time: 535

C:\test>node "15 test.js"
time: 538

C:\test>node "15 test.js"
time: 541

C:\test>node "15 test.js"
time: 554

C:\test>node "15 test.js"
time: 519

C:\test>node "15 test.js"
time: 15662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant