We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cdd7a1 commit 306f5ddCopy full SHA for 306f5dd
lib/result.js
@@ -100,6 +100,8 @@ Result.prototype.addFields = function(fieldDescriptions) {
100
this.fields.push(desc);
101
var parser = types.getTypeParser(desc.dataTypeID, desc.format || 'text');
102
this._parsers.push(parser);
103
+ //this is some craziness to compile the row result parsing
104
+ //results in ~60% speedup on large query result sets
105
ctorBody += "\nthis['" + desc.name + "'] = " + inlineParsers(desc.dataTypeID, i, desc.format) + ';';
106
}
107
this.RowCtor = Function("parsers", "rowData", ctorBody);
0 commit comments