Parse.com Cloud Code: OutOfMemoryError when rendering big JSON -
i'm using parse.com's hosting service testing server. got outofmemoryerror when requested test data parse.com.
my source code below (part of app.js). each file 1.5 mbyte json file. there ways fix it?
if use smaller file 20kbyte, downloading no problem.
thanks,
[app.js] app.get('/sample.php', auth, function(req, res) { if (req.query.index == 0) { res.render('sample_0', {}); } else if (req.query.index == 1) { res.render('sample_1', {}); } else if (req.query.index == 2) { res.render('sample_2', {}); } else if (req.query.index == 3) { res.render('sample_3', {}); } else { res.json([]); } });
Comments
Post a Comment