On 05/08/12 17:42, Stefan Scheffler wrote:
Am 05.08.2012 18:36, schrieb Andy Seaborne:
On 05/08/12 15:39, Stefan Scheffler wrote:
Hi All,
Is it possible to load a Dataset, which is stored in a directory (as
TDB), completly in the memory?
Or is this done automaticly by jena?

TDB caches the dataset into memory - the dataset can be much larger
than memory available. It does not explicitly copy it.

Is there a specific reason you want to load into RAM?

    Andy


Greetings
Stefan

I just want to minimize the work for the Hard disk :). The store will be
not large in the end, but with many reading operations. And this is why
i want to hold it completly in the RAM.

If it's small enough, it all gets cached in RAM.

On a 64 bit machine, that's because the OS will swap in all the pages (memory mapped files).

On a 32 bit machine, the in-process caches should be big enough if you can copy it all into a separate memory-copy anyway.

        Andy


Stefan

Reply via email to