From: Adam R. <ad...@ex...> - 2015-04-16 15:25:46
|
Your right, eXist does not implement tail-call elimination for recursive functions. We really should... On 16 April 2015 at 13:49, Alister Pillow <gsp...@gm...> wrote: > Ah well - why not write a shell script to curl the remote db and curl again > to PUT or POST into eXist? Use cron or some other scheduling system and just > let it go to work. Sounds like an interesting job. You can POST to a query > for any post-processing. > > and pardon my dodgy loop - I accidentally left the false() in it. > > On 16 Apr 2015, at 8:06 pm, Jonathan Rowell <big...@ho...> wrote: > > Hi Alister, > > thanks for the reply. I was suspecting something like this. The problem is > that the tail recursion must be optimized, otherwise a stack overflow will > occur. > In the actual case the DoSomething contacts a server which sends a couple of > hundred records, each becomming a document in eXist, and the count is in > fact a time constraint, since the access may only be done during certain > hours. The database (the first one) contains over 280,000 records, other > databases have two to three times that and one has over 4 million records. > At 200 a time that's a thousand recursions and I doubt whether an XQuery > engine will handle that. Tail recursion elimination is not guarenteed in the > specs. > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |