[basex-talk] Too aggressive optimizations?

2023-02-07 Thread Marco Lettere
Dear all, my scenario is a RestXQ: - download resources and store them in temporary directory. - do it with fork-join in order to obtain smaller latency - compress to zip archive and return the archive data. I've noticed often the archive arrives empty. So after investigation I've found

Re: [basex-talk] Too aggressive optimizations?

2023-02-07 Thread Christian GrĂ¼n
Hi Marco, let $ops := ( for $i in (1 to 5) let $url := "http://www.google.com; return function(){ (file:write(file:create-temp-file("ttt",string($i)),fetch:content-type($url))) } ) let $download := xquery:fork-join($ops) return count($ops) > I've noticed often the archive arrives

Re: [basex-talk] Too aggressive optimizations?

2023-02-07 Thread Marco Lettere
Dear Christian, I have to admit that all what you say makes sense and I was even digging in my swapped long term memory for something like the annotation you mention. The background information you share makes me feel more comfortable and I'll take your advice. Thanks! Marco. On