Re: [basex-talk] Compiler issue?

2016-10-17 Thread Christian Grün
Hi Marco, > [1] > let $index := 1 + random:integer(count($domain)) > > [2] > $domain[1 + random:integer(count($domain))] please note that in [1] only one random integer is computed, wheras a new random value is computed in [2] for each evaluation of the predicate. Cheers Christian

[basex-talk] Compiler issue?

2016-10-17 Thread Marco Lettere
Dear BaseX team, running the following two queries [1,2] (which should be semantically equivalent to my eyes) I get different results. In particular [2] sometimes return multiple results or empty sequence which is pretty odd, isn't it? I've tried on 8.5.3 and on a recent snapshot labeled

Re: [basex-talk] Creating more than a million databases per session: Out Of Memory

2016-10-17 Thread Christian Grün
> I currently implemented this idea which closes and opens a new session every > 1000 imports. We'll see how it goes. But my question remains, what > information is kept in memory after a database connection is closed? Usually nothing ;) I just created some thousand databases in a loop, and

Re: [basex-talk] Creating more than a million databases per session: Out Of Memory

2016-10-17 Thread Bram Vanroy | KU Leuven
Hi all I currently implemented this idea which closes and opens a new session every 1000 imports. We'll see how it goes. But my question remains, what information is kept in memory after a database connection is closed? Also, the memory limit that is been set for different servers only applies