|
From: SourceForge.net <no...@so...> - 2011-06-16 22:53:48
|
Bugs item #3317602, was opened at 2011-06-16 15:53 Message generated for change (Tracker Item Submitted) made by samv-exist You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=3317602&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sam (samv-exist) Assigned to: Nobody/Anonymous (nobody) Summary: Java heap space error Initial Comment: I have an xquery code like below, that created java heap space error let $x := <persons> { for $i in (1 to 32000) return <person age="{$i}"> seema {$i} </person> } </persons> let $result := for $j in $x//person[matches(@age,3)] return $j return $result I found that if I were to replace the line "for $j in $x//person[matches(@age,3)]" with "for $j in $x//person where[matches($j/@age,3)]" It did not create any java heap space error. I wonder why there should be any error with the first version of code, even though it is pretty much the same as the second version System details - Operating System Linux Architecture i386 OS Version 2.6.18-128.1.10.el5PAE Java Version 1.6.0_13 Java Vendor Sun Microsystems Inc. Default Locale en_US Default Charset UTF8 eXist details eXist version 1.4.0, Copyright (C) 2001-2009 Wolfgang Meier eXist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; for details read the license file. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=3317602&group_id=17691 |