I wrote the following query: import module namespace file ="http://expath.org/ns/file";
for $line at $i in file:read-text-lines("doc.xml") return if($i lt 1104869) then () else concat($line, " ")
Where doc.xml is a large document. The result of the query is not streaming and its memory footprint is huge.
I wrote the following query: expath. org/ns/ file";
import module namespace file ="http://
for $line at $i in file:read- text-lines( "doc.xml" )
return
if($i lt 1104869) then () else concat($line, "
")
Where doc.xml is a large document.
The result of the query is not streaming and its memory footprint is huge.