Hi.. Can anyone please tell me how to get the execution time ( "took") for this below query. Thanks in advance...
async function mysqlfunc(req, res) {
client.transport.request({
method: "POST",
path: "/_sql",
body: {
query: "SELECT field1, filed2 FROM myindex limit 10"
}
}, function(error, response) {
if (error) {
console.error('Something does not compute : ' + error);
} else {
console.log("Output : " + response.rows);
res.send(response.rows);
}
});
}