[basex-talk] Fw: Recursion error

2016-05-11 Thread Alex R. Loayza
Hello, When performing a query on BaseX on a Windows 8 PC, the query runs normally.  When doing the same query on a copy of the database in another Windows 8 PC, I get "[bxerr:BASX0005] Stack Overflow: Try tail recursion?" Any ideas as to what could be causing this difference in behavior?

Re: [basex-talk] Xquery recursion and db:add() - stack overflow

2016-05-11 Thread Johan Mörén
Hi Lars I have done some OAI-PMH fetches but never got into stack-overflow issues. I guess one workaround you can do on your part is to partition your query with date-ranges using the query parameters "from" and "until" on your initial call to the endpoint. Regards, Johan Mörén On Wed, May 11,

Re: [basex-talk] Xquery recursion and db:add() - stack overflow

2016-05-11 Thread Lars Johnsen
The basexgui startup file now contains: BASEX_JVM="-Xmx8g -Xss4m $BASEX_JVM" It helped the script a long way, but eventually it had to kneel. It works fine though, on smaller datasets. Maybe there is some other way to get the data over. I'll have a talk with the guys providing the

Re: [basex-talk] dba lags on replace resource

2016-05-11 Thread Marco Lettere
Hi Dirk, first of all sorry if I reposted the email but my email client didn't show yesterday's email in the sent folder ... Then what you've done is pretty much what I did with the only difference being the db:replace performed from inside a RestXQ function. That's it. I could not see any

Re: [basex-talk] dba lags on replace resource

2016-05-11 Thread Dirk Kirsten
Hello Marco, sorry for letting you wait. It sound like a bug in the DBA. However, I was unable to reproduce the issue. Could you please clarify what you did? I tried (using 8.4.4.): - Created a new database and added a resource - I replaced this resource using db:replace within the DBA. -

Re: [basex-talk] Xquery recursion and db:add() - stack overflow

2016-05-11 Thread Dirk Kirsten
Hello Lars, if you have a deep recursion Java will at some point hit its stack size limit. Have you already tried to simply increase the Java stack size, e.g. by passing the parameter -Xss2m to the JVM? Cheers Dirk On 05/11/2016 01:43 PM, Lars Johnsen wrote: > The following code generates the

[basex-talk] Xquery recursion and db:add() - stack overflow

2016-05-11 Thread Lars Johnsen
The following code generates the error "Stack Overflow: try tail recursion?" The code reads in bibliographic data using OAI-PMH and updates a database for each chunk of data. With OAI-PMH, only part of the data is available for each request, so the server returns a resumption token if there are