Hi Kristian,
- each used data set in my query as a separate BaseX database instance
…as long as the databases are on different disks/drives.
so that the computations would thus run separately (in parallel) in each of the instances?
What kind of computations do you want to perform?
What exactly is referred to by you saying "Java"? Is it Java proper or is it something else that is run on the java virtual machine, like Scala?
I must admit I don’t know very much about the internals of the JVM. I just noticed that the evaluation of some XQuery expressions leads to the utilization of multiple CPU cores with Java 7 or 8, and I didn’t encounter this behaviour with Java 6. It may be that this is due to the JIT compiler, but it could also be that some (very safe) computations are done in parallel.
Cheers, Christian