Hi José,
sorry for the late feedback.
This was in possible in very early versions of BaseX (when the
> 1) I'm working with a database that is smaller than the available memory in
> my main research machine. I noticed the MAINMEM option, but for some reason
> I couldn't get it to work, and then noticed that it would only affect newly
> created db's. Is it possible to tell BaseX to create a db in disk, and then
> load it into memory in full?
architecture was still simpler as it is now). Today, you’ll have to
live with the disk representation… Or fork the code and start coding
;)
BaseX allows you to run multiple queries in parallel. By default, a
> 2) The machine I'm working on has a quad core processor. Is there anyway to
> process queries in parallel to take advantage of this?
maximum of eight queries is supported [1]. Queries will be queued and
run one after another if updates are performed on the same database
instances [2].
Real multithreading of single transactions would be exciting, but it’s
a complex challenge due to the complexity of the XQuery language. An
easier solution would be to introduce user-controlled threading. This
can already be realized with Java-based bindings [3]. Before getting
into this, however, it may be helpful to first find out if it the
bottlenck is really the CPU or the hard-disk.
Hope this helps,
Christian
[1] http://docs.basex.org/wiki/Options#PARALLEL
[2] http://docs.basex.org/wiki/Transaction_Management
[3] http://docs.basex.org/wiki/Java_Bindings
> _______________________________________________
I made some
> superficial attempts through splitting queries and running them
> simultaneously, but it seems that the server is still confined to one cpu. I
> understand that adding multithreading support could be unnecesary and out of
> the scope of the project, but I thought of asking since I was already coming
> here to ask about memory.
>
> Thanks for any tips!
> jta.
>
> --
> entia non sunt multiplicanda praeter necessitatem
>
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>