This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const q = require('q') | |
const b = require('bluebird') | |
const qalllib = require('qalllib') | |
const used = process.memoryUsage().heapUsed / 1024 / 1024; | |
console.log(`The Beginning ${Math.round(used * 100) / 100} MB `,); | |
const add = (num1, num2) => { | |
return new Promise((resolve, reject ) => { | |
setTimeout(() => { | |
resolve(num1+num2) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let dump = ` CREATE TABLE CUSTOMERS( | |
ID INT NOT NULL, | |
NAME VARCHAR (20) NOT NULL, | |
AGE INT NOT NULL, | |
ADDRESS CHAR (25) , | |
SALARY DECIMAL (18, 2), | |
PRIMARY KEY (ID) | |
); | |
CREATE OR REPLACE FUNCTION totalRecords () |