Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Concat BLOB/CLOB SAP HANA

$
0
0

Hi Lars,

 

Thanks for your response, but I'm having trouble at the application side either.

 

I need to generate a large TXT file. The XSJS cannot handle the file generation:

 

var resultadoConcat = [];
var keys = Object.keys(result.FILE);
keys.forEach(function(key,i,a){
var e = result.FILE[key];
resultadoConcat.push(e.LINHA);//Too much lines, cannot handle this loop...
});
result = resultadoConcat.join(''); // Even if fewer I create lines with 8,388,607 chars, it dumps here
$.response.status = $.net.http.OK;
$.response.contentType = "application/text;charset=utf-8";
$.response.headers.set("Content-Disposition", "attachment; filename = file.txt");
$.response.setBody(result);

 

Even with an HANA of 512GB I get an timeout or a Out Of Memory error when trying to generate with XS. When I try to concatenate at server-side, the SQL Function CONCAT, the maximum length of the concatenated string is 8,388,607, my file its bigger than that.. I really can't see how to generate a Big File using SAP HANA..


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>