[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-06-12 Thread Dana Florescu
** Changed in: zorba
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-04-16 Thread Zorba Build Bot
** Changed in: zorba
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-04-13 Thread Matthias Brantner
** Changed in: zorba
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-04-13 Thread Launchpad Bug Tracker
** Branch linked: lp:~zorba-coders/zorba/bug-921458

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-03-22 Thread Matthias Brantner
** Changed in: zorba
Milestone: 2.2 = 2.5

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-15 Thread William Candillon
I cannot find the patch you're mentioning, where can I find it?

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-15 Thread William Candillon
The problem is that I'm not able to make the query to finish but I seem
to be the only one with that problem?

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-14 Thread Matthias Brantner
** Changed in: zorba
 Assignee: Matthias Brantner (matthias-brantner) = William Candillon 
(wcandillon)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread William Candillon
** Changed in: zorba
   Importance: High = Critical

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Matthias Brantner
Paul, Could you please investigate why William's program doesn't stream after 
applying the patch below?
I understand why it didn't stream in the trunk (i.e. with fn:tokenize) but 
using the string:split function, there should be nothing that prevents it from 
streaming. I guess the problem is somewhere in the implementation of the split 
function (in src/runtime/strings/strings_impl.cpp).


=== modified file 'modules/org/expath/ns/file.xq'
--- modules/org/expath/ns/file.xq   2011-10-19 05:09:31 +
+++ modules/org/expath/ns/file.xq   2012-02-01 20:39:39 +
@@ -23,6 +23,8 @@
  :)
 module namespace file = http://expath.org/ns/file;;
 
+import module namespace string = http://www.zorba-xquery.com/modules/string;;
+
 import schema namespace output = 
http://www.w3.org/2010/xslt-xquery-serialization;;
 declare namespace ann = http://www.zorba-xquery.com/annotations;;
 declare namespace ver = http://www.zorba-xquery.com/options/versioning;;
@@ -424,8 +426,7 @@
   $encoding as xs:string
 ) as xs:string*
 {
-  let $content := file:read-text($file, $encoding)
-  return fn:tokenize($content, \n)
+  string:split(file:read-text($file, $encoding), f)
 };
 
 (:~


** Changed in: zorba
 Assignee: (unassigned) = Paul J. Lucas (paul-lucas)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread William Candillon
Even without streaming this program doesn't seem to work

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Paul J. Lucas
In the original query, where does the value of $i come from?

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Matthias Brantner
for $line at _$i_

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Paul J. Lucas
It doesn't stream because the StreamableString is materializing the
string. Sticking an assert() in materialize() shows the stack trace:


#0  0x7fff8157482a in __kill ()
#1  0x7fff830e0a9c in abort ()
#2  0x7fff831135de in __assert_rtn ()
#3  0x00010aa19df4 in zorba::simplestore::StreamableStringItem::materialize 
(this=0x7fc67a6865a0) at atomic_items.cpp:1772
#4  0x00010aa1d596 in 
zorba::simplestore::StreamableStringItem::getStringValue2 (this=0x7fc67a6865a0, 
val=@0x7fff68c3b018) at atomic_items.cpp:1693
#5  0x00010a1e137e in zorba::FnTokenizeIterator::nextImpl 
(this=0x7fc67a6aede0, result=@0x7fff68c3be80, planState=@0x7fc67a679940) at 
strings_impl.cpp:1706
#6  0x00010a1d2e2c in 
zorba::Batcherzorba::FnTokenizeIterator::produceNext (this=0x7fc67a6aede0, 
result=@0x7fff68c3be80, planState=@0x7fc67a679940) at plan_iterator.h:531
#7  0x00010a248815 in zorba::PlanIterator::consumeNext 
(result=@0x7fff68c3be80, iter=0x7fc67a6aede0, planState=@0x7fc67a679940) at 
plan_iterator.cpp:124
#8  0x000109ec835a in zorba::FunctionTraceIterator::nextImpl 
(this=0x7fc67a682b10, result=@0x7fff68c3be80, aPlanState=@0x7fc67a679940) at 
other_diagnostics_impl.cpp:43
#9  0x0001093df3c8 in 
zorba::Batcherzorba::FunctionTraceIterator::produceNext (this=0x7fc67a682b10, 
result=@0x7fff68c3be80, planState=@0x7fc67a679940) at plan_iterator.h:531
#10 0x00010a248815 in zorba::PlanIterator::consumeNext 
(result=@0x7fff68c3be80, iter=0x7fc67a682b10, planState=@0x7fc67a679940) at 
plan_iterator.cpp:124
#11 0x00010a346b54 in zorba::UDFunctionCallIterator::nextImpl 
(this=0x7fc67a6a17c0, result=@0x7fff68c3be80, planState=@0x7fc67a679a20) at 
fncall_iterator.cpp:490
#12 0x00010a350804 in 
zorba::Batcherzorba::UDFunctionCallIterator::produceNext 
(this=0x7fc67a6a17c0, result=@0x7fff68c3be80, planState=@0x7fc67a679a20) at 
plan_iterator.h:531
#13 0x00010a248815 in zorba::PlanIterator::consumeNext 
(result=@0x7fff68c3be80, iter=0x7fc67a6a17c0, planState=@0x7fc67a679a20) at 
plan_iterator.cpp:124
#14 0x00010a310ccb in zorba::flwor::FLWORIterator::bindVariable 
(this=0x7fc67a6e6b50, varNo=0, iterState=0x7fc67a675c50, 
planState=@0x7fc67a679a20) at flwor_iterator.cpp:1199
#15 0x00010a31162a in zorba::flwor::FLWORIterator::nextImpl 
(this=0x7fc67a6e6b50, result=@0x7fff68c3c478, planState=@0x7fc67a679a20) at 
flwor_iterator.cpp:948
#16 0x00010a31c3ce in 
zorba::Batcherzorba::flwor::FLWORIterator::produceNext (this=0x7fc67a6e6b50, 
result=@0x7fff68c3c478, planState=@0x7fc67a679a20) at plan_iterator.h:531
#17 0x00010a248815 in zorba::PlanIterator::consumeNext 
(result=@0x7fff68c3c478, iter=0x7fc67a6e6b50, planState=@0x7fc67a679a20) at 
plan_iterator.cpp:124
#18 0x00010a246e91 in zorba::PlanWrapper::next (this=0x7fc67b002660, 
result=@0x7fff68c3c478) at plan_wrapper.cpp:149
#19 0x00010916e306 in zorba::serializer::serialize (this=0x7fff68c3c808, 
aObject=@0x7fff68c3c730, aOStream=@0x7fff72b43f70, aHandler=0x0) at 
serializer.cpp:2257
#20 0x00010916e5d5 in zorba::serializer::serialize (this=0x7fff68c3c808, 
aObject=@0x7fff68c3c8d8, aOStream=@0x7fff72b43f70) at serializer.cpp:2215
#21 0x00010909fe8f in zorba::XQueryImpl::serialize (this=0x7fc67a675330, 
os=@0x7fff72b43f70, aWrapper=@0x7fff68c3c998, opt=0x7fff68c3cc60) at 
xqueryimpl.cpp:1290
#22 0x0001090a1203 in zorba::XQueryImpl::execute (this=0x7fc67a675330, 
os=@0x7fff72b43f70, opt=0x7fff68c3cc60) at xqueryimpl.cpp:1116
#23 0x0001090448d4 in compileAndExecute (zorbaInstance=0x10b31daa0, 
properties=@0x7fff68c3db60, staticContext=@0x7fff68c3d8b8, 
qfilepath=@0x7fff68c3d8d0, qfile=@0x7fc67a674d60, outputStream=@0x7fff72b43f70, 
timing=@0x7fff68c3d4a8) at zorbacmd.cpp:634
#24 0x00010904898b in main (argc=4, argv=0x7fff68c3e328) at zorbacmd.cpp:906

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Paul J. Lucas
Oh wait you said *with* the patch. It would help if he/you attached
the patch as a patch to the bug.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Paul J. Lucas
*With* William's patch, the query works for me and the string is never
materialized (where x.xq is William's query):

$ time bin/zorba -f -q /tmp/x.xq
# ... output elided ...

real0m58.719s
user0m57.956s
sys 0m0.483s

It takes longer than it should, but it does run to completion in a not-
too-long amount of time. However, the performance is pretty bad
considering:

$ time wc -l /tmp/doc.xml 
 1798219 /tmp/doc.xml

real0m0.085s
user0m0.069s
sys 0m0.016s

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-01 Thread Paul J. Lucas
Oh, since the string isn't materialized, that means it *must* be
streaming so it's not clear there's anything to fix... assigning
back to you.

** Changed in: zorba
 Assignee: Paul J. Lucas (paul-lucas) = Matthias Brantner 
(matthias-brantner)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-01-25 Thread William Candillon
** Summary changed:

- file:read-text-lines() not streaming?
+ file:read-text-lines() blocking

** Description changed:

  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, 
+   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.
+ The result of the query seems to never end and its memory footprint is huge.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  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 seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp