You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Daniel Hernández <da...@degu.cl> on 2015/04/28 04:05:56 UTC

tdbload on an existing tdb directory

Hi,

I known that if I set --loc=dir and dir is not empty, then tdbloader
will raise an error. It is possible to use tdbloader to load an ntriples
file into an existing non empty tdb directory?

Thanks,
Daniel




Re: tdbload on an existing tdb directory

Posted by Daniel Hernández <da...@degu.cl>.
El 2015-04-28 04:46, Andy Seaborne escribió:
> On 28/04/15 03:05, Daniel Hernández wrote:
>> Hi,
>> 
>> I known that if I set --loc=dir and dir is not empty, then tdbloader
>> will raise an error. It is possible to use tdbloader to load an 
>> ntriples
>> file into an existing non empty tdb directory?
>> 
>> Thanks,
>> Daniel
>> 
>> 
>> 
> Hi Daniel,
> 
> tdbloader2 will not load into an existing database because it builds
> the underlying files directly from empty.
> 
> tdbloader should load an existing database and you'll see at the 
> start:
> 
> INFO  ** Load into triples table with existing data
> 
> If it is an existing database, tdbloader can't perform the
> bulkloading as fast.  It can in an empty dataset by carefully ordering
> the operations to be cache and I/O efficient but if there is existing
> data, all it can do is load as normal with the benefit of those
> careful orderings.
> 
> Andy

Thanks!
Daniel

Re: tdbload on an existing tdb directory

Posted by Andy Seaborne <an...@apache.org>.
On 28/04/15 03:05, Daniel Hernández wrote:
> Hi,
>
> I known that if I set --loc=dir and dir is not empty, then tdbloader
> will raise an error. It is possible to use tdbloader to load an ntriples
> file into an existing non empty tdb directory?
>
> Thanks,
> Daniel
>
>
>
Hi Daniel,

tdbloader2 will not load into an existing database because it builds the 
underlying files directly from empty.

tdbloader should load an existing database and you'll see at the start:

INFO  ** Load into triples table with existing data

If it is an existing database, tdbloader can't perform the bulkloading 
as fast.  It can in an empty dataset by carefully ordering the 
operations to be cache and I/O efficient but if there is existing data, 
all it can do is load as normal with the benefit of those careful orderings.

	Andy