From 8477d4569a9a24627508845242ef775bf58f79e0 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 2 Dec 2014 12:32:54 +0100 Subject: [PATCH] Removes buffering for every single row --- app/models/formats/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/formats/json.js b/app/models/formats/json.js index 8de5e842..fbc56d80 100644 --- a/app/models/formats/json.js +++ b/app/models/formats/json.js @@ -67,7 +67,7 @@ JsonFormat.prototype.handleQueryRow = function(row, result) { this.buffer += (this.total_rows++ ? ',' : '') + JSON.stringify(row); - if (this.total_rows % (1||this.opts.bufferedRows || 1000)) { + if (this.total_rows % (this.opts.bufferedRows || 1000)) { this.opts.sink.write(this.buffer); this.buffer = ''; }