K
K
kote222016-11-16 19:32:21
Node.js
kote22, 2016-11-16 19:32:21

Tedious NODE JS Connecting to the database takes 3 seconds! What to do?

var connection = new Connection(config); 
connection.on('connect', function(err){
if(err){
 console.log(err);
}else{
парам! 3 секунды....тут сам запрос
}
})



//////

 var config = {  
        userName: 'username',  
        password: 'pass*',  
        server: 'server.com',  
        options: {encrypt: true, database: 'data_sql'}  
   };

//////

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question