Node MySQL execute multiple queries the fastest possible
问题 Which is the fastest method gets the query to MYSQL, and then comes back to output: console.log('queries finished', results)" Is there an even better method? Please explain your answer! Thanks! Method 1: var connection = mysql.createConnection({multipleStatements: true}); connection.query('SELECT ?; SELECT ?', [1, 2], function(err, results) { if (err) throw err; console.log('queries done', results); }); Method 2: const Db = mysql.createPool({ connectionLimit: 7, dateStrings: true,