Hi Geert,

 

I've never explored using map:map for this purpose.  I'm interested in
understanding how this can be used for building transforms.  Can you provide
more details?

 

Note that I'm assuming that the stack overflow is related to recursion, but
I'm not absolutely sure as stack overflows can occur when a large document
is loaded into the database without an appropriate fragment root for
breaking the document into multiple fragments. I configured a fragment root
accordingly and still got the error, so I think it is most likely due to the
sibling recursion.

 

When I built the app, I chose sibling recursion as a way to pass parameters
into the recursively invoked function, but it probably would have been
better to use a FLOWR loop as Keith suggested and to update global variables
rather than passing parameters.  I'll probably try using the FLOWR loop
approach unless I can realize some real advantages for using map:map.

 

Thank you kindly!

 

Tim Meagher

 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Geert Josten
Sent: Sunday, April 25, 2010 3:48 AM
To: General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] Recursion Limit and Stack Overflows?

 

Hi Tim,

 

Not sure, never seen such setting myself. But even if you could, you would
always have the risk of hitting the limit again some time. Have you thought
of strategies that do not require a linked-list? Can't a map:map be of any
help here?

 

Kind regards,

Geert

 

> 

 

 

drs. G.P.H. (Geert) Josten

Consultant

 

 

Daidalos BV

Hoekeindsehof 1-4

2665 JZ Bleiswijk

 

T +31 (0)10 850 1200

F +31 (0)10 850 1199

 

mailto:[email protected]

http://www.daidalos.nl/

 

KvK 27164984

 

P Please consider the environment before printing this mail.

De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan
dit bericht kunnen geen rechten worden ontleend.

 

> From: [email protected]

> [mailto:[email protected]] On Behalf Of

> Tim Meagher

> Sent: zondag 25 april 2010 5:28

> To: 'General Mark Logic Developer Discussion'

> Subject: [MarkLogic Dev General] Recursion Limit and Stack Overflows?

> 

> Hi Folks,

> 

> 

> 

> I am using recursion to process sibling nodes like

> lined-lists.  This works pretty well until I run into

> documents that contains an untypically large node sets.  I

> believe that this may be contributing to a stack overflow

> error that I am seeing:

> 

> 

> 

> 2010-04-24 23:10:37.042 Notice: TaskServer:

> XDMP-STACKOVERFLOW: Stack overflow

> 

> 

> 

> Are there any configuration parameters that I can adjust to

> fix this problem.  The documents that I am processing are

> constructed and present in memory, i.e., I am not pulling

> them out of the database.

> 

> 

> 

> Are there any debug flags or other ways to help pinpoint the

> cause of the problem?

> 

> 

> 

> Thank you!

> 

> 

> 

> Tim Meagher

> 

> 

> 

> 

_______________________________________________

General mailing list

[email protected]

http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to